v8

latestOpenAPI 3.1.0Proprietary2026-08-081,5483,1755.5 MB
Global Economy & Trade

All indicators under a goal (filter required for large pages)

Returns observations spanning every indicator and series under a goal. Source: /Goal/Data. Filter guard: requesting a goal without area or time_period AND page_size > 500 returns HTTP 400 (goal 1 alone exposes 132,644 rows). Provide at least one filter, or reduce page_size to paginate deliberately.

get/api/v1/un-sdg/goal/{code}/data

Path parameters

codestring required

Goal code 1-17.

Goal code 1-17.

Query parameters

areastring nullable

Comma-separated M49 area codes.

Comma-separated M49 area codes.

time_periodstring nullable

Comma-separated years to restrict to.

Comma-separated years to restrict to.

pageinteger

Page number (1-indexed).

Page number (1-indexed).

page_sizeinteger

Records per page. Must be <=500 when no filter is supplied.

Records per page. Must be <=500 when no filter is supplied.

Response

Paginated observation rows across the goal.

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",
    "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"
    ]
  }
}