Citycontext

City Context

City Context provides a straightforward API to access UK Open Data: crime statistics, schools, demographics and more.

Data & analytics#openapi#open-data

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

City Context provides a straightforward API to access UK Open Data: crime statistics, schools, demographics and more.

Endpoints 3

citycontext

  • GETQuery by coordinates (SRID 4326 - decimal degrees)/@:lat,:lon?school_search_radius=0&park_search_radius=0
  • GETQuery by postcode/postcodes/:postcode?school_search_radius=0&park_search_radius=0
  • GETGet usage in current month/usage

API details

Base URL
http://api.citycontext.com/v1
Authentication
An API key in the user_key query parameter
Operations
3 operations on 3 pathsGET 3
Main resources
citycontext 3
Response formats
application/json
Description format
Swagger 2.0, API version 1.0.0
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the City Context in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the City Context collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the user_key query parameter. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Query by coordinates (SRID 4326 - decimal degrees)” (GET /@:lat,:lon?school_search_radius=0&park_search_radius=0), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the City Context?

City Context provides a straightforward API to access UK Open Data: crime statistics, schools, demographics and more. It is listed under Data & analytics and has 3 endpoints.

Who publishes the City Context?

It is listed from Citycontext's public API description (an OpenAPI document), not published by Citycontext on Swastik Codes. Anyone who controls citycontext.com can claim the profile by adding a DNS TXT record.

What is the base URL of the City Context?

Requests go to http://api.citycontext.com/v1. Endpoint paths are added to this base URL.

How do I authenticate with the City Context?

With an API key in the user_key query parameter.

How many endpoints does the City Context have?

3 operations on 3 paths (3 GET). The largest groups are citycontext.

Is forking the City Context free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.