languages
languages
Browse 50 languages records. Free mock data API by Draftbit — fetch over REST or browse paginated HTML.
English
en
Chinese
zh
Hindi
hi
Spanish
es
French
fr
Arabic
ar
Showing first 6 of 24 on this page.
curl -sS \
"https://example-data.com/api/v1/languages?limit=25"const res = await fetch(
"https://example-data.com/api/v1/languages?limit=25"
);
const { data, meta } = await res.json();import type { Language, ListEnvelope } from "https://example-data.com/types/languages.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/languages?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Language>;import requests
res = requests.get(
"https://example-data.com/api/v1/languages",
params={"limit": 25},
)
data = res.json() {
"data": [
{
"id": 1,
"code": "en",
"name": "English",
"nativeName": "English",
"direction": "ltr"
},
{
"id": 2,
"code": "zh",
"name": "Chinese",
"nativeName": "中文",
"direction": "ltr"
},
{
"id": 3,
"code": "hi",
"name": "Hindi",
"nativeName": "हिन्दी",
"direction": "ltr"
}
],
"meta": {
"page": 1,
"limit": 25,
"total": 50,
"totalPages": 2
},
"links": {
"self": "/api/v1/languages?page=1",
"first": "/api/v1/languages?page=1",
"last": "/api/v1/languages?page=2",
"next": "/api/v1/languages?page=2",
"prev": null
}
}