List All Language Variables - Venddor API

List All Language Variables

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.

Base URL: https://your-store-url.com/api

Requesting Language Variables

For the default language

GET /api/langvars/

This request returns language variables for the default language set in your store's settings (Settings → Appearance → Backend default language).

Example Response

[
  {
    "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"
  }
]

For a specific language by ID

GET /api/languages/{lang_id}/langvars/

Use this endpoint to get language variables for a specific language, identified by its ID.

Path Parameters

Parameter Type Description
lang_id* integer The unique identifier of the language

Example

GET /api/languages/1/langvars/

For a specific language by code

GET /api/langvars/?sl={lang_code}

You can also specify the language using its two-letter language code as a query parameter.

Query Parameters

Parameter Type Description
sl* string The two-letter code of the language (e.g., "en", "es", "fr")

Example

GET /api/langvars/?sl=es

This will return all language variables for Spanish.

Tip: Use pagination parameters to limit the number of language variables returned in a single request, as there can be hundreds or thousands of variables in a typical store.

Common Use Cases