Bahrain Open Data Portal
data.gov.bh
Bahrain's national open-data portal: search the catalogue and query rows out of any dataset.
GET /v1/data/datagovbh/catalogue-facets1Request
Restrict the response to one catalogue facet instead of all of them.
ODSQL filter over dataset metadata applied before counting.
curl "https://api.fastcrw.com/v1/data/datagovbh/catalogue-facets" \ -H "Authorization: Bearer $FASTCRW_API_KEY"
2Response example
A sample shape. Press Run to see live data from Bahrain Open Data Portal.
| rel | href |
|---|---|
| self | https://data.gov.bh/api/explore/v2.1/catalog/facets |
| source | https://data.gov.bh/api/explore/v2.1/catalog |
Attribution: Source: Bahrain Open Data Portal
Licence: Bahrain Open Government Data License v1.0 (20 May 2025), the purpose-written national licence, read in full.
Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Catalogue facet values
Use Bahrain Open Data Portal (datagovbh) from fastCRW Pergamon, capability "Catalogue facet values" (catalogue-facets). You want to see how the whole portal is organised, or which theme and publisher values you can refine the dataset listing by. Example options: facet=publisher, where=search("petroleum"), refine=theme:"Agriculture". Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovbh" and capability "catalogue-facets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset detail
Use Bahrain Open Data Portal (datagovbh) from fastCRW Pergamon, capability "Dataset detail" (dataset). You have a dataset_id and need its column names and types before writing a where, select or group_by clause. Example options: dataset=local-sales-of-petroleum-products, select=dataset_id,fields. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovbh" and capability "dataset". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset facet values
Use Bahrain Open Data Portal (datagovbh) from fastCRW Pergamon, capability "Dataset facet values" (dataset-facets). You want the legal values of a column (which years, which categories) before writing a refine or where clause against it. Example options: dataset=local-sales-of-petroleum-products, facet=year, where=quantity>1000. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovbh" and capability "dataset-facets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset catalogue
Use Bahrain Open Data Portal (datagovbh) from fastCRW Pergamon, capability "Dataset catalogue" (datasets). You want to discover what Bahraini open datasets exist, or to find a dataset_id before querying records. Example options: where=search("petroleum"), refine=theme:"Agriculture", exclude=theme:"Agriculture". Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovbh" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
