Longevity Country Longevity
by LongevityPulse in Other
Country longevity / life expectancy profile for longevity and relocation agents. Returns life expectancy, healthy life expectancy (HALE), leading causes of premature death, and healthcare quality for aging, with practical advice. WHO data across 195+ countries worldwide.
https://longevitypulse.theaslangroupllc.com/api/longevity/country-longevity- Price
- $0.12
- per call in USDC
- Uptime
- 0.0%
- last 30 days
- Response time
- -
- no timed checks yet
- Last check
- Failed
- 4 h ago, next any minute now
Reliability
Latest check failed 4 h ago: Amount "0.12" is not in atomic token units
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://longevitypulse.theaslangroupllc.com/api/longevity/country-longevity
Each call costs $0.12 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://longevitypulse.theaslangroupllc.com/api/longevity/country-longevity?country=Japan&lang=enParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
country | string | No | Country name — e.g. "Japan" | "Singapore" | "Spain" | "South Korea" | "Switzerland" | "Costa Rica" | "Australia" | "United States" | "India" | "Nigeria" |
lang | string | No | en | es | fr | de | ja | zh | ko | pt | ar | hi (default: en) |
Example response
The provider's example. We can't check it without paying.
{
"country": "Japan",
"healthy_life_expectancy": {
"hale": "74.1 years",
"healthspan_gap": "10.2 years spent in disability",
"what_this_means": "Japanese people enjoy 74 years of healthy life — still highest globally despite the gap"
},
"life_expectancy": {
"female": "87.1 years",
"global_rank": "#2 globally",
"male": "81.1 years",
"total": "84.3 years",
"trend": "Stable — has held top position for decades",
"vs_global_average": "+11 years above global average of 73.3"
},
"longevity_strengths": {
"what_this_country_does_well": [
"Universal healthcare with strong preventive care",
"Traditional diet low in saturated fat, high in omega-3",
"Strong social cohesion and elder respect (ikigai culture)",
"Active lifestyle from walking-based urban design"
]
}
}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.12.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://longevitypulse.theaslangroupllc.com/api/longevity/country-longevity?country=Japan&lang=en'
# 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://longevitypulse.theaslangroupllc.com/api/longevity/country-longevity?country=Japan&lang=en' \
| 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.12 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.12" });
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.12 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Flongevitypulse.theaslangroupllc.com%2Fapi%2Flongevity%2Fcountry-longevity
const res = await pay("https://longevitypulse.theaslangroupllc.com/api/longevity/country-longevity?country=Japan&lang=en");
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.12 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.12"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://longevitypulse.theaslangroupllc.com/api/longevity/country-longevity?country=Japan&lang=en")
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 |
|---|---|---|---|---|
| 4 h ago | Amount "0.12" is not in atomic token units | 402 | 265 ms | $0.12 |
| 12 h ago | Amount "0.12" is not in atomic token units | 402 | 255 ms | $0.12 |
| 21 h ago | Amount "0.12" is not in atomic token units | 402 | 810 ms | $0.12 |
| 29 h ago | Amount "0.12" is not in atomic token units | 402 | 224 ms | $0.12 |
| 37 h ago | Amount "0.12" is not in atomic token units | 402 | 201 ms | $0.12 |
Show 10 older checks
| 45 h ago | Amount "0.12" is not in atomic token units | 402 | 452 ms | $0.12 |
| 2 days ago | Amount "0.12" is not in atomic token units | 402 | 210 ms | $0.12 |
| 3 days ago | Amount "0.12" is not in atomic token units | 402 | 323 ms | $0.12 |
| 3 days ago | Amount "0.12" is not in atomic token units | 402 | 198 ms | $0.12 |
| 3 days ago | Amount "0.12" is not in atomic token units | 402 | 229 ms | $0.12 |
| 3 days ago | Amount "0.12" is not in atomic token units | 402 | 318 ms | $0.12 |
| 4 days ago | Amount "0.12" is not in atomic token units | 402 | 210 ms | $0.12 |
| 4 days ago | Amount "0.12" is not in atomic token units | 402 | 273 ms | $0.12 |
| 4 days ago | Amount "0.12" is not in atomic token units | 402 | 194 ms | $0.12 |
| 5 days ago | Amount "0.12" is not in atomic token units | 402 | 341 ms | $0.12 |