{
  "openapi": "3.0.1",
  "info": {
    "title": "French Company Data API: SIREN, SIRET, Entreprises",
    "description": "French company data (entreprises) from the official register: SIREN, SIRET, address, NAF, headcount, creation date, establishments, managers, revenue, VAT. Search by name, NAF, department. No API key, no login. MCP-ready for AI agents. Pay per result. Errors are free. $6.40 per 1,000 companies",
    "version": "0.1",
    "x-build-id": "PcJXGVNxPhh8Pfb4z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actose~french-companies/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actose-french-companies",
        "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/actose~french-companies/runs": {
      "post": {
        "operationId": "runs-sync-actose-french-companies",
        "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/actose~french-companies/run-sync": {
      "post": {
        "operationId": "run-sync-actose-french-companies",
        "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": {
          "identifiers": {
            "title": "SIREN or SIRET numbers",
            "type": "array",
            "description": "Direct lookup by 9-digit SIREN or 14-digit SIRET (spaces and dots allowed). Each company found is one result. Unknown or invalid numbers are logged and never charged.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search text (name, brand, address, manager)",
            "type": "string",
            "description": "Full-text search in company names, trade names, addresses and managers, e.g. \"boulangerie\", \"plombier\", \"Michelin\". Optional when you use filters below."
          },
          "nafCodes": {
            "title": "NAF / APE activity codes",
            "type": "array",
            "description": "Main activity of the company, e.g. 10.71C (bakery), 62.01Z (software development), 56.10A (restaurants). Format 10.71C or 1071C.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "French department codes, e.g. 31 (Haute-Garonne), 75 (Paris), 2A (Corse-du-Sud), 971 (Guadeloupe). Matches companies having at least one establishment there.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "5-digit postal codes, e.g. 31000. Matches companies having at least one establishment there.",
            "items": {
              "type": "string"
            }
          },
          "communeCodes": {
            "title": "INSEE commune codes",
            "type": "array",
            "description": "5-character INSEE city codes (not postal codes), e.g. 31555 = Toulouse, 75056 = Paris, 69123 = Lyon. Covers all postal codes of the city.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions (INSEE codes)",
            "type": "array",
            "description": "2-digit INSEE region codes, e.g. 76 = Occitanie, 11 = Île-de-France, 84 = Auvergne-Rhône-Alpes.",
            "items": {
              "type": "string"
            }
          },
          "headcountRanges": {
            "title": "Headcount ranges (tranche d'effectif)",
            "type": "array",
            "description": "Official INSEE headcount bands of the company.",
            "items": {
              "type": "string",
              "enum": [
                "NN",
                "00",
                "01",
                "02",
                "03",
                "11",
                "12",
                "21",
                "22",
                "31",
                "32",
                "41",
                "42",
                "51",
                "52",
                "53"
              ],
              "enumTitles": [
                "Unknown / non-employer",
                "0 employees",
                "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 size category",
            "type": "array",
            "description": "INSEE category: PME (SME), ETI (mid-cap), GE (large company).",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ],
              "enumTitles": [
                "PME – small and medium",
                "ETI – intermediate",
                "GE – large"
              ]
            }
          },
          "legalFormCodes": {
            "title": "Legal form codes (nature juridique)",
            "type": "array",
            "description": "INSEE legal category codes, e.g. 5710 = SAS, 5499 = SARL, 5720 = SASU, 1000 = sole proprietor, 9220 = association.",
            "items": {
              "type": "string"
            }
          },
          "nafSections": {
            "title": "NAF sections",
            "type": "array",
            "description": "Broad activity section letters A to U, e.g. F = construction, I = hotels and restaurants, J = information and communication.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Company status",
            "enum": [
              "active",
              "ceased",
              "all"
            ],
            "type": "string",
            "description": "Applies to searches only (direct SIREN/SIRET lookups always return the company).",
            "default": "active"
          },
          "createdAfter": {
            "title": "Created on or after",
            "type": "string",
            "description": "Keep only companies created on or after this date (YYYY-MM-DD). Applies to searches."
          },
          "createdBefore": {
            "title": "Created on or before",
            "type": "string",
            "description": "Keep only companies created on or before this date (YYYY-MM-DD). Applies to searches."
          },
          "createdWithinDays": {
            "title": "Created in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Relative date filter for scheduled runs, e.g. 30 = companies created during the last 30 days."
          },
          "minRevenue": {
            "title": "Minimum revenue (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies with published revenue (chiffre d'affaires) at least this amount."
          },
          "maxRevenue": {
            "title": "Maximum revenue (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies with published revenue at most this amount."
          },
          "maxResults": {
            "title": "Max companies from the search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of companies returned by the search (the API serves at most 10,000 per search: split by department or NAF code for more). Does not limit SIREN/SIRET lookups.",
            "default": 100
          },
          "maxEstablishments": {
            "title": "Max matching establishments per company",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many establishments (SIRET) matching your filters to include per company (0 to 100). For a SIRET lookup, the requested establishment is also returned in requestedEstablishment.",
            "default": 10
          },
          "onlyNew": {
            "title": "Only new companies (for scheduled runs)",
            "type": "boolean",
            "description": "Skip companies already delivered by a previous run with the same search. Perfect to monitor new registrations every day or week. Memory is kept in the named key-value store \"french-companies-state\".",
            "default": false
          },
          "stateKey": {
            "title": "Memory name for onlyNew",
            "type": "string",
            "description": "Optional name of the onlyNew memory (letters, digits, - and _). By default it is derived from the search criteria."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}