Skip to content

Listing translatable items ​

Last updated View as Markdown

Endpoint: https://api.youcan.shop/translations/{type}

Method: GET

Required Scopes ​

  • read-languages

Notes ​

  • You get the items of one type that can be translated.
  • For the theme_ types, you get the items of the active theme. Send theme to list the items of another theme.
  • You get a 404 for a type that is not available in the language.

Parameters ​

Param NameParam TypeDescriptionRequired
typestringA translatable type, for example productYes
localestringThe locale of a language from the listingYes
themestringThe id of a store theme, for the theme_ typesNo
qstringSearch by titleNo
pageintegerPage numberNo
limitintegerItems per pageNo

Response ​

[200] Ok

json
{
  "data": [
    { "id": "0b6f1e1e-2f8e-4d7f-9a7d-3f8d3c2a1b00", "title": "Wooden chair" }
  ],
  "pagination": { "current_page": 1, "total_pages": 1, "total": 1 }
}