{"uid":"cap_J8X4nO1jKqTFDaTjJKDnd","slug":"aayat-ai-uk-area-profile-788d3477","name":"Aayat AI UK Area Profile","description":"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).","url":"https://aayatai.com/uk/area?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}}}},"responseSchema":{"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."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-5gq-Tz7UbbeutCcv0TFk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns ONS administrative geography (local authorities, wards, constituencies) and street-level crime statistics for a UK postcode or postcode district.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Neighbourhood crime report for property search","prompt":"I'm considering buying a flat near E1 7AA in London — can you pull the latest crime statistics for that postcode and tell me what the most common crime types are and how many incidents there were last month?"},{"title":"Administrative boundary lookup for compliance","prompt":"I need to know which local authority, ward, and parliamentary constituency the postcode LS1 4AP belongs to for a planning application — can you look that up?"},{"title":"Crime hotspot analysis by district","prompt":"Can you get me the street-level crime summary for the SW1A postcode district, including total incidents and a breakdown by category, so I can compare it with other Westminster areas?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:46:44.365Z","isFirstParty":false,"canonicalSlug":"aayat-ai-uk-area-profile-788d3477"}