Application programming interfaces (APIs)

An application programming interface (API) is a piece of software that lets one program access or control another program. APIs allow applications to share data without requiring developers to share software code.

You should follow these guidelines to build and maintain your APIs.

Use government API standards

The Central Digital and Data Office’s API design guidance helps government departments and local authorities create robust APIs. The API data and technical standards promote development consistency, increase efficiency, reduce costs and provide better digital public services.

How to host your API

You can host your APIs on [api-name] Email for more information about using this.

What to consider when depending on third-party APIs

By depending on a third-party API, you could tie your service’s availability to that of the third party. In some cases this may be acceptable. But, you need to make sure you have a backup plan in place.

The details of that backup will vary depending on your service. You may need to:

  • offer users the opportunity to use an alternative service
  • queue an action to take place later
  • have an alternative system in place

If a third-party API failure affects your service, you should be clear with your users about what’s happening and find ways to limit the effect on users.

Prepare a communications plan in advance. This could include having things like email templates in place and a list of who you need to contact should problems arise.

Last update:

Guidance first published