81trust / 100

Data Country

by Saylor Innovations Country Prof in Company & people data

x402 APIPassing, checked 3 h ago

Country code to World Bank name, region, capital, income group and lending classification

GET https://saylorinnovations.com/api/data/country

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
248 ms typical, 735 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://saylorinnovations.com/api/data/country?country=US"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fsaylorinnovations.com%2Fapi%2Fdata%2Fcountry
const res = await pay("https://saylorinnovations.com/api/data/country?country=US");
console.log(await res.json());

Example input

{
  "country": "US"
}

Example output

{
  "exampleTruncated": true,
  "fixedSubject": "US",
  "report": {
    "attribution": "World Bank: World Development Indicators and country metadata. CC BY 4.0. Saylor normalizes the source data; no World Bank endorsement is implied.",
    "capital": "Washington D.C.",
    "code": "US",
    "incomeGroup": "High income",
    "iso3": "USA",
    "lendingType": "Not classified",
    "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
    "limitations": "World Bank country classification metadata. Names and classifications reflect this source and are not a statement about sovereignty or a real-time demographic estimate.",
    "name": "United States",
    "region": "North America"
  },
  "retrievedAt": "2026-09-18T14:43:08.007Z",
  "sample": true,
  "service": "country",
  "source": {
    "name": "World Bank",
    "url": "https://api.worldbank.org/v2/country/US?format=json"
  },
  "subject": "US"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402248 ms$0.01
7 h agoPassed402711 ms$0.01
10 h agoPassed402212 ms$0.01
14 h agoPassed402223 ms$0.01
18 h agoPassed402239 ms$0.01
21 h agoPassed402735 ms$0.01
26 h agoPassed402725 ms$0.01
29 h agoPassed402676 ms$0.01
32 h agoPassed402220 ms$0.01
37 h agoPassed402827 ms$0.01

History

11 Oct 2026Price changed from $0.003 to $0.01