Discover/gov.uk API
live

gov.uk APIwww.gov.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.

Endpoints
2
Updated
3h ago
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.
Use it in your codegrab 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 totalclick to expand

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.uk 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.

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.

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,000250 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 www.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.
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.
eur-lex.europa.eu API
Access and explore the complete collection of European Union laws, regulations, and Official Journal publications through a comprehensive database that lets you search documents, retrieve full texts, summaries, and metadata, and track legislative procedures and national implementations. Find exactly what you need with detailed search capabilities and get detailed information about how EU laws are transposed into national legislation.