Country Profile
by Wikidata Facts in Markets & finance
Country profile from Wikidata: capital, population, area, languages, currency, leaders, ISO codes, borders, with property ids.
https://wikidata-facts.x402tookit.com/country-profile- Price
- $0.04
- per call in USDC
- Uptime
- 53.3%
- last 30 days
- Response time
- 528 ms
- 585 ms slowest 5%
- Last check
- Passed
- 12 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://wikidata-facts.x402tookit.com/country-profile
Each call costs $0.04 in USDC on Polygon, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://wikidata-facts.x402tookit.com/country-profile?country=FranceParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
country | string | Yes | Country name, ISO alpha-2/alpha-3 code or Wikidata Q-id, e.g. France or FR |
hint | string | No | Optional words to disambiguate a name, e.g. 'Caucasus' for Georgia |
Example response
The provider's example. We can't check it without paying.
Example response, 137 lines
{
"alternatives": [],
"asOf": "2026-10-11T08:43:03.055Z",
"attribution": "Data: Wikidata, CC0 1.0 public domain dedication (https://www.wikidata.org/wiki/Wikidata:Licensing).",
"degraded": false,
"description": "country in Western Europe and other continents (through its overseas territories in America, Africa and Oceania)",
"disclaimer": "Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting.",
"facts": {
"areaKm2": {
"asOf": null,
"lower": 643800,
"property": "P2046",
"unit": "km2",
"upper": 643802,
"value": 643801
},
"borders": {
"property": "P47",
"values": [
{
"id": "Q29",
"label": "Spain"
},
{
"id": "Q228",
"label": "Andorra"
}
]
},
"callingCode": {
"property": "P474",
"value": "+33"
},
"capital": {
"property": "P36",
"values": [
{
"id": "Q90",
"label": "Paris"
}
]
},
"continent": {
"property": "P30",
"values": [
{
"id": "Q46",
"label": "Europe"
}
]
},
"currency": {
"property": "P38",
"values": [
{
"id": "Q4916",
"label": "euro"
},
{
"id": "Q214393",
"label": "CFP Franc"
}
]
},
"headOfGovernment": {
"property": "P6",
"values": [
{
"id": "Q20089181",
"label": "Sébastien Lecornu"
}
]
},
"headOfState": {
"property": "P35",
"values": [
{
"id": "Q3052772",
"label": "Emmanuel Macron"
}
]
},
"isoAlpha2": {
"property": "P297",
"value": "FR"
},
"isoAlpha3": {
"property": "P298",
"value": "FRA"
},
"isoNumeric": {
"property": "P299",
"value": "250"
},
"officialLanguages": {
"property": "P37",
"values": [
{
"id": "Q150",
"label": "French"
}
]
},
"population": {
"asOf": "2025-01-01",
"property": "P1082",
"rank": "preferred",
"value": 68605616
},
"topLevelDomain": {
"property": "P78",
"values": [
{
"id": "Q37271",
"label": ".fr"
}
]
}
},
"label": "France",
"missing": [],
"notChecked": [
"whether Wikidata is current: elected offices, populations and borders can lag real events",
"disputed territories and status (Wikidata states what editors entered, not a legal position)",
"…2 more"
],
"reasons": [
"Values are the current or latest statements (preferred rank first); property ids are in each field."
],
"resolvedVia": "search",
"source": "Wikidata (CC0)",
"sourceUrl": "https://www.wikidata.org",
"summary": "France (Q142, ISO FR/FRA): capital Paris; population 68,605,616 (2025-01-01); area 643,801 km2.",
"url": "https://www.wikidata.org/wiki/Q142",
"verdict": "PROFILE_COMPLETE",
"wikidataId": "Q142"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.04.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://wikidata-facts.x402tookit.com/country-profile?country=France'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://wikidata-facts.x402tookit.com/country-profile?country=France' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.04 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.04" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.04 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwikidata-facts.x402tookit.com%2Fcountry-profile
const res = await pay("https://wikidata-facts.x402tookit.com/country-profile?country=France");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.04 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.04"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://wikidata-facts.x402tookit.com/country-profile?country=France")
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 12 h ago | Passed | 402 | 528 ms | $0.04 |
| 44 h ago | Expected HTTP 402, got 530 | 530 | 117 ms | - |
| 3 days ago | Expected HTTP 402, got 530 | 530 | 107 ms | - |
| 4 days ago | Expected HTTP 402, got 530 | 530 | 147 ms | - |
| 5 days ago | Expected HTTP 402, got 530 | 530 | 92 ms | - |
Show 10 older checks
| 5 days ago | Expected HTTP 402, got 530 | 530 | 105 ms | - |
| 5 days ago | Expected HTTP 402, got 530 | 530 | 228 ms | - |
| 5 days ago | Expected HTTP 402, got 530 | 530 | 137 ms | - |
| 5 days ago | Passed | 402 | 528 ms | $0.04 |
| 5 days ago | Passed | 402 | 527 ms | $0.04 |
| 6 days ago | Passed | 402 | 562 ms | $0.04 |
| 6 days ago | Passed | 402 | 537 ms | $0.04 |
| 6 days ago | Passed | 402 | 541 ms | $0.04 |
| 6 days ago | Passed | 402 | 518 ms | $0.04 |
| 7 days ago | Passed | 402 | 585 ms | $0.04 |