# Economic Data Explorer - Top Countries by Indicator

> Economic Data Explorer - Top Countries by Indicator is a paid API for AI agents from econdash.org, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns the top N countries ranked by a specific economic, demographic, or health indicator for the most recent available date

## Facts

- Endpoint: GET https://econdash.org/api/v1/m2m/timeseries/%7Bcode%7D/top-countries
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/economic-data-explorer-top-countries-by-indicator-cec26dc4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NoT5Acm0J8xeewld_BRNg

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability economic-data-explorer-top-countries-by-indicator-cec26dc4
```

Example prompt: Show me the top 15 countries ranked by GDP using the indicator code NY.GDP.MKTP.CD from the Economic Data Explorer.

## When to prefer this

Use this endpoint when you need a ranked list of countries for a specific World Bank-style indicator code (e.g. NY.GDP.MKTP.CD) and want to identify top performers. Ideal for comparative country analysis, leaderboard generation, or data enrichment tasks involving 265+ economic, demographic, and health indicators across 298 countries.

## Known failure modes

- Invalid or unknown indicator code returns 404 or empty result
- n parameter out of range (must be 1–50) returns validation error
- Network or payment failure returns 402 or 5xx
- Indicator has no recent data for any country returns empty array

## How this service works

Interactive dashboard for exploring economic, demographic, and health indicators across countries. 265 indicators, 298 countries.

## Output

A JSON array of objects, each containing a date (most recent available), ISO3 country code, country name, and the indicator value — sorted descending by value, limited to the requested number of top countries.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "Indicator code, e.g. NY.GDP.MKTP.CD"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "n": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1,
       "description": "Number of top countries to return"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": [
  {
   "date": "2023-01-01",
   "iso3": "USA",
   "name": "United States",
   "value": 27360000000000
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/economic-data-explorer-top-countries-by-indicator-cec26dc4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from econdash.org](https://www.zero.xyz/host/econdash.org/llms.txt)
