TGS


Why GOV.UK APIs are changing and how you can get involved

The GOV.UK Publishing Service, part of the Government Digital Service (GDS), supports how government content is created, managed and shared on GOV.UK. The service looks after 8 publishing applications, such as Whitehall and Mainstream Publisher, and several supporting tools, which enable more than 2,300 civil servants to create, publish and manage government content. Together, these systems underpin how information is delivered across GOV.UK’s user-facing channels, so it’s essential that the publishing ecosystem is secure, flexible and easy to use.

Alongside these applications and tools, the team also maintains application programming interfaces (APIs) including the Publishing API (which allows content to be stored, retrieved, drafted and published).

An API is a software intermediary that allows 2 applications to speak to each other, enabling different systems to share data and services, securely and efficiently. The original API architecture for GOV.UK was designed for the website, delivering the content needed for a page in as few requests as possible. Our APIs are also publicly accessible, allowing people to access and use GOV.UK information – for example, official Bank Holiday dates, or data about government organisations – in their own tools and systems.

This approach has served us well for years, providing stable and reliable performance through the Content Store (a database of almost all published content on GOV.UK), with some pages also drawing on the Search API for specific elements.

But GOV.UK is no longer just a website. It now spans multiple digital channels, including the GOV.UK app, and we’re also exploring potential integrations with other platforms. These channels often need specific pieces of content in different formats, and sometimes that content needs to be adapted for individual users to create a more personalised experience.

To support GOV.UK’s multi-channel vision, enable content reuse, and lay the groundwork for future improvements, including potential new ways of using GOV.UK content, we need APIs that are flexible, robust, and easy to integrate with a variety of services.

For this to happen, we need to make some changes. We’re exploring how our APIs could evolve to better support GOV.UK’s multi-channel future. This includes investigating the use of a new query language for our APIs called GraphQL, as well as looking more broadly at how we manage our APIs. We’ve also started a piece of work to ensure we better understand the users of our APIs.

Why we’ve chosen to explore GraphQL

We’ve chosen to explore the use of GraphQL in depth, because it aligns well with GOV.UK’s multi-channel needs. We’re still early in this work and continue to validate key assumptions as we learn more.

GraphQL is a query language for APIs that allows users to request the exact data they need, making it easier to deliver content across different channels and formats.

So far, GraphQL has emerged as a strong candidate for what we want to achieve. This is because:

it clearly sets out what data the API contains and how it’s structured, making the API easier to understand and integrate with it offers broad support – client libraries exist for all major programming languages, so any existing or future channels can use it it is common in content management systems, making it a proven fit users can request only the data they need, avoiding the API sending unnecessary data and supporting personalisation

We’re still partway through this work but what we’ve learned so far strongly reinforces that GraphQL has the flexibility needed to support GOV.UK’s multi-channel vision and better user experiences. We’ll continue to share updates as the work progresses.

A new way of managing our APIs

We’re also changing how we manage our APIs by treating them as products in their own right, as they’re critical to GOV.UK’s multi-channel future. If they are more reliable, secure and well documented, it will be easier for others to build on GOV.UK content. This isn’t just a technical change, it’s about creating a better experience for everyone who depends on our APIs.

We’ve already made some improvements, including improving documentation, reliability and work to enhance security.

We’re also beginning to explore how authentication for our APIs might need to evolve. We haven’t made any decisions yet about approaches, standards or rollout, but we know the current API model won’t meet all our future needs or give us the control we’ll need to better manage interactions with GOV.UK.

As GOV.UK’s channels expand, future APIs will need authentication that is simple for developers, secure by default and flexible enough to support more open and multi‑channel use cases.

This work is at a very early stage, and we’ll share more as it progresses.

Understanding our users

To make the right decisions about what comes next, we need to understand our users better: who they are, what they’re building, and what challenges they face. Knowing more about our current users will help us to:

prioritise future improvements to focus on the most valuable features build APIs that wholly meet user needs communicate any changes and updates directly to the right people, so they’re well prepared and informed as our APIs evolve

If you use, or plan to use, GOV.UK APIs – specifically the ones used to consume GOV.UK content, directly or as part of another service – we want to hear from you. Please help us by completing this quick survey to tell us what you’re building and any challenges you face. It takes less than 2 minutes and you can also opt in to be contacted for future user research.

Looking ahead

Once we’ve completed this discovery phase, we plan to share what we’ve learned and outline our next steps in a future update. Your feedback will help us shape the future of GOV.UK’s APIs and ensure we’re building services that work for everyone.

If you have questions or want to get in touch, please contact our team directly at publishing-service-feedback@digital.cabinet-office.gov.uk.

Subscribe to Inside GOV.UK to get the latest updates about our work.

https://insidegovuk.blog.gov.uk/2026/04/07/why-gov-uk-apis-are-changing-and-how-you-can-get-involved/

seen at 16:44, 7 April in Inside GOV.UK.