list_languages
The languages a guide is offered in, and how far each is translated.
/v1/guides/{productId}/languagesA guide is written in one language (original) and can be offered in English, German, French and Italian besides it. Sceniq Earth translates nothing itself: the creator writes the translations on the studio's Languages page, or you write them with save_translations. Returns the language the guide is written in, every language it is offered in with live (whether buyers can read the guide and its sales pages in it) and translated (how many of the guide's total texts have a translation), and canAdd, the languages add_language can still add. Translate only when the creator asks for a language: add_language when the guide does not have it yet, then list_untranslated_texts and save_translations in turn until remaining is 0, then tell the creator, who can review the translation on the studio's Languages page (studioUrl). A language goes live with set_language_live, or with the Live switch on that page, and only when the creator says so. Removing a language is the creator's alone, in the studio: no operation does. Once a language is live, buyers read every translation the moment it is saved. When the creator changes a text of the guide later, that text has no translation until it is translated again, so translated falls below total: run the same loop again after edits.
curl "https://sceniq.earth/api/v1/guides/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2/languages" \
-H "Authorization: Bearer $SCENIQ_API_KEY"Path parameters
- productIdstring · guide idrequired
Id of the guide (a product of type map). From
list_guidesorcreate_guide.
Returns
200 OK with GuideLanguages: The languages a guide is offered in and how far each is translated (list_languages, add_language).
- productIdstring · guide idrequired
The guide's id.
- originalstringrequired
The language the guide is written in, as a two-letter code (
update_guidelanguage). A guide is never offered as a translation into it. - totalnumberrequired
How many texts the guide has to translate: every text of the draft and of its sales pages, each once however often it is used. Archived spots, chapters, collections, hikes and properties are left out.
- languagesarray of objectsrequired
The languages the guide is offered in besides the one it is written in, English first, then German, French and Italian. Empty until one is added.
Show 4 fieldsHide fields
- 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. Below total, texts are left:
list_untranslated_textsreturns them. It falls when the creator changes a text, which then has no translation until it is translated again. - updatedAtnumberrequired
When the language or one of its translations last changed (Unix time in milliseconds).
- canAddarray of stringsrequired
The languages
add_languagecan still add: en, de, fr and it without the one the guide is written in and the ones it has. - studioUrlstringrequired
The guide's Languages page in the studio, where the creator reviews the translations, turns Live on or off and removes a language.
{
"productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
"original": "en",
"total": 212,
"languages": [
{
"lang": "de",
"live": false,
"translated": 96,
"updatedAt": 1790586840000
}
],
"canAdd": [
"fr",
"it"
],
"studioUrl": "https://creators.sceniq.earth/products/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2?tab=languages"
}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).
- 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.