25trust / 100
Uk Postcode
by Aayat AI in Weather & location
x402 APIFailing, checked 2 h ago
UK postcode lookup: coordinates, country, region, local authority, ward, parish, parliamentary constituency, LSOA/MSOA and official ONS codes. Pass ?postcode=SW1A1AA, or ?lat=51.5&lon=-0.12 to find the nearest postcodes. Official ONS data via postcodes.io.
GET https://aayatai.com/uk/postcode
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 6.7%
- Response time
- 574 ms typical, 574 ms slowest 5%
- Last check
- 2 h ago: Expected HTTP 402, got 410
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://aayatai.com/uk/postcode?postcode=SW1A+1AA"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%2Faayatai.com%2Fuk%2Fpostcode
const res = await pay("https://aayatai.com/uk/postcode?postcode=SW1A+1AA");
console.log(await res.json());Example input
{
"postcode": "SW1A 1AA"
}Example output
{
"found": true,
"licence": "Contains public sector information licensed under the Open Government Licence v3.0.",
"results": [
{
"codes": {
"admin_district": "E09000033"
},
"constituency": "Cities of London and Westminster",
"country": "England",
"county": null,
"district": "Westminster",
"eastings": 529090,
"latitude": 51.501009,
"longitude": -0.141588,
"lsoa": "Westminster 018C",
"msoa": "Westminster 018",
"northings": 179645,
"outcode": "SW1A",
"parish": "Westminster, unparished area",
"postcode": "SW1A 1AA",
"region": "London",
"ward": "St James's"
}
]
}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 |
|---|---|---|---|---|
| 2 h ago | Expected HTTP 402, got 410 | 410 | 187 ms | - |
| 6 h ago | Expected HTTP 402, got 410 | 410 | 226 ms | - |
| 11 h ago | Expected HTTP 402, got 410 | 410 | 50 ms | - |
| 15 h ago | Expected HTTP 402, got 410 | 410 | 39 ms | - |
| 19 h ago | Expected HTTP 402, got 410 | 410 | 120 ms | - |
| 23 h ago | Expected HTTP 402, got 410 | 410 | 44 ms | - |
| 27 h ago | Expected HTTP 402, got 410 | 410 | 35 ms | - |
| 31 h ago | Expected HTTP 402, got 410 | 410 | 118 ms | - |
| 35 h ago | Expected HTTP 402, got 410 | 410 | 118 ms | - |
| 40 h ago | Expected HTTP 402, got 410 | 410 | 58 ms | - |
| 43 h ago | Expected HTTP 402, got 410 | 410 | 35 ms | - |
| 2 days ago | Expected HTTP 402, got 410 | 410 | 34 ms | - |
| 2 days ago | Expected HTTP 402, got 410 | 410 | 38 ms | - |
| 2 days ago | Expected HTTP 402, got 410 | 410 | 36 ms | - |
| 2 days ago | Passed | 402 | 574 ms | $0.003 |