list_translations
The translations a guide has in a language, each beside the text it translates.
/v1/guides/{productId}/languages/{lang}/translationsWhat is saved in a language the guide is offered in: the guide's texts that have a translation, each with its translation and where it is from (section, item and label, as in list_untranslated_texts). Read it before you proofread a language, keep its wording when you translate changed texts, or change one translation the creator named. Returns at most limit texts (100 unless given, 200 at most) in the guide's order, each text once; next is the offset of the next page, null on the last one. section narrows the list to one part of the guide. query narrows it to the texts whose words, translation or item hold it, so a word of a sentence finds that sentence and a spot's title finds that spot's texts. translated counts every text that matches, the ones returned included. Reading changes nothing. To change a translation, send its text exactly as returned with the new translation to save_translations; an empty translation removes it. Change one only when the creator asks: in a live language (live true) buyers read the new wording at once. A text without a translation is not listed here: list_untranslated_texts returns those. Neither is a translation whose text the creator has changed since: it shows nowhere, and the changed text is open again. Refused with invalid_request for a language the guide is not offered in: add_language first.
curl "https://sceniq.earth/api/v1/guides/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2/languages/de/translations?section=spots&limit=2" \
-H "Authorization: Bearer $SCENIQ_API_KEY"Path parameters
- langstringrequired
The language to read: en (English), de (German), fr (French) or it (Italian), one the guide is offered in (
list_languages). - productIdstring · guide idrequired
Id of the guide (a product of type map). From
list_guidesorcreate_guide.
Query parameters
- limitnumberoptional
How many texts to return: 1 to 200, 100 when absent.
- offsetnumberoptional
Where the page starts, 0 (the default): next from the previous answer.
- querystringoptional
Only the texts whose words, translation or item hold this, in any case: a word of the sentence the creator named, or a spot's title for that spot's texts. Leave it out for every text.
- sectionstringoptional
Only the texts of this part of the guide: sales (the sales pages), details (the guide's name, headline and button, its region and areas), spots, properties, photos (captions and alt texts), chapters, collections, itineraries, hikes or helpers. Leave it out for the whole guide.
salesdetailsspotspropertiesphotoschapterscollectionsitinerarieshikeshelpers
Returns
200 OK with this object.
- productIdstring · guide idrequired
The guide's id.
- langstringrequired
The language: en (English), de (German), fr (French) or it (Italian).
- livebooleanrequired
true when buyers can read the guide and its sales pages in this language.
set_language_liveturns it on or off, and so does the creator with Live on the studio's Languages page. While it is true, every translation saved shows to buyers at once. - translatednumberrequired
How many of the guide's texts have a translation in this language and match section and query, the ones in texts included. Without section and query it is the language's translated in
list_languages. - textsarray of objectsrequired
Texts with their translation, at most limit of them from offset, in the guide's order: sales pages, the guide's details, spots, properties, photos, chapters, collections, itineraries, hikes, helpers. A text used in several places is listed once, where it comes first, or with a query under the first item that matches; its translation shows in every place.
Show 5 fieldsHide fields
- textstringrequired
The text as the creator wrote it. Send it back unchanged, character for character, as text in
save_translations: a translation is kept under the words it translates. - translationstringrequired
The text's words in the language, as they are saved and as readers of the language get them. The same words as text where the text needs no change (a place name).
- sectionstringrequired
The part of the guide the text is from: sales (a sales page), details (the guide's name, headline and button, its region and areas), spots, properties (the custom properties' names, options and units), photos (captions and alt texts), chapters, collections, itineraries, hikes or helpers (car parks, lifts, stays and places to eat).
salesdetailsspotspropertiesphotoschapterscollectionsitinerarieshikeshelpers - itemstringrequired
What the text belongs to: a spot's title, a chapter's, collection's, hike's or itinerary's name, a property's name, a sales page's name (Main page for the main one), Name and price or Region and areas for the guide's own texts, and for a photo the spot, chapter or guide it is of.
- labelstringrequired
What the text is, as the studio's Languages page names it (Title; Short description; Page 3, body 1; Arrival, by car, parking), or the property's name for a spot's value of a custom property.
- nextnumber or nullrequired
The offset of the next page, or null when texts holds the last one.
- studioUrlstringrequired
This language on the guide's Languages page in the studio, where the creator reads and changes the same translations.
{
"productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
"lang": "de",
"live": false,
"translated": 148,
"texts": [
{
"text": "Grand Prismatic Spring",
"translation": "Grand Prismatic Spring",
"section": "spots",
"item": "Grand Prismatic Spring",
"label": "Title"
},
{
"text": "The largest hot spring in the United States. See it from the boardwalk, then from the overlook above the Fairy Falls trail.",
"translation": "Die größte heiße Quelle der USA. Sieh sie dir vom Holzsteg aus an, danach vom Aussichtspunkt oberhalb des Fairy Falls Trail.",
"section": "spots",
"item": "Grand Prismatic Spring",
"label": "Short description"
}
],
"next": 2,
"studioUrl": "https://creators.sceniq.earth/products/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2?tab=languages&lang=de"
}Errors
Every error is { error: { code, message } }. Act on the code.
- 400invalid_argumentA required field is missing, a field is unknown, or a value does not match its type (the Convex validator's path and value are in the message).
- 400invalid_requestA writer refused a value: a map link on a host that is not allowed, a title that is too long, a date that does not exist, too many items in a list. The message is the writer's own sentence.
- 401unauthenticatedThe request carries no key. Send it as Authorization: Bearer sk_sceniq_... (or X-Api-Key).
- 401invalid_api_keyThe key is unknown, revoked or expired.
- 403forbiddenThe key belongs to a creator account that is no longer active.
- 404not_foundThe id does not exist or belongs to another creator. The two answers are identical on purpose, so ids never reveal what exists.
- 429rate_limitedOver a limit: requests per key per minute, per creator per hour, uploads per key per minute, or check_links per guide per hour.
- 500internal_errorAn unexpected failure. The message is hidden on purpose.