{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenCorporates Global Company Registry Scraper",
    "description": "",
    "version": "0.1",
    "x-build-id": "gfU49H8AgCxZWnVhl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jungle_synthesizer~opencorporates-global-company-registry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jungle_synthesizer-opencorporates-global-company-registry-scraper",
        "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/jungle_synthesizer~opencorporates-global-company-registry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jungle_synthesizer-opencorporates-global-company-registry-scraper",
        "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/jungle_synthesizer~opencorporates-global-company-registry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jungle_synthesizer-opencorporates-global-company-registry-scraper",
        "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",
        "required": [
          "maxItems"
        ],
        "properties": {
          "sp_intended_usage": {
            "title": "What is the intended usage of this data?",
            "minLength": 1,
            "type": "string",
            "description": "What will this data feed? E.g. lead lists, KYB checks, price tracking."
          },
          "sp_improvement_suggestions": {
            "title": "How can we improve this crawler for you?",
            "minLength": 1,
            "type": "string",
            "description": "Provide any feedback or suggestions for improvements."
          },
          "sp_contact": {
            "title": "Contact Email",
            "minLength": 1,
            "type": "string",
            "description": "We'll personally help with your use case. No spam."
          },
          "searchQueries": {
            "title": "Company name search terms",
            "type": "array",
            "description": "Company names or numbers to search for (at least 2 characters each). Each term is searched in every selected jurisdiction.",
            "items": {
              "type": "string"
            }
          },
          "jurisdictionCodes": {
            "title": "Jurisdictions",
            "type": "array",
            "description": "Registries to search. Leave empty to search all of them in turn.",
            "items": {
              "type": "string",
              "enum": [
                "gb",
                "ie",
                "de",
                "fr",
                "nl",
                "be",
                "lu",
                "ch",
                "es",
                "it",
                "pt",
                "se",
                "no",
                "dk",
                "fi",
                "is",
                "pl",
                "cz",
                "sk",
                "si",
                "hr",
                "ro",
                "bg",
                "gr",
                "cy",
                "mt",
                "ee",
                "lv",
                "lt",
                "ua",
                "au",
                "nz",
                "ca",
                "in",
                "sg",
                "hk",
                "jp",
                "kr",
                "my",
                "za",
                "ng",
                "mx",
                "br",
                "ar",
                "cl",
                "co",
                "pa",
                "ky",
                "bm",
                "vg",
                "je",
                "gg",
                "im",
                "gi",
                "us_al",
                "us_ak",
                "us_az",
                "us_ar",
                "us_ca",
                "us_co",
                "us_ct",
                "us_de",
                "us_dc",
                "us_fl",
                "us_ga",
                "us_hi",
                "us_id",
                "us_il",
                "us_in",
                "us_ia",
                "us_ks",
                "us_ky",
                "us_la",
                "us_me",
                "us_md",
                "us_ma",
                "us_mi",
                "us_mn",
                "us_ms",
                "us_mo",
                "us_mt",
                "us_ne",
                "us_nv",
                "us_nh",
                "us_nj",
                "us_nm",
                "us_ny",
                "us_nc",
                "us_nd",
                "us_oh",
                "us_ok",
                "us_or",
                "us_pa",
                "us_ri",
                "us_sc",
                "us_sd",
                "us_tn",
                "us_tx",
                "us_ut",
                "us_vt",
                "us_va",
                "us_wa",
                "us_wv",
                "us_wi",
                "us_wy"
              ],
              "enumTitles": [
                "United Kingdom",
                "Ireland",
                "Germany",
                "France",
                "Netherlands",
                "Belgium",
                "Luxembourg",
                "Switzerland",
                "Spain",
                "Italy",
                "Portugal",
                "Sweden",
                "Norway",
                "Denmark",
                "Finland",
                "Iceland",
                "Poland",
                "Czech Republic",
                "Slovakia",
                "Slovenia",
                "Croatia",
                "Romania",
                "Bulgaria",
                "Greece",
                "Cyprus",
                "Malta",
                "Estonia",
                "Latvia",
                "Lithuania",
                "Ukraine",
                "Australia",
                "New Zealand",
                "Canada",
                "India",
                "Singapore",
                "Hong Kong",
                "Japan",
                "South Korea",
                "Malaysia",
                "South Africa",
                "Nigeria",
                "Mexico",
                "Brazil",
                "Argentina",
                "Chile",
                "Colombia",
                "Panama",
                "Cayman Islands",
                "Bermuda",
                "British Virgin Islands",
                "Jersey",
                "Guernsey",
                "Isle of Man",
                "Gibraltar",
                "US: Alabama",
                "US: Alaska",
                "US: Arizona",
                "US: Arkansas",
                "US: California",
                "US: Colorado",
                "US: Connecticut",
                "US: Delaware",
                "US: District of Columbia",
                "US: Florida",
                "US: Georgia",
                "US: Hawaii",
                "US: Idaho",
                "US: Illinois",
                "US: Indiana",
                "US: Iowa",
                "US: Kansas",
                "US: Kentucky",
                "US: Louisiana",
                "US: Maine",
                "US: Maryland",
                "US: Massachusetts",
                "US: Michigan",
                "US: Minnesota",
                "US: Mississippi",
                "US: Missouri",
                "US: Montana",
                "US: Nebraska",
                "US: Nevada",
                "US: New Hampshire",
                "US: New Jersey",
                "US: New Mexico",
                "US: New York",
                "US: North Carolina",
                "US: North Dakota",
                "US: Ohio",
                "US: Oklahoma",
                "US: Oregon",
                "US: Pennsylvania",
                "US: Rhode Island",
                "US: South Carolina",
                "US: South Dakota",
                "US: Tennessee",
                "US: Texas",
                "US: Utah",
                "US: Vermont",
                "US: Virginia",
                "US: Washington",
                "US: West Virginia",
                "US: Wisconsin",
                "US: Wyoming"
              ]
            }
          },
          "companyUrls": {
            "title": "Company profile URLs",
            "type": "array",
            "description": "Direct company profile URLs, for example https://opencorporates.com/companies/gb/00445790.",
            "items": {
              "type": "string"
            }
          },
          "includeInactive": {
            "title": "Include inactive companies",
            "type": "boolean",
            "description": "Include dissolved and otherwise inactive companies in search results.",
            "default": true
          },
          "includeDetails": {
            "title": "Fetch full company profiles",
            "type": "boolean",
            "description": "Open each search result to add identifiers, industry codes, previous names and register entries. Turn off for fast name, number, status and address rows.",
            "default": true
          },
          "maxItems": {
            "title": "Max Items",
            "type": "integer",
            "description": "Maximum number of companies to return."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}