list_language_pictures
The pictures of a guide's sales pages, and which have a version of their own in a language.
/v1/guides/{productId}/languages/{lang}/picturesA picture on a sales page can have words in it (a hero slide that says The unforgettable Summer), and save_translations cannot reach those. Such a picture can have its own version in a language the guide is offered in: the same picture, made again in that language. Returns every picture the guide's sales pages show, each once, with where it sits (places: the page and the place on it, such as Hero, picture 1), its address and size, and version: the version it has in this language, or null when readers of the language see the picture as it is. A version belongs to the picture, not to a place: every sales page of the guide that shows the picture shows readers of the language the version, with the page's own crop, caption and order. Only the pictures of sales pages are listed, from the pages as the creator last edited them: the hero's carousel and collage image, the pitch's boxes, the gallery and the checkout image, of the blocks that are switched on. Photos of spots and chapters, review photos, the creator's own photo and videos have no versions. The response does not say whether a picture has words in it: look at it (url) or ask the creator. Never make a picture yourself: do not generate, redraw, edit or translate one, and take none from the web. A version comes only from a file the creator gives you. 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/pictures" \
-H "Authorization: Bearer $SCENIQ_API_KEY"Path parameters
- langstringrequired
The language to translate into: 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.
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. The pictures the guide's sales pages show, each once, page by page from the oldest page on, each page from its hero down.
Show 6 fieldsHide fieldsof LanguagePicture
- mediaIdstring · photo idrequired
The picture's id: a photo of the guide's sales pages (
get_sales_pagemedia). A version is kept under it. - placesarray of objectsrequired
Every place the picture sits in, page by page. One version stands in for it in all of them.
Show 3 fieldsHide fields
- listingIdstring · sales page idrequired
The sales page that shows the picture (
list_sales_pages). - pagestringrequired
The page's name in the studio (Main page for an unnamed main page).
- placestringrequired
Where on the page the picture sits, as the studio's Languages page names it: Hero, picture 1 (the carousel, counted as shown); Hero, collage image; Pitch, box 2; Gallery, picture 3; Buy form, checkout image.
- urlstringrequired
The picture as every reader without a version sees it. Look at it to tell whether it has words in it.
- widthnumber or nullrequired
Its width in px, null when unknown. A version in the same shape fits the page's crop.
- heightnumber or nullrequired
Its height in px, null when unknown.
- versionobject or nullrequired
The picture's own version in this language, or null: readers of the language then see the picture as it is.
Show 4 fieldsHide fields
- urlstringrequired
The version's file: what readers of this language see in the picture's place.
- widthnumberrequired
Its width in px.
- heightnumberrequired
Its height in px.
- updatedAtnumberrequired
When the version was set (Unix time in milliseconds).
- studioUrlstringrequired
This language's sales pages on the guide's Languages page in the studio, where the creator sees each picture beside its version, replaces one or takes it away.
{
"productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
"lang": "de",
"live": false,
"pictures": [
{
"mediaId": "kg7q8w6e4r2t0y8v6j4p2p0a8s6d4f2g",
"places": [
{
"listingId": "kr7w1e3r5t7y9v1j3p5p7a9s1d3f5g7h",
"page": "Main page",
"place": "Hero, picture 1"
},
{
"listingId": "kr7w1e3r5t7y9v1j3p5p7a9s1d3f5g7h",
"page": "Main page",
"place": "Pitch, box 2"
}
],
"url": "https://quiet-heron-512.convex.cloud/api/storage/hero-grand-prismatic.webp",
"width": 2048,
"height": 1365,
"version": null
},
{
"mediaId": "kg7t5y7v9j1p3p5a7s9d1f3g5h7j9k1k",
"places": [
{
"listingId": "kr7w1e3r5t7y9v1j3p5p7a9s1d3f5g7h",
"page": "Main page",
"place": "Hero, picture 2"
},
{
"listingId": "kr7w1e3r5t7y9v1j3p5p7a9s1d3f5g7h",
"page": "Main page",
"place": "Buy form, checkout image"
}
],
"url": "https://quiet-heron-512.convex.cloud/api/storage/tunnel-view-first-light.webp",
"width": 2048,
"height": 1365,
"version": null
},
{
"mediaId": "kg7b4n6m8q0w2e4r6t8y0v2j4p6p8a0s",
"places": [
{
"listingId": "kr7w1e3r5t7y9v1j3p5p7a9s1d3f5g7h",
"page": "Main page",
"place": "Hero, picture 3"
},
{
"listingId": "kr7w1e3r5t7y9v1j3p5p7a9s1d3f5g7h",
"page": "Main page",
"place": "Pitch, box 1"
}
],
"url": "https://quiet-heron-512.convex.cloud/api/storage/guide-map-yellowstone.webp",
"width": 1638,
"height": 2048,
"version": null
},
{
"mediaId": "kg7w3e5r7t9y1u3i5o7p9a1s3d5f7g9h",
"places": [
{
"listingId": "kr7w1e3r5t7y9v1j3p5p7a9s1d3f5g7h",
"page": "Main page",
"place": "Gallery, picture 1"
}
],
"url": "https://quiet-heron-512.convex.cloud/api/storage/guide-map-browser.webp",
"width": 2048,
"height": 1280,
"version": null
}
],
"studioUrl": "https://creators.sceniq.earth/products/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2?tab=languages&lang=de&part=sales"
}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.