Transport for London, England Accident Stats API

The AccidentStats API from Transport for London, England — 1 operation(s) for accidentstats.

GitHub OpenAPI

Operations 1

GET /AccidentStats/{year} Gets all accident details for accidents occuring in the specified year #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/transport-for-london-england:transport-for-london-england-accidentstats-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

transport-for-london-england-accidentstats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: v1
  title: Transport for London Unified Accident Stats API
servers:
- url: https://api.tfl.gov.uk
tags:
- name: AccidentStats
paths:
  /AccidentStats/{year}:
    get:
      tags:
      - AccidentStats
      summary: Gets all accident details for accidents occuring in the specified year
      operationId: AccidentStats_Get
      parameters:
      - name: year
        in: path
        description: The year for which to filter the accidents on.
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.AccidentStats.AccidentDetail'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.AccidentStats.AccidentDetail'
            application/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.AccidentStats.AccidentDetail'
            text/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.AccidentStats.AccidentDetail'
      deprecated: false
components:
  schemas:
    Tfl.Api.Presentation.Entities.AccidentStats.AccidentDetail:
      type: object
      properties:
        id:
          format: int32
          type: integer
        lat:
          format: double
          type: number
        lon:
          format: double
          type: number
        location:
          type: string
        date:
          format: date-time
          type: string
        severity:
          type: string
        borough:
          type: string
        casualties:
          type: array
          items:
            $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.AccidentStats.Casualty'
        vehicles:
          type: array
          items:
            $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.AccidentStats.Vehicle'
    Tfl.Api.Presentation.Entities.AccidentStats.Vehicle:
      type: object
      properties:
        type:
          type: string
    Tfl.Api.Presentation.Entities.AccidentStats.Casualty:
      type: object
      properties:
        age:
          format: int32
          type: integer
        class:
          type: string
        severity:
          type: string
        mode:
          type: string
        ageBand:
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      description: API Key Authentication
      name: app_key
      in: query
    appId:
      type: apiKey
      description: Application ID
      name: app_id
      in: query
x-provenance:
  method: harvested
  publisher: Transport for London, England
  source: https://api.tfl.gov.uk/swagger/docs/v1
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)