Global Economy & Trade

Search the HDX catalog

Changed on

Free-text + structured search over the UN OCHA Humanitarian Data Exchange (HDX) catalog. Backed by CKAN package_search with Solr query syntax. Use q for keywords, and any combination of country (lowercase ISO-3 alpha, mapped to CKAN groups), tag (Topics vocabulary slug), organization (CKAN organization slug) to narrow results. Page with rows and start; upstream caps rows at 1000. Response includes facet counts for organization, country group, and Topics tags.

get/api/v1/hdx/search

Request

  • Base URL: https://sugra.ai
  • URL: https://sugra.ai/api/v1/hdx/search
  • Auth: API key in header x-api-key

Query parameters

qstring nullable

Solr query string - keywords, phrases, or Solr field queries. Empty = all datasets.

countrystring nullable

Lowercase ISO-3 alpha country code (CKAN group), e.g. sdn, ukr, afg.

tagstring nullable

Topics vocabulary tag slug (see /hdx/topics), e.g. refugees, food-security.

organizationstring nullable

CKAN organization slug (publisher), e.g. unhcr, ocha-sudan, wfp.

rowsinteger

Page size (max 1000 per upstream cap).

startinteger

Page offset for pagination.

sortstring nullable

CKAN sort directive, e.g. metadata_modified desc, score desc, metadata_modified desc.

Response

Matched datasets, facet counts, and upstream total count.

Example response

{
  "meta": {
    "endpoint": "/api/v1/fred/us/cpi",
    "data_time": "2026-04-16T14:30:00Z",
    "response_time": "2026-04-16T14:30:12Z",
    "provider": "Sugra API v1.0.1",
    "data_age_days": 8.532,
    "source": "sugra_crypto",
    "attribution": "Short interest and Reg SHO daily short volume data is owned by and sourced from FINRA (Financial Industry Regulatory Authority).",
    "fallback_chain": [
      "sugra_crypto",
      "sugra_finance"
    ],
    "stale_since": "2026-09-08T12:00:00Z",
    "period": "2026-Q1",
    "notes": "the UKMTO report behind these counts is dated 2026-08-21 and is 11 days old"
  }
}

Changes