Research

Official statistics for every place of a type inside a region

Changed on

Returns one value per place for every place of one type inside a parent place, for example every county of California (parent=06&type=county) or every NUTS 2 region of Germany (parent=DEU&type=nuts2). All rows come from one agency. date=latest (the default) gives each place's latest value; a year, month or day gives the value for that period. At most 5,000 rows: a larger request answers 413, narrow it with a smaller parent.

get/api/v1/statistics/places/{indicator}

Request

  • Base URL
    https://sugra.ai
  • URL
    https://sugra.ai/api/v1/statistics/places/{indicator}
  • Auth
    API key in header x-api-key

Path parameters

indicatorstring required

Sugra indicator code.

Example:median-household-income

Query parameters

parentstring required

Code of the place that contains the rows.

Example:06
typestring required

Place type of the rows: country, state, county, city, metro, zcta, admin1, admin2, nuts1, nuts2 or nuts3.

Example:county
datestring

latest, or a period: 2023, 2023-06 or 2023-06-30.

Example:latest
agencystring nullable

Agency code from /indicators/{indicator}.

Example:census-bureau

Response

One row per place with its value, from one agency.

Example response

{
  "data": {
    "indicator": "median-household-income",
    "name": "Median household income",
    "unit": "USD",
    "period": "annual",
    "parent": {
      "id": "06037",
      "code_system": "fips",
      "name": "Los Angeles County",
      "type": "county",
      "country": "USA"
    },
    "type": "county",
    "source": {
      "id": "census-bureau",
      "name": "U.S. Census Bureau",
      "url": "https://www.census.gov/",
      "method": "ACS 5-year estimate"
    },
    "rows": [
      {
        "place": {
          "id": "06037",
          "code_system": "fips",
          "name": "Los Angeles County",
          "type": "county",
          "country": "USA"
        },
        "date": "2024"
      }
    ]
  },
  "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