78trust / 100

Data Country

by country-info in Weather & location

x402 APIPassing, checked 1 h ago

Country facts: official name, ISO codes, capital, region, population, area, currencies, languages, calling code, top-level domain, timezones, neighbours and flag, from the free REST Countries API. $0.01 per lookup.

POST https://intel.rallylive.ca/data/country

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://intel.rallylive.ca/data/country" \
  -H "content-type: application/json" \
  -d '{"country":"Canada"}'
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%2Fintel.rallylive.ca%2Fdata%2Fcountry
const res = await pay("https://intel.rallylive.ca/data/country", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"country":"Canada"}),
});
console.log(await res.json());

Example input

{
  "country": "Canada"
}

Example output

{
  "area_km2": 9984670,
  "borders": [
    "USA"
  ],
  "capital": "Ottawa",
  "currencies": [
    "CAD"
  ],
  "dial_code": "+1",
  "iso2": "CA",
  "iso3": "CAN",
  "languages": [
    "English",
    "French"
  ],
  "name": "Canada",
  "official": "Canada",
  "population": 38000000,
  "query": "Canada",
  "region": "Americas",
  "timezones": [
    "UTC-08:00"
  ],
  "tld": ".ca"
}

Security scan

  • Payment address changed recently in payment
    Payment address changed from 0x91D568599fB802Cb3f03F067D2063785dBAF0abd to 0xFC24FD34da9e49A0110DCaEe3Ad30eC54175eBB3

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402200 ms$0.01
5 h agoPassed40244 ms$0.01
9 h agoPassed40245 ms$0.01
12 h agoPassed40238 ms$0.01
16 h agoPassed40245 ms$0.01
19 h agoPassed40264 ms$0.01
23 h agoPassed402274 ms$0.01
27 h agoPassed40251 ms$0.01
30 h agoPassed402182 ms$0.01
34 h agoPassed402134 ms$0.01
38 h agoPassed40239 ms$0.01
41 h agoPassed40257 ms$0.01
46 h agoPassed40264 ms$0.01

History

11 Oct 2026Payment address changed from 0x91D568599fB802Cb3f03F067D2063785dBAF0abd to 0xFC24FD34da9e49A0110DCaEe3Ad30eC54175eBB3