{
  "openapi": "3.0.1",
  "info": {
    "title": "French Company Data API: SIREN leads by NAF & department",
    "description": "French companies from the official recherche-entreprises API by NAF code, department, size and legal form, or by SIREN: head office, directors and finances. Opted-out companies are skipped free. $4 per 1,000.",
    "version": "0.0",
    "x-build-id": "5RVRlKtzp5IwmFcVg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/goobertje~france-company-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-goobertje-france-company-search",
        "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/goobertje~france-company-search/runs": {
      "post": {
        "operationId": "runs-sync-goobertje-france-company-search",
        "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/goobertje~france-company-search/run-sync": {
      "post": {
        "operationId": "run-sync-goobertje-france-company-search",
        "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": "Name or free text",
            "type": "string",
            "description": "Company name, address words or director name to search. Only letters, digits, spaces, hyphens, apostrophes, ampersands and dots are used (other characters become spaces). Not a SIREN: use 'SIREN numbers' for that. Optional if you use a filter. Example: \"boulangerie\"."
          },
          "sirens": {
            "title": "SIREN numbers (lookup)",
            "type": "array",
            "description": "Look up these companies by SIREN (9 digits; a 14-digit SIRET is cut to its SIREN). Cannot be combined with Name, filters or Created since: when you fill in this field, clear the prefilled NAF code and department first (a lookup cannot be combined with search filters). Companies that opposed commercial use are returned here with marketingOptOut true. Up to 400. Example: [\"652014051\", \"552032534\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "nafCodes": {
            "title": "NAF / APE activity codes",
            "type": "array",
            "description": "Keep companies whose main activity (NAF rev. 2 code) is one of these. Format 62.01Z (the dot is optional). Up to 50 codes, any match counts. Example: [\"62.01Z\", \"62.02A\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "Keep companies with an establishment in one of these 5-digit postcodes. Note: the match is on any establishment, so the head office can be elsewhere. Up to 50. Example: [\"75001\", \"69002\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Keep companies with an establishment in one of these departments: 2 digits (75), 2A or 2B for Corsica, or 971 to 976 and 984 to 989 overseas. Note: the match is on any establishment, so the head office can be elsewhere. Up to 50. Example: [\"75\", \"92\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "employeeBands": {
            "title": "Employee bands (INSEE codes)",
            "type": "array",
            "description": "Keep companies in these INSEE employee bands: NN (non-employer), 00 (0 employees), 01 (1-2), 02 (3-5), 03 (6-9), 11 (10-19), 12 (20-49), 21 (50-99), 22 (100-199), 31 (200-249), 32 (250-499), 41 (500-999), 42 (1,000-1,999), 51 (2,000-4,999), 52 (5,000-9,999), 53 (10,000+). Example: [\"11\", \"12\"].",
            "items": {
              "type": "string",
              "enum": [
                "NN",
                "00",
                "01",
                "02",
                "03",
                "11",
                "12",
                "21",
                "22",
                "31",
                "32",
                "41",
                "42",
                "51",
                "52",
                "53"
              ],
              "enumTitles": [
                "NN - non-employer",
                "00 - 0 employees",
                "01 - 1 or 2",
                "02 - 3 to 5",
                "03 - 6 to 9",
                "11 - 10 to 19",
                "12 - 20 to 49",
                "21 - 50 to 99",
                "22 - 100 to 199",
                "31 - 200 to 249",
                "32 - 250 to 499",
                "41 - 500 to 999",
                "42 - 1,000 to 1,999",
                "51 - 2,000 to 4,999",
                "52 - 5,000 to 9,999",
                "53 - 10,000 or more"
              ]
            },
            "default": []
          },
          "companyCategories": {
            "title": "Company size category",
            "type": "array",
            "description": "INSEE company category: PME (small and medium), ETI (mid-size), GE (large). Empty means any. Example: [\"PME\", \"ETI\"].",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ],
              "enumTitles": [
                "PME (small and medium)",
                "ETI (mid-size)",
                "GE (large)"
              ]
            },
            "default": []
          },
          "legalFormCodes": {
            "title": "Legal form codes",
            "type": "array",
            "description": "INSEE legal category codes (4 digits), any match counts. Up to 50. Example: [\"5710\", \"5499\"] for SAS and SARL.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyActive": {
            "title": "Only active companies",
            "type": "boolean",
            "description": "Search only: skip ceased companies. A SIREN lookup always returns the company whatever its status. Default: true.",
            "default": true
          },
          "createdSince": {
            "title": "Created since",
            "type": "string",
            "description": "Search only: keep companies created on or after this date, format YYYY-MM-DD. The API has no creation-date filter, so this is applied by the Actor after fetching: it only skips rows, and a narrow date can need many pages (the run stops at 450 requests). Empty means any. Example: \"2025-01-01\"."
          },
          "includeDirectors": {
            "title": "Include directors",
            "type": "boolean",
            "description": "Add the directors as published (names, role, birth month and year for individuals). They are personal data: you are responsible for lawful use under the GDPR. Default: true.",
            "default": true
          },
          "onlyNew": {
            "title": "Only companies not delivered before",
            "type": "boolean",
            "description": "Skip companies an earlier run with the same State store name already delivered, so you can build a list over several runs. Use a different store name per search. Default: false.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Name of the key-value store that remembers delivered SIREN numbers when 'Only companies not delivered before' is on. Lowercase letters, digits and hyphens, 3 to 63 characters. Default: france-company-search-state.",
            "default": "france-company-search-state"
          },
          "maxItems": {
            "title": "Maximum companies",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many companies are delivered (and charged). 1 to 100000. Default: 100. A search can never return more than 10,000 companies (API limit).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}