Postcodewise Developer Portal
Production-grade REST API and UI widgets for UK postcode intelligence, property valuations, crime statistics, schools, demographics, spatial GIS nodes, and embeddable scorecards.
curl -X GET "https://postcodewise.co.uk/api/v1/postcode/SW1A1AA/intelligence" \
-H "X-API-Key: pk_live_demo9981a2b3c4d5e6" \
-H "Accept: application/json"The UK Location Intelligence REST API
Postcodewise delivers structured geospatial intelligence across all 33+ million UK postcodes. The API combines open government data from the Department for Education, Police.uk, HM Land Registry, ONS Census, Ofcom, and OpenStreetMap into lightning-fast, edge-cached JSON endpoints.
Authentication & API Keys
Every API request must include a valid API key. Authenticate by providing the key in the X-API-Key request header or as a ?key= URL query parameter (recommended for widgets & iframe embeds).
Use pk_live_demo9981a2b3c4d5e6 to prototype immediately without registering. Rate-limited to 60 requests per hour per IP.
Prevent key theft in client-side applications by locking your API key to specific browser domains (e.g. https://myapp.com) under Settings > API Keys.
Rate Limits & Response Headers
API quotas are evaluated on a calendar-month billing cycle. Every HTTP response returns headers indicating current quota usage and rolling frequency limits.
| Plan Tier | Monthly Lookup Quota | Burst Rate Limit | Price |
|---|---|---|---|
| Free Starter | 50 lookups / mo | 60 req / min | £0 / month |
| Pro Developer | 5,000 lookups / mo | 300 req / min | £29 / month |
| Enterprise | Custom (100k - 10M+) | 1,000+ req / min | Custom Agreement |
Errors & HTTP Status Codes
The API uses standard HTTP response codes to indicate success or failure. In case of an error, a structured JSON payload is returned with human-readable diagnostic messages.
| Status Code | Meaning | Description & Resolution |
|---|---|---|
| 200 OK | Success | The request succeeded and returned the requested spatial intelligence payload. |
| 400 Bad Request | Validation Error | Postcode format is invalid, or required coordinates are missing/out of range. |
| 401 Unauthorized | Authentication Failed | Missing or invalid API key. Verify X-API-Key header. |
| 403 Forbidden | Origin Blocked | The request Origin/Referer is not listed in your key's allowed origin list. |
| 404 Not Found | Postcode Not Found | Postcode was not located in Royal Mail PAF or ONS NSPL dataset. |
| 429 Too Many Requests | Quota / Rate Exceeded | Hourly burst limit reached, or monthly lookup quota consumed. |
SDKs & Client Libraries
Integrate Postcodewise seamlessly in your preferred language or framework. The API adheres strictly to REST principles and OpenAPI 3.1 specifications.
Interactive API Explorer
/api/v1/postcode/{postcode}/intelligenceFull Postcode Intelligence
Returns overall location score, administrative geography, and granular metrics across crime, schools, transport, housing, demographics, environment, connectivity, and lifestyle.
Interactive Widget Studio
Embed full location scorecards and property catchment metrics into your portal or CRM with one line of HTML, React, or Vue code.
WordPress Plugin
Embed Postcodewise widgets into your WordPress site effortlessly using our official plugin. You can offer postcode intelligence to your visitors directly from your content or pages.
Installation
- Download the Postcodewise Widget Plugin.
- Upload the plugin to your WordPress
/wp-content/plugins/directory, or install the ZIP file via the WordPress plugins page. - Activate the plugin through the Plugins screen in WordPress.
- Go to Settings → Postcodewise and enter your public API key.
Usage
Use the [postcodewise_widget] shortcode anywhere on your site to display the widget. You can pass attributes to customize its appearance per instance, which overrides the global settings.
[postcodewise_widget postcode="SW1A 1AA" theme="light" show="schools,safety" accent_color="#3b82f6" border_radius="12"]Shortcode Attributes
| Attribute | Description | Example |
|---|---|---|
| api_key | Your public API key (overrides the global setting). | api_key="YOUR_KEY" |
| postcode | The default postcode to display on load. | postcode="CB2 1TN" |
| theme | Widget theme (light, dark, or auto). | theme="dark" |
| show | Comma-separated list of sections to show (e.g., safety,schools). | show="safety,schools" |
| accent_color | Hex code for the primary accent color. | accent_color="#ff0000" |
| border_radius | Border radius in pixels. | border_radius="16" |
Frequently Asked Questions
How often is the underlying dataset updated?
Crime data from Police.uk is synced monthly. School inspection outcomes from Ofsted are ingested bi-weekly. Ofcom broadband speeds and property records are refreshed on continuous scheduled pipelines.
Can I cache API responses in my application?
Yes! We encourage caching responses for up to 30 days. Standard HTTP Cache-Control and ETag headers are delivered on every response for efficient conditional revalidation.
Do you support bulk CSV / batch queries?
Yes, you can upload batch CSV files directly in your Workspace under the Uploads studio, or contact us for an Enterprise high-concurrency API agreement.
What happens if my application exceeds monthly quotas?
When monthly quota is consumed, subsequent requests return HTTP status 429. Upgrades from Starter to Pro take effect immediately with zero downtime in Settings > Billing.
