Skip to main content
All providers

Bahrain Open Data Portal

Public recordsBH

data.gov.bh

Bahrain's national open-data portal: search the catalogue and query rows out of any dataset.

Capabilities (6)

GET /v1/data/datagovbh/catalogue-facets1 credit

Returns the catalogue-level facets - theme, keyword, publisher, licence, language and more - each with its distinct values and the number of datasets under them.

facet?where?refine?exclude?
GET /v1/data/datagovbh/dataset1 credit

Returns one dataset's full metadata record: titles, description, themes, keywords, publisher, licence, modified date, record count and the complete field schema with each column's name, label and type.

datasetselect?
GET /v1/data/datagovbh/dataset-facets1 credit

Returns the facetable columns of one dataset with every distinct value and its row count - a value histogram without downloading the rows.

datasetfacet?where?refine?exclude?
GET /v1/data/datagovbh/datasets1 credit

Returns the portal's datasets with their dataset_id, titles, description, themes, keywords, publisher, record count and field schema, plus a total_count for the whole catalogue.

where?refine?exclude?limit?offset?order_by?select?group_by?
GET /v1/data/datagovbh/records1 credit

Returns the actual rows of one dataset as JSON objects keyed by column name, with a total_count, and supports ODSQL filtering, sorting, field selection and server-side aggregation.

datasetwhere?refine?exclude?select?group_by?order_by?limit?offset?
GET /v1/data/datagovbh/records-export1 credit

Returns up to 1,000 rows of one dataset as a plain JSON array, bypassing the 100-row and 10,000-offset ceilings the records endpoint enforces.

datasetwhere?refine?exclude?select?order_by?

Licence

Bahrain Open Government Data License v1.0 (20 May 2025), the purpose-written national licence, read in full.

https://nea.gov.bh/Documents/OpenDataLicense.pdf

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: Bahrain Open Data Portal

Cache: up to 3600s