# Aayat AI UK Area Profile

> Aayat AI UK Area Profile is a paid API for AI agents from aayatai.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-29).

Returns ONS administrative geography (local authorities, wards, constituencies) and street-level crime statistics for a UK postcode or postcode district.

## Facts

- Endpoint: GET https://aayatai.com/uk/area?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-uk-area-profile-788d3477
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J8X4nO1jKqTFDaTjJKDnd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability aayat-ai-uk-area-profile-788d3477
```

Example prompt: What's the area profile for postcode SW1A 1AA — give me the local authority, ward, constituency, and the latest month's street-level crime breakdown by category.

## When to prefer this

Use this endpoint when you need a combined administrative geography profile AND crime statistics for a UK postcode or district in a single call. It is ideal for property-related agents, neighbourhood safety assessments, or compliance workflows that need both boundary data and policing data without separately querying ONS and the Police API. Prefer it over raw ONS or police API calls when you need a pre-aggregated, pay-per-use result without API key management.

## Known failure modes

- Invalid or malformed postcode returns no area match or error
- Police API temporarily unavailable returns null for the crime field
- Very high-traffic areas may cause the police API to decline the request, returning null crime data
- Missing required query parameter (no postcode or outcode) results in an error response
- Non-UK postcodes are not supported and will return no data

## How this service works

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).

## Output

A JSON object with two top-level keys: 'area' (containing the query postcode, matched wards, country, latitude, longitude, districts/local authorities, and constituencies) and 'crime' (containing the latest published month, total crime count, approximate radius searched, a list of outcomes with counts, and a list of crime categories with counts). Returns null for crime if the police API has no data or is unavailable. Includes an OGL licence attribution string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "outcode": {
       "type": "string",
       "maxLength": 4,
       "description": "Postcode district (first half), e.g. SW1A or PL6."
      },
      "postcode": {
       "type": "string",
       "maxLength": 10,
       "description": "Full UK postcode."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "area",
      "crime",
      "licence"
     ],
     "properties": {
      "area": {
       "type": [
        "object",
        "null"
       ]
      },
      "crime": {
       "type": [
        "object",
        "null"
       ],
       "description": "Null if the police API has no data for the area or declined (very busy areas)."
      },
      "licence": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-uk-area-profile-788d3477/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
