verified owner API x402 solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpeip155:8453eip155:137eip155:42161

Get up to five recent annual observations for population, GDP in current US dollars and co

Get up to five recent annual observations for population, GDP in current US dollars and consumer-price inflation. Includes years, units, source links and missing values.

3000 (raw units)
price
calls / 30d
unique payers
2026-09-19
updated

Provider

Saylor Innovations Knowledge Base · verified

For agents

Capabilities
Get up to five recent annual observations for population, GDP in current US dollars and consumer-price inflation. Includes years, units, source links and missing values.
License
Commercial — pay-per-request via x402
Repository
https://github.com/SaylorInnovations/solana-x402

Payment (x402 accepts[])

[
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "3000",
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
    "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
    "amount": "3000",
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xf8A376eBF123D7252cd7b66bcD77A727a4def22f",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "payTo": "0xf8A376eBF123D7252cd7b66bcD77A727a4def22f",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "3000",
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "payTo": "0xf8A376eBF123D7252cd7b66bcD77A727a4def22f",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "3000",
    "maxTimeoutSeconds": 120
  }
]

Output schema

{
  "type": "object",
  "required": [
    "service",
    "subject",
    "retrievedAt",
    "source",
    "report"
  ],
  "properties": {
    "service": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "retrievedAt": {
      "type": "string",
      "format": "date-time"
    },
    "source": {
      "type": "object",
      "required": [
        "name",
        "url"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "report": {
      "type": "object",
      "properties": {
        "countryCode": {
          "type": "string"
        },
        "countryName": {
          "type": "string"
        },
        "datasetUpdated": {
          "type": [
            "string",
            "null"
          ]
        },
        "indicators": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "unit": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "observations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "string"
                    },
                    "value": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "attribution": {
          "type": "string"
        },
        "limitations": {
          "type": "string"
        }
      },
      "required": [
        "countryCode",
        "countryName",
        "indicators",
        "attribution",
        "limitations"
      ]
    }
  }
}

Use it

curl

curl "https://saylorinnovations.com/api/data/economy?country={country}"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid

JavaScript

const res = await fetch("https://saylorinnovations.com/api/data/economy?country={country}");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}

Python

import httpx
res = httpx.get("https://saylorinnovations.com/api/data/economy?country={country}")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Machine-readable

Everything on this page is also available as clean JSON at /resources/country-economic-indicators.json, and this resource appears in /discovery/resources and /discovery/search.