Skip to content

HTTPError: 400 calling get_crimes_area() #7

Description

@BillyWhizz1950

Hi
my call to get_crimes_area() seems to get translated to crimes-street in the API which then triggers an error:
HTTPError: 400 Client Error: Bad Request for url: https://data.police.uk:443/api/crimes-street/all-crime

I am using python 3.11
my code below:

n = api.locate_neighbourhood(51.80076,1.15307)
n = api.get_neighbourhood("essex","ND102")
print(n)
print(api.get_latest_date())
x = api.get_crimes_area(n.boundary, date='2025-08')

pp.pprint(api.get_crimes_area(n.boundary, date='2025-08'))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions