GET Price Info - TextKing/textking-api GitHub Wiki

GET /price-info

Request: GET /price-info

Returns price information for a specific number of words for all available quality levels. This endpoint is public and does not require authorization.

Query parameters

Parameter Description
words An integer value defining the number of words to translate (required).
source_language ISO 639 language code of the source language (required).
target_language ISO 639 language code of the target language (required).
topic Topic UUID (optional).

Request headers

Header Description
Accept application/json or application/xml

Response status codes

HTTP status Description
200 Ok Successful request.
400 Bad Request Invalid language codes or wrong parameter formats.

Example

Return the pricing for the translation of 200 words from German to English with the topic area “Technology / Engineering”:

GET /v1/price-info?words=200&source_language=de&target_language=en&topic=8576549a-097f-45b3-8c59-fb3d6a03147d HTTP/1.1
Host: api.textking.com
Accept: application/json

Response:

HTTP/1.1 200 Ok
Content-Type: application/json; charset=utf-8

{
    "source_language": "de",
    "target_language": "en",
    "topic": "8576549a-097f-45b3-8c59-fb3d6a03147d",
    "words": 200,
    "prices": [
        {
            "quality": "translation",
            "price_per_word": 0.134,
            "total_price": 26.8,
            "currency": "EUR"
        },
        {
            "quality": "translation-and-correction",
            "price_per_word": 0.157,
            "total_price": 31.4,
            "currency": "EUR"
        }
    ]
}
⚠️ **GitHub.com Fallback** ⚠️