Reference data¶
Your objects store standard codes: DE in countryOfOrigin, EUR in priceCurrency, KGM in unitCode,
Europe/Berlin in scheduleTimezone. ObjectsGrid's reference data says what they mean, in every language, so your
app doesn't keep its own tables of country names and currency symbols.
- Free and public: no account, no key, not billed. Requests are limited per client address.
- Seven datasets: countries (ISO 3166-1), subdivisions (ISO 3166-2), languages (ISO 639), currencies (ISO 4217), time zones (IANA), locales (BCP 47) and units (UN/CEFACT Recommendation 20).
- Names in about 270 languages and regional variants, every one Unicode CLDR covers at modern level.
- Stable: one address,
https://apis.objectsgrid.com/referencedata, for good. A code never disappears or changes meaning: a withdrawn one stays, markedwithdrawn, so a storedYUorDEMstill resolves.
The sources and their licences are on Reference data.
Look a code up¶
{
"code": "RO", "alpha3": "ROU", "numeric": "642", "name": "Rumänien",
"currencies": ["RON"], "languages": ["ro"], "region": "151", "continent": "150", "flag": "🇷🇴",
"meta": {"dataset": "countries", "revision": "2026-12",
"sources": [{"name": "Unicode CLDR", "version": "49", "url": "https://cldr.unicode.org", "licence": "Unicode License v3"}]}
}
langis a BCP 47 tag;de-ATfalls back tode, then English.- A code's case doesn't count:
rofindsRO. A time zone's code has slashes,/referencedata/timezones/Europe/Berlin, and an old name finds its zone:US/PacificanswersAmerica/Los_Angeles. - A time zone carries its offset now,
currentOffset, besides itsstandardOffset. - A code the dataset doesn't know answers
404with the codeCODE_NOT_FOUND.
Search, for pickers¶
Every list takes search: someone types a few letters, your picker shows the matches.
curl 'https://apis.objectsgrid.com/referencedata/countries?search=allem&lang=fr' # Allemagne (DE)
curl 'https://apis.objectsgrid.com/referencedata/countries?search=deutsch' # Germany: names in every language
curl 'https://apis.objectsgrid.com/referencedata/countries?search=usa' # United States: an other name
curl 'https://apis.objectsgrid.com/referencedata/timezones?search=zurich' # Europe/Zurich
curl 'https://apis.objectsgrid.com/referencedata/currencies?search=euro&limit=5'
- What it matches: codes (and alpha-3, numeric, a time zone's old names), names in every language, and a short,
reviewed list of other names (
USA,UK,Holland,Ivory Coast). - How: case and accents don't count (
zurichfinds Zürich), and the text matches the start of any word, sokongfinds Hong Kong. - Order: a code the text equals first; then names in the
langlanguage before others; within them, a name the text equals, then names starting with it, then names with a later word starting with it. - How many: 20 by default, at most 100 with
limit.totalCountsays how many matched. - Each item's
meta.matchedis the name or code that matched, so a picker can show whyDEcame up fordeutsch.
A list answers like every ObjectsGrid list, {"items": [...], "pageInfo": {"hasNextPage": ...}, "totalCount": ...}.
Without search it lists every code, in code order; the largest dataset has about 5,000 current codes, so there's no paging.
Filter with where¶
Lists take the same where as every list:
curl -G 'https://apis.objectsgrid.com/referencedata/countries' \
--data-urlencode 'where={"continent": {"equals": "150"}, "currencies": {"has": "EUR"}}' --data-urlencode 'lang=de'
Text fields take equals, in, notIn, not, lt, lte, gt, gte, startsWith, endsWith, contains and
mode; lists has, hasSome, hasEvery and isEmpty; true/false fields equals and not; combine them with AND,
OR and NOT. name is the name in the lang language. Withdrawn codes are listed only when the where names
withdrawn. Each dataset's fields are on its page.
Revisions¶
The data changes when its sources publish: CLDR about twice a year, the tz database a few times a year. Each change is
a new revision, named by month, such as 2026-12. Without revision, the newest answers; with it, the answer never
changes:
A pinned revision may be cached for a year (Cache-Control: public, max-age=31536000, immutable); the newest, for an
hour. Every answer has an ETag, and If-None-Match with it answers 304. GET /referencedata lists the datasets,
their sources, licences and languages, and every revision. A revision only adds codes and fields, or marks codes
withdrawn.
In GraphQL¶
A stored code field has a companion, <field>Info, that resolves it:
query {
product(id: "p-123") {
countryOfOrigin # "DE", as stored
countryOfOriginInfo(lang: "fr") { name flag currencies { code symbol } }
weight { value unitCodeInfo(lang: "de") { name symbol } }
}
offer(id: "o-1") { price priceCurrencyInfo { symbol digits } }
}
Every code field has one: addressCountryInfo, addressRegionInfo (an ISO 3166-2 code, or the part after the
country's), countryOfOriginInfo, priceCurrencyInfo, currencyInfo, inLanguageInfo, availableLanguageInfo,
knowsLanguageInfo, unitCodeInfo, scheduleTimezoneInfo and the others. A code the data doesn't know is null;
your stored data never changes.
The datasets are queries of their own, with related records in the same language:
query {
countries(search: "allem", lang: "fr", limit: 5) { code name flag }
country(code: "RO", lang: "de") { name languages { name nativeName } currencies { name symbol } timeZones { code } }
timeZones(where: {countries: {has: "US"}}) { code city currentOffset }
currency(code: "EUR") { symbol digits countries { code } }
}
A request asking only for reference data needs no token and isn't billed.
Errors¶
| Code | Status | When |
|---|---|---|
CODE_NOT_FOUND |
404 | the dataset has no such code |
DATASET_NOT_FOUND |
404 | /referencedata/<dataset> names none of the seven |
REVISION_NOT_FOUND |
404 | revision names no published revision |
INVALID_QUERY |
400 | a where, search or limit that can't be run |
The contract: ReferenceData.