This endpoint allows you to retrieve all language variables (langvars) from your Venddor store. You can fetch variables for the default language or for a specific language.
https://your-store-url.com/api
This request returns language variables for the default language set in your store's settings (Settings → Appearance → Backend default language).
[ { "lang_code": "en", "name": "checkout_terms_n_conditions", "value": "I accept the Terms and Conditions" }, { "lang_code": "en", "name": "free_shipping", "value": "Free shipping" }, { "lang_code": "en", "name": "signin", "value": "Sign in" } ]
Use this endpoint to get language variables for a specific language, identified by its ID.
Parameter | Type | Description |
---|---|---|
lang_id* | integer | The unique identifier of the language |
GET /api/languages/1/langvars/
You can also specify the language using its two-letter language code as a query parameter.
Parameter | Type | Description |
---|---|---|
sl* | string | The two-letter code of the language (e.g., "en", "es", "fr") |
GET /api/langvars/?sl=es
This will return all language variables for Spanish.