{
  "openapi": "3.0.1",
  "info": {
    "title": "France Company Registry Scraper — SIREN & NAF Data",
    "description": "Search French companies by name, SIREN, NAF activity and geography. Export legal names, status and head-office data, with optional matching establishments. For B2B shortlists and CRM checks, not email or phone enrichment. $1.75 per 1,000 companies.",
    "version": "0.1",
    "x-build-id": "5lEBzzbz92eeQn6Ei"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stone_jadex~france-company-registry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stone_jadex-france-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/stone_jadex~france-company-registry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-stone_jadex-france-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/stone_jadex~france-company-registry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-stone_jadex-france-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",
        "properties": {
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text search sent as the API q parameter (company name, address fragment, SIREN/SIRET, director name). Leave empty when using only filters or the sirens list."
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "French 5-digit postal codes (code_postal). Filters matching establishments. Useful to narrow large queries below the API 10,000-result cap.",
            "items": {
              "type": "string"
            }
          },
          "departements": {
            "title": "Departements",
            "type": "array",
            "description": "INSEE departement codes (e.g. 75, 2A, 974). When a query hits the 10,000-result API cap, the Actor auto-splits by departement (then by postal code) to fetch more.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "INSEE region codes (e.g. 11 for Ile-de-France) passed as the region filter.",
            "items": {
              "type": "string"
            }
          },
          "nafCodes": {
            "title": "NAF / APE codes",
            "type": "array",
            "description": "Principal activity codes (activite_principale), e.g. 56.10A. Labels are enriched from the bundled NAF table.",
            "items": {
              "type": "string"
            }
          },
          "sections": {
            "title": "NAF sections",
            "type": "array",
            "description": "Section of principal activity (section_activite_principale), letters A-U.",
            "items": {
              "type": "string"
            }
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "INSEE nature_juridique codes (e.g. 5710 for SAS, 1000 for sole trader). Labels are enriched from the bundled table.",
            "items": {
              "type": "string"
            }
          },
          "employeeRanges": {
            "title": "Employee ranges",
            "type": "array",
            "description": "INSEE tranche_effectif_salarie codes (e.g. 12 = 20 to 49 employees).",
            "items": {
              "type": "string"
            }
          },
          "companyCategories": {
            "title": "Company categories",
            "type": "array",
            "description": "INSEE categorie_entreprise values: PME, ETI, GE.",
            "items": {
              "type": "string"
            }
          },
          "activeOnly": {
            "title": "Active companies only",
            "type": "boolean",
            "description": "When true, sets etat_administratif=A so only administratively active legal units are returned.",
            "default": false
          },
          "estAssociation": {
            "title": "Associations only",
            "type": "boolean",
            "description": "When true, sets est_association=true. Leave empty for no filter."
          },
          "sirens": {
            "title": "SIREN lookup list",
            "type": "array",
            "description": "Exact SIREN numbers to look up (one API search per SIREN). Handy for CRM enrichment and KYC batch checks. Each value must be exactly 9 digits (spaces allowed); malformed values are skipped and named in OUTPUT.warnings.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max companies",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many company rows have been pushed (and charged under pay-per-event). Default 100.",
            "default": 100
          },
          "includeEstablishments": {
            "title": "Include matching establishments",
            "type": "boolean",
            "description": "When true, requests matching_etablissements from the API and includes them on each row. Default false. On a radius search (lat/lon, /near_point) the API is always asked for up to 100 matching establishments, which fill matchingEstablishments on every row whether or not this is on.",
            "default": false
          },
          "includeDirectors": {
            "title": "Include directors",
            "type": "boolean",
            "description": "When true, includes dirigeants. Birth dates for natural persons are always stripped (name and role only). Default false.",
            "default": false
          },
          "maxRequestsPerSecond": {
            "title": "Max requests per second",
            "minimum": 0.1,
            "maximum": 7,
            "type": "number",
            "description": "Client-side rate limit. The API documents 7 calls/s; default is 4 req/s. Never set above 7.",
            "default": 4
          },
          "requestDelaySecs": {
            "title": "Minimum delay between requests (seconds)",
            "minimum": 0,
            "type": "number",
            "description": "Optional extra floor for start-to-start spacing. The effective interval is the maximum of this value, 1/maxRequestsPerSecond, and any robots.txt Crawl-delay."
          },
          "countOnly": {
            "title": "Count only (preview)",
            "type": "boolean",
            "description": "When true, the Actor sends only the first search request and stores its total in OUTPUT.totalResults with stopReason count-preview. No company rows are written and nothing is charged (only the free run-notice row). Same as mode \"count\". With a SIREN list (sirens) no request is sent: totalResults is null, a warning is added and the status says the preview is only available for search filters, not a SIREN list. When the API returns total_results of 10000 (its cap), OUTPUT.totalResults stays 10000, totalResultsIsLowerBound is true, and the status says \"at least 10,000\" companies match."
          },
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "Optional. \"count\" (case-insensitive) is the same as countOnly = true; any other value or empty runs a normal search. Kept for API-style inputs; countOnly is the switch shown in the form."
          },
          "lat": {
            "title": "Latitude",
            "type": "number",
            "description": "Latitude for a radius search around a point. Must be given together with lon (or its alias long); then the Actor calls the same API's /near_point endpoint (the free-text query is not sent there) with lat, long and radius. /near_point requests also send limite_matching_etablissements=100, and every row then carries matchingEstablishments (in-radius establishments from the same response; no extra request or charge)."
          },
          "lon": {
            "title": "Longitude",
            "type": "number",
            "description": "Longitude for the radius search; the alias long is also accepted (lon wins when both are set). Must be given together with lat, otherwise the run fails as invalid input."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "maximum": 50,
            "type": "number",
            "description": "Radius around lat/lon in kilometres, sent as radius. Must be greater than 0 and at most 50; otherwise the run fails as invalid input. Requires lat and lon; radiusKm without a point fails as invalid input (no request is sent, no run-notice row) and nothing is charged. Empty uses the API's default radius. The /near_point request also sends limite_matching_etablissements=100 (rows get matchingEstablishments)."
          },
          "nomPersonne": {
            "title": "Director / elected person last name",
            "type": "string",
            "description": "Sent as nom_personne: companies with a director (or elected official) of this last name."
          },
          "prenomsPersonne": {
            "title": "Director / elected person first names",
            "type": "string",
            "description": "Sent as prenoms_personne: first name(s) of the director or elected official."
          },
          "typePersonne": {
            "title": "Person type",
            "type": "string",
            "description": "Sent as type_personne. The API documents dirigeant (director) or elu (élu, elected official); the value is passed through as typed."
          },
          "caMin": {
            "title": "Minimum revenue (EUR)",
            "type": "number",
            "description": "Sent as ca_min: minimum turnover (chiffre d'affaires) in euros, for companies that publish it."
          },
          "caMax": {
            "title": "Maximum revenue (EUR)",
            "type": "number",
            "description": "Sent as ca_max: maximum turnover (chiffre d'affaires) in euros."
          },
          "estRge": {
            "title": "RGE certified",
            "type": "boolean",
            "description": "true sends est_rge=true (RGE-certified companies only), false sends est_rge=false. Leave empty for no filter."
          },
          "estQualiopi": {
            "title": "Qualiopi certified",
            "type": "boolean",
            "description": "true sends est_qualiopi=true (Qualiopi-certified training providers only), false sends est_qualiopi=false. Leave empty for no filter."
          },
          "extraParams": {
            "title": "Extra API parameters",
            "type": "object",
            "description": "Optional object of other Recherche d'entreprises query parameters, passed through as key=value. Parameters the Actor already builds itself are dropped (built-in: q, code_postal, departement, region, activite_principale, section_activite_principale, nature_juridique, tranche_effectif_salarie, categorie_entreprise, etat_administratif, est_association, limite_matching_etablissements, lat, long, lon, radius, nom_personne, prenoms_personne, type_personne, ca_min, ca_max, est_rge, est_qualiopi), and so are date_naissance_personne_min and date_naissance_personne_max. Empty values are skipped; a non-object is ignored. Pagination parameters are also dropped with a warning and cannot override the Actor's paging: page, per_page, page_size, offset, limit, limite, cursor, start, from, size, debut. The warning reads 'Ignored extraParams (<keys>): pagination parameters such as page and per_page are controlled by the Actor and cannot be overridden.'"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}