{
  "openapi": "3.0.1",
  "info": {
    "title": "French Companies Scraper",
    "description": "French company scraper for the SIRENE register: search French companies by name, SIREN, SIRET, NAF activity code, location or size. Get legal form, headcount, status, head office with GPS, directors, revenue, net income and VAT number. Official open data, no API key.",
    "version": "1.0",
    "x-build-id": "HPd8bVniRF8pl6E6u"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/anyxsolutions~french-companies-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-anyxsolutions-french-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/anyxsolutions~french-companies-scraper/runs": {
      "post": {
        "operationId": "runs-sync-anyxsolutions-french-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/anyxsolutions~french-companies-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-anyxsolutions-french-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": {
          "startUrls": {
            "title": "Annuaire des Entreprises URLs",
            "type": "array",
            "description": "Company pages such as https://annuaire-entreprises.data.gouv.fr/entreprise/542051180, establishment pages (/etablissement/<SIRET>), or search pages copied from the site (/rechercher?terme=boulangerie&cp_dep=75&cp_dep_type=dep), filters included.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Words to search for, for example a company name, a brand, an address or a director's name, such as boulangerie or Michelin. At least 3 characters, unless a filter is set.",
            "items": {
              "type": "string"
            }
          },
          "sirens": {
            "title": "SIREN or SIRET numbers",
            "type": "array",
            "description": "Company numbers to fetch directly: 9-digit SIRENs or 14-digit SIRETs for one establishment, for example 542051180 or 54205118000066. Spaces are ignored.",
            "items": {
              "type": "string"
            }
          },
          "activityCodes": {
            "title": "Activity codes (NAF/APE)",
            "type": "array",
            "description": "Only companies whose main activity has one of these NAF codes, for example 10.71C (bakery) or 62.01Z (software development). Dots are optional.",
            "items": {
              "type": "string"
            }
          },
          "activitySections": {
            "title": "Activity sections",
            "type": "array",
            "description": "Only companies in these broad NAF sections, for example Construction or 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 and fishing",
                "B - Mining and quarrying",
                "C - Manufacturing",
                "D - Electricity, gas and steam",
                "E - Water, sewerage and waste",
                "F - Construction",
                "G - Wholesale and retail trade",
                "H - Transport and storage",
                "I - Accommodation and food services",
                "J - Information and communication",
                "K - Finance and insurance",
                "L - Real estate",
                "M - Professional, scientific and technical",
                "N - Administrative and support services",
                "O - Public administration",
                "P - Education",
                "Q - Health and social work",
                "R - Arts, entertainment and recreation",
                "S - Other services",
                "T - Households as employers",
                "U - Extraterritorial organisations"
              ]
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Only companies with an establishment in these departments, as INSEE codes, for example 75 (Paris), 69 (Rhône), 2A (Corse-du-Sud) or 971 (Guadeloupe).",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "Only companies with an establishment in these 5-digit postcodes, for example 75011 or 69002.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Only companies with an establishment in these regions.",
            "items": {
              "type": "string",
              "enum": [
                "11",
                "24",
                "27",
                "28",
                "32",
                "44",
                "52",
                "53",
                "75",
                "76",
                "84",
                "93",
                "94",
                "01",
                "02",
                "03",
                "04",
                "06"
              ],
              "enumTitles": [
                "Île-de-France",
                "Centre-Val de Loire",
                "Bourgogne-Franche-Comté",
                "Normandie",
                "Hauts-de-France",
                "Grand Est",
                "Pays de la Loire",
                "Bretagne",
                "Nouvelle-Aquitaine",
                "Occitanie",
                "Auvergne-Rhône-Alpes",
                "Provence-Alpes-Côte d'Azur",
                "Corse",
                "Guadeloupe",
                "Martinique",
                "Guyane",
                "La Réunion",
                "Mayotte"
              ]
            }
          },
          "headcountBands": {
            "title": "Employee headcount",
            "type": "array",
            "description": "Only companies in these INSEE headcount bands, from the latest annual declaration.",
            "items": {
              "type": "string",
              "enum": [
                "NN",
                "00",
                "01",
                "02",
                "03",
                "11",
                "12",
                "21",
                "22",
                "31",
                "32",
                "41",
                "42",
                "51",
                "52",
                "53"
              ],
              "enumTitles": [
                "Non-employer",
                "0 employees",
                "1-2 employees",
                "3-5 employees",
                "6-9 employees",
                "10-19 employees",
                "20-49 employees",
                "50-99 employees",
                "100-199 employees",
                "200-249 employees",
                "250-499 employees",
                "500-999 employees",
                "1,000-1,999 employees",
                "2,000-4,999 employees",
                "5,000-9,999 employees",
                "10,000+ employees"
              ]
            }
          },
          "companyCategories": {
            "title": "Company size category",
            "type": "array",
            "description": "Only companies in these INSEE size categories: SME (PME), mid-cap (ETI) or large company (GE).",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ],
              "enumTitles": [
                "SME (PME)",
                "Mid-cap (ETI)",
                "Large company (GE)"
              ]
            }
          },
          "legalForms": {
            "title": "Legal forms (INSEE codes)",
            "type": "array",
            "description": "Only companies with these 4-digit INSEE legal-form codes (catégorie juridique), for example 5710 (SAS), 5499 (SARL), 5599 (SA) or 9220 (association).",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Company status",
            "enum": [
              "A",
              "C"
            ],
            "type": "string",
            "description": "Only active companies, or only companies that have ceased trading. Leave empty for both."
          },
          "structureType": {
            "title": "Type of organisation",
            "enum": [
              "asso",
              "ei",
              "sp",
              "ct"
            ],
            "type": "string",
            "description": "Only associations, sole traders, public administrations or local authorities. Leave empty for every type."
          },
          "certifications": {
            "title": "Certifications and labels",
            "type": "array",
            "description": "Only companies holding every certification or label selected, for example RGE for energy-renovation contractors or Qualiopi for training providers.",
            "items": {
              "type": "string",
              "enum": [
                "est_rge",
                "est_qualiopi",
                "est_bio",
                "est_ess",
                "est_societe_mission",
                "est_siae",
                "est_organisme_formation",
                "est_entrepreneur_spectacle",
                "est_patrimoine_vivant",
                "est_achats_responsables",
                "egapro_renseignee",
                "est_finess",
                "est_uai",
                "est_alim_confiance"
              ],
              "enumTitles": [
                "RGE (environmental guarantee)",
                "Qualiopi",
                "Organic (Agence Bio)",
                "Social and solidarity economy (ESS)",
                "Mission-driven company",
                "Inclusive employer (SIAE)",
                "Training organisation",
                "Live entertainment licence",
                "Living heritage company (EPV)",
                "Responsible purchasing (RFAR)",
                "Gender equality index published",
                "Health and social care (FINESS)",
                "Education establishment (UAI)",
                "Food safety inspected (Alim'Confiance)"
              ]
            }
          },
          "revenueMin": {
            "title": "Minimum revenue (EUR)",
            "type": "integer",
            "description": "Only companies whose latest published revenue is at least this many euros, for example 1000000. Companies that publish no accounts are left out."
          },
          "revenueMax": {
            "title": "Maximum revenue (EUR)",
            "type": "integer",
            "description": "Only companies whose latest published revenue is at most this many euros, for example 50000000."
          },
          "netIncomeMin": {
            "title": "Minimum net income (EUR)",
            "type": "integer",
            "description": "Only companies whose latest published net income is at least this many euros, for example 0 for profitable companies."
          },
          "netIncomeMax": {
            "title": "Maximum net income (EUR)",
            "type": "integer",
            "description": "Only companies whose latest published net income is at most this many euros, for example -1 for loss-making companies."
          },
          "sortBySize": {
            "title": "Largest companies first",
            "type": "boolean",
            "description": "Sort results by company size (number of establishments) instead of relevance.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum companies per search",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of companies to return per search term or search URL. Leave empty to get every match, up to the register's 10,000 per search. SIRENs and company URLs always return one company each."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. The French company register is public and needs no proxy.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}