{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Visa Sponsor Checker: Job Lists, Register & Licence Changes",
    "description": "Check whether employers can sponsor a work visa: the UK's daily register of licensed sponsors, plus the Netherlands' IND sponsors and Canada's LMIA employers. Check names or any job or lead list's company column, each row back with its licence; search, track changes, add Companies House data.",
    "version": "0.1",
    "x-build-id": "cmbJY0r3mTyxNjGvo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~visa-sponsors/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-visa-sponsors",
        "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/pikoulas~visa-sponsors/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-visa-sponsors",
        "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/pikoulas~visa-sponsors/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-visa-sponsors",
        "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": {
          "names": {
            "title": "Check these companies",
            "type": "array",
            "description": "Company names to look up, each coming back as licensed or not with the sponsor it matched. A name matches the sponsor's name, legal name or trading name as Companies House compares names (case, punctuation, \"&\" and Ltd or Limited don't count); else the same name but for the legal form or country (\"Deloitte\" finds Deloitte LLP); else names starting with its words. Leave this and the lists empty to search the whole register.",
            "items": {
              "type": "string"
            }
          },
          "datasetIds": {
            "title": "Apify datasets",
            "type": "array",
            "description": "Datasets from your account, such as a job scraper's results: each row's employer is checked."
          },
          "fileUrls": {
            "title": "Files by URL",
            "type": "array",
            "description": "Direct links to CSV, TSV, Excel (XLSX, XLS), ODS, JSON or JSON Lines files, up to 100 MB each, or Google Sheets shared with anyone who has the link.",
            "items": {
              "type": "string"
            }
          },
          "companyFields": {
            "title": "Company columns",
            "type": "array",
            "description": "The columns or fields holding the company name, the first filled one taken, such as Employer or hiringOrganization.name for a nested one. Left empty, the first column named company, employer, organisation, business or advertiser (companyName, employer_name and the like).",
            "items": {
              "type": "string"
            }
          },
          "includeRecord": {
            "title": "Include each row",
            "type": "boolean",
            "description": "Each result comes with the list's row, so the checked list keeps its titles, links and other columns.",
            "default": true
          },
          "onlyLicensed": {
            "title": "Only licensed companies",
            "type": "boolean",
            "description": "Give only the rows whose company holds a sponsor licence, such as the jobs at employers that can sponsor a visa. The others are counted in the summary, not given or charged.",
            "default": false
          },
          "countries": {
            "title": "Registers",
            "type": "array",
            "description": "The registers searched and checked against. A name checked is licensed when it's on any of them, and its row says which country. Canada's list is of employers approved to hire a foreign worker in the quarters read; it leaves out employers that are people.",
            "items": {
              "type": "string",
              "enum": [
                "GB",
                "NL",
                "CA"
              ],
              "enumTitles": [
                "United Kingdom: Home Office licensed sponsors (daily)",
                "Netherlands: IND recognised sponsors for work (monthly)",
                "Canada: employers issued a positive LMIA (quarterly)"
              ]
            },
            "default": [
              "GB"
            ]
          },
          "lmiaQuarters": {
            "title": "Canada: quarters read",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many of the latest quarters of Canada's LMIA employers to read: 4 is a year. Each takes about 20 seconds, the pace open.canada.ca asks for.",
            "default": 4
          },
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Words that must all be in the sponsor's name (care, software, restaurant)."
          },
          "towns": {
            "title": "Towns or cities",
            "type": "array",
            "description": "As the register writes them (London, Manchester, Toronto). None means all.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties or provinces",
            "type": "array",
            "description": "As the register writes them (Greater London, West Yorkshire; Ontario, British Columbia). About a third of UK sponsors give a county; the Netherlands' register gives neither town nor county.",
            "items": {
              "type": "string"
            }
          },
          "routes": {
            "title": "Visa routes",
            "type": "array",
            "description": "Sponsors licensed for any of these routes: the UK's visa routes, the Netherlands' one register for work, or Canada's LMIA program streams (High Wage to Permanent Resident Only). None means all.",
            "items": {
              "type": "string",
              "enum": [
                "Skilled Worker",
                "Global Business Mobility: Senior or Specialist Worker",
                "Global Business Mobility: Graduate Trainee",
                "Global Business Mobility: UK Expansion Worker",
                "Global Business Mobility: Service Supplier",
                "Global Business Mobility: Secondment Worker",
                "Scale-up",
                "Creative Worker",
                "Charity Worker",
                "Religious Worker",
                "Tier 2 Ministers of Religion",
                "International Sportsperson",
                "Government Authorised Exchange",
                "International Agreement",
                "Seasonal Worker",
                "Regular labour and highly skilled migrants",
                "High Wage",
                "Low Wage",
                "Primary Agriculture",
                "Global Talent Stream",
                "Permanent Resident Only"
              ]
            }
          },
          "ratings": {
            "title": "Ratings",
            "type": "array",
            "description": "UK sponsors with any of these ratings. A B rating is a downgraded licence under an action plan. None means all; any rating leaves the Netherlands' and Canada's out.",
            "items": {
              "type": "string",
              "enum": [
                "A rating",
                "B rating",
                "Provisional",
                "Premium",
                "SME+"
              ]
            }
          },
          "withCompanyDetails": {
            "title": "Add Companies House details",
            "type": "boolean",
            "description": "Match each UK sponsor's legal name to a live company in Companies House's monthly file: company number, status, type, incorporation date, registered address and SIC codes. Adds a few minutes and one Companies House search charge to the run.",
            "default": false
          },
          "sicCodes": {
            "title": "SIC codes",
            "type": "array",
            "description": "Only sponsors matched to a company with a SIC code starting with any of these (62 for software and IT, 86 for health, 56 for restaurants). Turns on Companies House details.",
            "items": {
              "type": "string"
            }
          },
          "onlyChanges": {
            "title": "Only changes since the last run",
            "type": "boolean",
            "description": "Give only sponsors new to the register, whose licences changed (a route added, a rating dropped) or that left it, since the last run with the same memory name and search. The first run gives every sponsor found. Run it daily on a schedule to follow the register.",
            "default": false
          },
          "memory": {
            "title": "Memory name",
            "type": "string",
            "description": "Runs with the same memory name compare against each other; use another name for each search you follow. The memory is a key-value store named visa-sponsors-memory in your account.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max sponsors",
            "minimum": 0,
            "type": "integer",
            "description": "The most sponsors to give; 0 for no limit (the register holds about 128,000).",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}