API Endpoints

Crime & Policing

Stop Searches

Tokens
× 1

API Credit Cost


Endpoint Overview

The Stop Searches endpoint provides data on stop-and-search incidents conducted by police within a specified radius of a postcode, including reasons and outcomes.


Coverage

EnglandEngland
WalesWales

Update Frequency

Weekly

Request Format

HTTP Method:

GET

To use the API you should send an HTTP request to the following endpoint URL. This will return a JSON response.

https://api.postcodearea.co.uk/stop-searches/?key=&postcode={postcode}

Note that your key has automatically been added to the API endpoint for convenience.

Querystring Parameters:

{postcode}

A valid UK postcode (e.g., SW1A 1AA). Note that you can send the postcode with or without the space separating the outward and inward codes. For example, both "SW1A 1AA" and "SW1A1AA" are both valid.

{api_key}

A valid API key that authenticates your account.


Authorisation

For every endpoint request your API Key should be sent as part of the querystring:

https://api.postcodearea.co.uk/stop-searches/?key={api_key}&postcode=WS3+3PD

For example:

https://api.postcodearea.co.uk/stop-searches/?key=&postcode=WS3+3PD

Example Request and Response

If the above URL endpoint exists and the API key is valid, our system will return the following example response:

https://api.postcodearea.co.uk/stop-searches/?key=&postcode=WS3+3PD
{"data":[{"age_range":null,"outcome":"Community resolution","involved_person":true,"self_defined_ethnicity":null,"gender":"Male","legislation":"Misuse of Drugs Act 1971 (section 23)","outcome_linked_to_object_of_search":true,"datetime":"2025-01-09T23:00:00+00:00","removal_of_more_than_outer_clothing":false,"outcome_object":{"id":"bu-community-resolution","name":"Community resolution"},"location":{"latitude":"52.785828","street":{"id":1745883,"name":"On or near Brookhouse Way"},"longitude":"-2.257016"},"operation":null,"officer_defined_ethnicity":null,"type":"Person search","operation_name":null,"object_of_search":"Controlled drugs"},{"age_range":null,"outcome":"Caution (simple or conditional)","involved_person":true,"self_defined_ethnicity":null,"gender":"Male","legislation":"Misuse of Drugs Act 1971 (section 23)","outcome_linked_to_object_of_search":true,"datetime":"2025-01-09T23:09:00+00:00","removal_of_more_than_outer_clothing":false,"outcome_object":{"id":"bu-caution","name":"Caution (simple or conditional)"},"location":{"latitude":"52.785828","street":{"id":1745883,"name":"On or near Brookhouse Way"},"longitude":"-2.257016"},"operation":null,"officer_defined_ethnicity":null,"type":"Person search","operation_name":null,"object_of_search":"Controlled drugs"},{"age_range":null,"outcome":"A no further action disposal","involved_person":true,"self_defined_ethnicity":null,"gender":"Male","legislation":"Misuse of Drugs Act 1971 (section 23)","outcome_linked_to_object_of_search":false,"datetime":"2025-01-09T23:00:00+00:00","removal_of_more_than_outer_clothing":false,"outcome_object":{"id":"bu-no-further-action","name":"A no further action disposal"},"location":{"latitude":"52.785828","street":{"id":1745883,"name":"On or near Brookhouse Way"},"longitude":"-2.257016"},"operation":null,"officer_defined_ethnicity":null,"type":"Person search","operation_name":null,"object_of_search":"Controlled drugs"}],"response_time":0.0938,"Source":"PostcodeArea API","Output Area":"England & Wales","Radius":10,"Distance Unit":"Mile","Records":1,"Unique Fields":1,"Referrer":"api.postcodearea.co.uk","Host":"https://api.postcodearea.co.uk/stop-searches/?key=pa_XWQAV24RXCUU19NGUFM11TKTLN&postcode=st200ly","Endpoint":"/stop-searches/?key=pa_XWQAV24RXCUU19NGUFM11TKTLN&postcode=st200ly"}

Error Handling

HTTP Status Code Error Message Reason
400 Invalid postcode format The postcode provided is not valid.
401 Unauthorised request API key missing or invalid.
404 Postcode not found No data available for the given postcode.
404 No Results Found No data available for the given radius.
429 Too many requests Exceeded rate limit.
500 Internal server error An unexpected issue occurred.

Caching Policy

You may temporarily cache data retrieved from the API for performance optimisation purposes, provided that the cached data is:

  1. Stored in-memory only (e.g., application-level cache).
  2. Retained for no longer than one hour.

Caching API data to any persistent storage, including but not limited to databases, files, or external systems, constitutes a breach of our API Terms and Conditions. Such actions are strictly prohibited to ensure data accuracy and compliance with our licensing agreements.

If you have specific requirements for extended caching, you must seek prior written consent from us.


Get started today

Ready to use this data for your own business or organisation? Sign up today and get immediate access to all the PostcodeArea API endpoints.

Share this page