{
  "openapi": "3.0.1",
  "info": {
    "title": "Allabolag.se Scraper - Swedish Company Data, Financials & Leads",
    "description": "Scrape Swedish companies from Allabolag.se by keyword, SNI code, pasted URL or org number: full company page with multi-year accounts, roles, F-tax/VAT/payroll status, signatories, shareholders. Searches past the site's 10,000 limit are split by county and municipality. Pay per company.",
    "version": "0.1",
    "x-build-id": "yt7tLw4McY9nhE9Aq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hexagone-data~allabolag-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hexagone-data-allabolag-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/hexagone-data~allabolag-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hexagone-data-allabolag-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/hexagone-data~allabolag-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hexagone-data-allabolag-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",
        "properties": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "One search per term, as typed in the site's search box (industry, word or company name: restaurang, bygg, redovisning). County and municipality below apply.",
            "items": {
              "type": "string"
            }
          },
          "sniCodes": {
            "title": "SNI industry codes",
            "type": "array",
            "description": "SNI 2025 codes, one search each: 56, 56.1, 56.11, 56.110 or 56110 (written as the site does: 56.110). Older SNI 2007 codes (such as 62.010) return no company on the site. County and municipality below apply.",
            "items": {
              "type": "string"
            }
          },
          "county": {
            "title": "County (län)",
            "type": "string",
            "description": "One of the 21 counties, as on the site: Stockholm, Västra Götaland, Skåne... 'Stockholms län' is read as Stockholm. An unknown name is refused (the site itself would answer 0 companies without saying why)."
          },
          "municipality": {
            "title": "Municipality (kommun)",
            "type": "string",
            "description": "One of the 290 municipalities: Solna, Göteborg, Malmö... It must be in the county above if you give one. An unknown name is refused."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "revenueDesc",
              "revenueAsc",
              "numEmployeesDesc",
              "numEmployeesAsc",
              "registrationDateDesc",
              "registrationDateAsc"
            ],
            "type": "string",
            "description": "Order of the site's list. The site's list can repeat some companies across pages and skip others, in any order: a search (or a slice of it) that comes back short of its announced total is read again in another order (relevance after your sort, revenue highest first after relevance), list pages only, and only the new companies are delivered and charged. If companies are still missing beyond 2 companies and 3 %, it is read a third time in a third order (revenue lowest first, or employees most first if you chose revenue lowest first). Not when maxItems or your maximum charge is reached, nor above 10,000 companies.",
            "default": "relevance"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "allabolag.se URLs as your browser shows them: a search (https://www.allabolag.se/bransch-s%C3%B6k?q=restaurang&county=Stockholm), a segmentation (https://www.allabolag.se/segmentering?naceIndustry=56&location=Solna), a company page (https://www.allabolag.se/foretag/igomoon-ab/stockholm/-/2K3MWKHI5YDOJ) or https://www.allabolag.se/5568995681. A URL keeps all its own filters. Pages about people are refused.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "orgNumbers": {
            "title": "Organisation numbers",
            "type": "array",
            "description": "10-digit organisation numbers (556899-5681 or 5568995681): one company page each. A number unknown to the site is counted as notFound.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum number of companies",
            "minimum": 0,
            "type": "integer",
            "description": "Stops at exactly this number of companies for the whole run. 0 = no limit.",
            "default": 100
          },
          "maxItemsPerSearch": {
            "title": "Maximum per search",
            "minimum": 0,
            "type": "integer",
            "description": "Stops each search at this number and goes on with the next one. 0 = no limit.",
            "default": 0
          },
          "splitLargeSearches": {
            "title": "Split searches above 10,000",
            "type": "boolean",
            "description": "The site shows at most 10,000 companies per search. On: a larger search is split by county, then by municipality, to read past that limit. Off: the search stops at 10,000 (partial_collection).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. By default no proxy is used; if the site refuses, the run falls back to Apify's datacenter proxy. Set it here to use your own choice from the first request."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}