{
  "openapi": "3.0.1",
  "info": {
    "title": "SiteVerdict — Visa & Entry Requirements (official sources)",
    "description": "Do I need a visa, eVisa or ETA? Answers per passport and destination from official government sources (GOV.UK FCDO, UK Home Office, EU law, Canada IRPR, Australia Home Affairs, India e-Visa) with citations, trip checklists and change alerts. Unknown when no official data — never guessed.",
    "version": "1.0",
    "x-build-id": "uG7WtaRFHx2H3q5Ay"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteverdict~siteverdict-visa-entry-requirements/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteverdict-siteverdict-visa-entry-requirements",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/siteverdict~siteverdict-visa-entry-requirements/runs": {
      "post": {
        "operationId": "runs-sync-siteverdict-siteverdict-visa-entry-requirements",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/siteverdict~siteverdict-visa-entry-requirements/run-sync": {
      "post": {
        "operationId": "run-sync-siteverdict-siteverdict-visa-entry-requirements",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "check",
              "trip",
              "refresh",
              "coverage"
            ],
            "type": "string",
            "description": "<b>check</b>: answer nationality × destination pairs. <b>trip</b>: per-traveller checklist for an itinerary (incl. transit). <b>refresh</b>: re-fetch all official sources and report what changed since the last refresh. <b>coverage</b>: show which nationality/destination pairs are covered by official data (free).",
            "default": "check"
          },
          "checks": {
            "title": "Checks (nationality + destination)",
            "type": "array",
            "description": "List of pairs to check. Each item: {\"nationality\": \"India\", \"destination\": \"France\", \"purpose\": \"tourism\", \"durationDays\": 10}. Country names, demonyms (\"Indian\") or ISO alpha-2 codes (\"IN\") all work. Use \"British citizen\"/\"GB\" for a full British citizen passport and \"GB-BNO\" for British National (Overseas)."
          },
          "nationalities": {
            "title": "Nationalities (bulk)",
            "type": "array",
            "description": "Optional. Every nationality here is checked against every destination in \"Destinations (bulk)\".",
            "items": {
              "type": "string"
            }
          },
          "destinations": {
            "title": "Destinations (bulk)",
            "type": "array",
            "description": "Optional. Used with \"Nationalities (bulk)\". In refresh mode, limits the GOV.UK pages refreshed to these destinations.",
            "items": {
              "type": "string"
            }
          },
          "purpose": {
            "title": "Default purpose",
            "enum": [
              "tourism",
              "business",
              "family",
              "transit",
              "study",
              "work"
            ],
            "type": "string",
            "description": "Default trip purpose when a check or itinerary leg does not set one. Work always needs a work visa/permit; study means short-term study.",
            "default": "tourism"
          },
          "durationDays": {
            "title": "Default length of stay (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Optional. If the stay is longer than the official visa-free/ETA limit the answer becomes \"visa required\" with an explanation."
          },
          "trip": {
            "title": "Trip (for trip mode)",
            "type": "object",
            "description": "{\"startDate\": \"2026-12-01\", \"purpose\": \"tourism\", \"travellers\": [{\"name\": \"Asha\", \"nationality\": \"India\", \"passportExpiry\": \"2027-05-01\"}], \"itinerary\": [{\"country\": \"United Arab Emirates\", \"role\": \"transit\"}, {\"country\": \"France\", \"days\": 7}, {\"country\": \"United Kingdom\", \"days\": 5}]}. Each traveller × leg is one charged check."
          },
          "govukRefreshScope": {
            "title": "GOV.UK pages to refresh (refresh mode)",
            "enum": [
              "changed",
              "all",
              "none"
            ],
            "type": "string",
            "description": "<b>changed</b>: only destinations whose GOV.UK page was updated since the last refresh (uses the official index timestamps — cheapest). <b>all</b>: re-fetch all ~226 pages. <b>none</b>: skip GOV.UK.",
            "default": "changed"
          },
          "maxCacheAgeHours": {
            "title": "Reuse cached sources up to (hours)",
            "minimum": 0,
            "maximum": 720,
            "type": "integer",
            "description": "Official sources are cached in a persistent key-value store and reused for this long before being re-fetched (GOV.UK pages are also re-fetched whenever the official index shows a newer update). Use 0 to always fetch live.",
            "default": 24
          },
          "includeOfficialText": {
            "title": "Include official text excerpt",
            "type": "boolean",
            "description": "Include the relevant official paragraph (GOV.UK) in each answer so you can read the exact wording.",
            "default": true
          },
          "maxChecks": {
            "title": "Max checks per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Safety cap on the number of pairs answered in one run (the run's maximum total charge also applies).",
            "default": 1000
          },
          "requestDelayMs": {
            "title": "Politeness delay per website (ms)",
            "minimum": 200,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum gap between requests to the same government website.",
            "default": 500
          },
          "kbStoreName": {
            "title": "Knowledge-base store name",
            "type": "string",
            "description": "Named key-value store that keeps the parsed official sources between runs (needed for change diffs). Change it to keep separate histories.",
            "default": "siteverdict-visa-kb"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}