Discover/GOV API
live

GOV APIgov.uk

Check UK visa requirements by nationality and travel purpose. Returns visa_needed boolean, outcome title, and full GOV.UK guidance text for any country.

This API takes change requests — .
Endpoint health
verified 2d ago
check_visa
list_nationalities
2/2 passing latest checkself-healing
Endpoints
2
Updated
1mo ago

What is the GOV API?

The GOV.UK Visa Checker API exposes 2 endpoints to determine UK entry requirements for any nationality and travel purpose. Call list_nationalities to retrieve the full set of accepted nationality codes, then pass a code and purpose to check_visa to get a structured result including a visa_needed boolean, an outcome_title, and the complete guidance text from the official GOV.UK visa checker tool.

Try it

No input parameters required.

api.parse.bot/scraper/4d69f77c-7ed7-465b-9bc8-901cc6b8c1ae/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/4d69f77c-7ed7-465b-9bc8-901cc6b8c1ae/list_nationalities' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 2 totalmissing one? ·

List all supported nationalities for the UK visa checker. Returns the full set of nationality codes and display names accepted by check_visa. Each entry has a 'code' (the slug to pass as the nationality parameter) and a 'name' (the human-readable country name). The list is sourced from the GOV.UK visa checker dropdown and contains 221 entries covering all recognized countries and territories.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "total": "integer count of nationalities",
    "nationalities": "array of nationality objects each with code (string) and name (string)"
  },
  "sample": {
    "data": {
      "total": 221,
      "nationalities": [
        {
          "code": "afghanistan",
          "name": "Afghanistan"
        },
        {
          "code": "india",
          "name": "India"
        },
        {
          "code": "usa",
          "name": "United States of America"
        }
      ]
    },
    "status": "success"
  }
}

About the GOV API

Endpoints and Data Returned

list_nationalities takes no inputs and returns a total count alongside a nationalities array. Each element in the array carries a code — the slug you pass as the nationality parameter downstream — and a human-readable name. Use this endpoint to build or validate a nationality picker before calling the visa check.

check_visa accepts two required parameters: nationality (a code from list_nationalities, e.g. india, usa, china) and purpose (the reason for visiting the UK). It returns three fields: visa_needed (a boolean, or null when the outcome cannot be determined definitively), outcome_title (a short summary string), and details (the full guidance text as presented by GOV.UK, which may include application instructions, document requirements, and eligibility conditions).

Coverage and Behavior

The check_visa endpoint mirrors the multi-step GOV.UK visa checker flow. For journeys where the outcome depends on additional sub-questions, the response may return null for visa_needed along with details that explain the indeterminate result. The outcome_title will still indicate the direction of the guidance in those cases. Nationality codes are not ISO 3166 alpha-2; they are GOV.UK slugs, so using list_nationalities first is the reliable way to confirm accepted values.

Reliability & maintenanceVerified

The GOV API is a managed, monitored endpoint for gov.uk — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when gov.uk changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official gov.uk API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2d ago
Latest check
2/2 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Embed a UK visa requirement lookup in a travel booking flow using nationality codes from list_nationalities
  • Build a pre-trip checklist app that flags whether a user's nationality requires a UK visa based on visa_needed
  • Display the full details guidance text to users so they know what documents to prepare before applying
  • Automate compliance checks for HR teams onboarding international employees who will travel to the UK
  • Populate a country-selection dropdown with all valid code and name pairs for a visa-screening form
  • Generate alerts when the outcome_title indicates a visa is required for a specific nationality–purpose combination
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does GOV.UK offer an official developer API for the visa checker?+
No. The GOV.UK visa eligibility checker at gov.uk/check-uk-visa is a public-facing interactive tool, not a documented REST API. There is no published developer endpoint or API key program for it.
What does `visa_needed` return when the outcome isn't clear-cut?+
visa_needed returns null when the GOV.UK flow reaches a result that cannot be expressed as a simple yes/no — for example, when the answer depends on the traveller's specific circumstances. In those cases, outcome_title will still reflect the direction of the outcome, and details will contain the full explanatory guidance text.
Are transit or airside transit visa requirements covered?+
That depends on what purpose values you pass. The API reflects the outcomes of the GOV.UK tool for the purposes it supports; coverage of transit-specific scenarios is tied to whether GOV.UK's own checker addresses them for a given nationality. You can fork this API on Parse and revise it to add dedicated handling for transit-purpose flows if your use case requires it.
Does the API return application fees, processing times, or visa category names?+
Not currently. The three response fields are visa_needed, outcome_title, and details (guidance text). Fee and processing-time data are not part of the structured output. You can fork this API on Parse and revise it to extract those details from the details text or add a supplementary endpoint.
How do nationality codes work — can I use standard ISO country codes?+
No. The nationality parameter uses GOV.UK-specific slugs (e.g. india, usa, china, france), not ISO 3166 alpha-2 codes. Always call list_nationalities first to retrieve the exact code values the check_visa endpoint accepts.
Page content last updated . Spec covers 2 endpoints from gov.uk.
Related APIs in Government PublicSee all →
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
developer.company-information.service.gov.uk API
Search for UK registered companies and retrieve detailed information including company profiles, officer names, and their dates of birth. Access comprehensive corporate records directly from the official Companies House register to verify business details and identify key personnel.
sec.gov API
Search for publicly traded companies and instantly access their SEC filings with details like filing type, date, description, and accession numbers. Find the regulatory documents you need to research company financial information and compliance records.
usaspending.gov API
usaspending.gov API
companieshouse.gov.uk API
Search for UK companies and officers, then access detailed information including company profiles, filing history, charges, and officers with significant control. Get comprehensive corporate records and appointment details all in one place.
mars.nasa.gov API
Explore real-time images, weather data, and location tracking from NASA's Perseverance and Curiosity rovers on Mars, while discovering mission details, rock sample findings, and the latest news from the Mars Exploration Program. Access rover photos, scientific discoveries, and multimedia content to stay updated on current Mars exploration activities.
find-and-update.company-information.service.gov.uk API
Search and access detailed information about UK companies registered at Companies House, including company profiles, filing histories, officers, and financial charges. Filter companies by name, status, type, SIC code, and more.
capitol.texas.gov API
Search and monitor Texas Legislature bills, track their progress through legislative stages, and retrieve detailed action histories. Look up legislator contact information, district details, committee assignments, and full committee membership rosters.