{
  "openapi": "3.0.1",
  "info": {
    "title": "SIRENE Scraper: French Companies by NAF Code (SIREN, SIRET)",
    "description": "Export French companies from the official SIRENE register by NAF/APE code, postal code, department, size or revenue: SIREN, SIRET, address, GPS, NAF, headcount, revenue, VAT. Complete exports beyond 10,000. CSV, JSON, Excel.",
    "version": "0.1",
    "x-build-id": "6pe1mwyWQa7YR7D7h"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/polderdata~sirene-companies-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-polderdata-sirene-companies-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/polderdata~sirene-companies-scraper/runs": {
      "post": {
        "operationId": "runs-sync-polderdata-sirene-companies-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/polderdata~sirene-companies-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-polderdata-sirene-companies-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": {
          "activityCodes": {
            "title": "Activity codes (NAF/APE)",
            "type": "array",
            "description": "NAF rév. 2 codes of the company's main activity, e.g. \"56.10A\" (traditional restaurants), \"62.01Z\" (software development), \"43.22A\" (plumbing), \"68.31Z\" (real estate agencies). \"5610A\" also works. Several codes = any of them. Full list: https://www.insee.fr/fr/information/2406147",
            "items": {
              "type": "string"
            }
          },
          "activitySections": {
            "title": "Activity sections",
            "type": "array",
            "description": "Broad sectors (NAF sections). Use instead of activity codes for a whole sector, e.g. F = construction, I = accommodation and food, J = information and communication.",
            "items": {
              "type": "string",
              "enum": [
                "A",
                "B",
                "C",
                "D",
                "E",
                "F",
                "G",
                "H",
                "I",
                "J",
                "K",
                "L",
                "M",
                "N",
                "O",
                "P",
                "Q",
                "R",
                "S",
                "T",
                "U"
              ],
              "enumTitles": [
                "A – Agriculture, forestry, fishing",
                "B – Mining",
                "C – Manufacturing",
                "D – Electricity, gas",
                "E – Water, waste",
                "F – Construction",
                "G – Wholesale and retail trade",
                "H – Transport and storage",
                "I – Accommodation and food",
                "J – Information and communication",
                "K – Finance and insurance",
                "L – Real estate",
                "M – Professional, scientific, technical",
                "N – Administrative and support",
                "O – Public administration",
                "P – Education",
                "Q – Health and social work",
                "R – Arts and recreation",
                "S – Other services",
                "T – Households as employers",
                "U – Extraterritorial organisations"
              ]
            }
          },
          "query": {
            "title": "Name or keyword",
            "type": "string",
            "description": "Free-text search on company name, brand and address, e.g. \"boulangerie\", \"Carrefour\". Leave empty to filter only by codes and location."
          },
          "sirenNumbers": {
            "title": "SIREN or SIRET numbers (lookup)",
            "type": "array",
            "description": "Look up specific companies by SIREN (9 digits) or SIRET (14 digits), e.g. to enrich a CRM list. Returns each company whatever its status. Other filters still apply.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "5-digit postal codes, e.g. \"75011\", \"69002\". Matches companies with an establishment (head office or branch) at that postal code.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Department codes, e.g. \"75\" (Paris), \"13\" (Bouches-du-Rhône), \"2A\" (Corse-du-Sud), \"971\" (Guadeloupe). Matches companies with an establishment there.",
            "items": {
              "type": "string"
            }
          },
          "communeCodes": {
            "title": "INSEE commune codes",
            "type": "array",
            "description": "5-digit INSEE commune codes (not postal codes), e.g. \"33063\" (Bordeaux). Paris, Lyon and Marseille (75056, 69123, 13055) are expanded to their arrondissements. Corsican codes (2A…/2B…) are not supported by the register's filter: use postal codes there.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "INSEE region codes, e.g. \"11\" (Île-de-France), \"84\" (Auvergne-Rhône-Alpes), \"93\" (Provence-Alpes-Côte d'Azur).",
            "items": {
              "type": "string"
            }
          },
          "employeeBands": {
            "title": "Employee size bands",
            "type": "array",
            "description": "Company headcount band from INSEE (reference year shown in each row). Several bands = any of them.",
            "items": {
              "type": "string",
              "enum": [
                "NN",
                "00",
                "01",
                "02",
                "03",
                "11",
                "12",
                "21",
                "22",
                "31",
                "32",
                "41",
                "42",
                "51",
                "52",
                "53"
              ],
              "enumTitles": [
                "No employees",
                "0 employees at year end",
                "1–2",
                "3–5",
                "6–9",
                "10–19",
                "20–49",
                "50–99",
                "100–199",
                "200–249",
                "250–499",
                "500–999",
                "1,000–1,999",
                "2,000–4,999",
                "5,000–9,999",
                "10,000+"
              ]
            }
          },
          "companyCategories": {
            "title": "Company category",
            "type": "array",
            "description": "INSEE size category: PME (SME), ETI (mid-size), GE (large enterprise).",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ],
              "enumTitles": [
                "PME – small and medium-sized",
                "ETI – intermediate-sized",
                "GE – large enterprise"
              ]
            }
          },
          "minRevenue": {
            "title": "Minimum revenue (EUR)",
            "type": "integer",
            "description": "Latest published revenue (chiffre d'affaires) at least this amount. Only about a third of companies publish revenue; those without it are left out when you use this filter."
          },
          "maxRevenue": {
            "title": "Maximum revenue (EUR)",
            "type": "integer",
            "description": "Latest published revenue at most this amount."
          },
          "labels": {
            "title": "Labels and certifications",
            "type": "array",
            "description": "Only companies with all of the selected labels.",
            "items": {
              "type": "string",
              "enum": [
                "organic",
                "rge",
                "qualiopi",
                "socialEconomy",
                "association",
                "missionCompany",
                "trainingProvider",
                "livingHeritage",
                "socialInsertion",
                "healthSocial",
                "publicAdministration"
              ],
              "enumTitles": [
                "Organic certified (Agence Bio)",
                "RGE (energy renovation certified)",
                "Qualiopi (certified training)",
                "Social & solidarity economy (ESS)",
                "Association",
                "Société à mission",
                "Registered training provider",
                "Living Heritage Company (EPV)",
                "Work-integration enterprise (SIAE)",
                "Health & social care (FINESS)",
                "Public administration"
              ]
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "active",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Active companies only (default), closed companies only, or both.",
            "default": "active"
          },
          "outputLevel": {
            "title": "One row per",
            "enum": [
              "companies",
              "establishments"
            ],
            "type": "string",
            "description": "\"Company\": one row per company (SIREN) with its head office. \"Establishment\": one row per establishment (SIRET) in your location, e.g. every restaurant of a chain in Paris 11e, with the site's own address, activity and headcount. Establishment rows need a location filter.",
            "default": "companies"
          },
          "excludeProspectingOptOuts": {
            "title": "Leave out companies that opted out of commercial prospecting",
            "type": "boolean",
            "description": "About 4 in 10 companies have asked that their register data not be used for commercial prospecting (field optedOutOfProspecting). On by default, so lists are safe for sales outreach. Turn it off for market research, KYC or statistics; every row then shows the flag.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many rows. Searches with more than 10,000 matches are split automatically (by location, activity and size), so large exports are complete.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed: this is an open government API. Only set a proxy if your runs get rate-limited for a long time."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}