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

WhenResultHTTPTimePrice
2 h agoExpected HTTP 402, got 410410187 ms-
6 h agoExpected HTTP 402, got 410410226 ms-
11 h agoExpected HTTP 402, got 41041050 ms-
15 h agoExpected HTTP 402, got 41041039 ms-
19 h agoExpected HTTP 402, got 410410120 ms-
23 h agoExpected HTTP 402, got 41041044 ms-
27 h agoExpected HTTP 402, got 41041035 ms-
31 h agoExpected HTTP 402, got 410410118 ms-
35 h agoExpected HTTP 402, got 410410118 ms-
40 h agoExpected HTTP 402, got 41041058 ms-
43 h agoExpected HTTP 402, got 41041035 ms-
2 days agoExpected HTTP 402, got 41041034 ms-
2 days agoExpected HTTP 402, got 41041038 ms-
2 days agoExpected HTTP 402, got 41041036 ms-
2 days agoPassed402574 ms$0.003