81trust / 100

Uk Area

by Aayat AI in Developer tools

x402 APIPassing, checked 4 h ago

UK area profile for a postcode or postcode district (e.g. SW1A): local authorities, wards and constituencies, plus street-level crime in the latest published month within about a mile, counted by category and outcome. Official ONS and police data (OGL).

GET https://aayatai.com/uk/area

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://aayatai.com/uk/area?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%2Farea
const res = await pay("https://aayatai.com/uk/area?postcode=SW1A+1AA");
console.log(await res.json());

Example input

{
  "postcode": "SW1A 1AA"
}

Example output

{
  "area": {
    "constituencies": [
      "Cities of London and Westminster"
    ],
    "country": [
      "England"
    ],
    "districts": [
      "Westminster"
    ],
    "latitude": 51.501009,
    "longitude": -0.141588,
    "query": "SW1A 1AA",
    "wards": [
      "St James's"
    ]
  },
  "crime": {
    "byCategory": [
      {
        "category": "theft-from-the-person",
        "count": 402
      },
      {
        "category": "anti-social-behaviour",
        "count": 260
      }
    ],
    "month": "2026-07",
    "outcomes": [
      {
        "count": 700,
        "outcome": "Investigation complete; no suspect identified"
      }
    ],
    "radius": "about 1 mile",
    "total": 1520
  },
  "licence": "Contains public sector information licensed under the Open Government Licence v3.0."
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed40251 ms$0.01