List Languages

List Languages

GET https://api.ocamba.com/v2/ocamba/languages
Returns a list of Languages

Tip

Searchable field is name. Sortable fields are: name, code, code3 and id.

Filterable fields are: id, name code and code3.

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v2/ocamba/languages" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/ocamba/languages';
const options = {
  method: 'GET',
  headers: {
    Authorization: `Bearer {TOKEN}`
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
$ch = curl_init("https://api.ocamba.com/v2/ocamba/languages");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

{
  "total": 40,
  "items": [
    {
      "id": "ar",
      "code": "ar",
      "code3": "ara",
      "name": "Arabic"
    },
    {
      "id": "bg",
      "code": "bg",
      "code3": "bul",
      "name": "Bulgarian"
    },
    {
      "id": "ca",
      "code": "ca",
      "code3": "cat",
      "name": "Catalan"
    }
  ]
}
Responses