{
  "openapi": "3.0.1",
  "info": {
    "title": "French Company Search (SIRENE) — SIREN, NAF, Finances",
    "description": "Search French companies by name, SIREN, postcode, NAF activity, size or category. Get head office, legal form, revenue, net income and labels (RGE, ESS, bio). Official open data, no API key.",
    "version": "0.1",
    "x-build-id": "lnlCnRwgtGCrtQJTu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/polyglot-data~sirene-companies/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-polyglot-data-sirene-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/polyglot-data~sirene-companies/runs": {
      "post": {
        "operationId": "runs-sync-polyglot-data-sirene-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/polyglot-data~sirene-companies/run-sync": {
      "post": {
        "operationId": "run-sync-polyglot-data-sirene-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": {
          "query": {
            "title": "Search text",
            "type": "string",
            "description": "Company name, brand, SIREN (9 digits) or SIRET (14 digits). Accents and case are ignored."
          },
          "sirens": {
            "title": "SIREN lookup",
            "type": "array",
            "description": "List of 9-digit SIREN numbers to look up. When set, all other filters are ignored and each SIREN costs one request.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "5-digit postal codes, e.g. 75011. Matches companies with an establishment there.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "communeCodes": {
            "title": "Commune codes (INSEE)",
            "type": "array",
            "description": "5-character INSEE commune codes, e.g. 75111 or 2A004.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Department codes, e.g. 75, 2A, 974.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "2-digit INSEE region codes, e.g. 11 for Ile-de-France.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "nafCodes": {
            "title": "Activity (NAF code)",
            "type": "array",
            "description": "Main activity code of the company, e.g. 10.71C (bakery). Several codes are allowed.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "nafSections": {
            "title": "Activity section",
            "type": "array",
            "description": "NAF section letters A to U, e.g. C for manufacturing, J for information and communication.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "sizeBands": {
            "title": "Employee size band",
            "type": "array",
            "description": "INSEE size band codes: NN (none/unknown), 00, 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+).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "categories": {
            "title": "Company category",
            "type": "array",
            "description": "PME (small and medium), ETI (mid-cap) or GE (large).",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ]
            },
            "default": []
          },
          "legalForms": {
            "title": "Legal form codes",
            "type": "array",
            "description": "4-digit INSEE legal form codes, e.g. 5710 (SAS), 5499 (SARL), 9220 (association).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "status": {
            "title": "Administrative status",
            "enum": [
              "A",
              "C",
              "any"
            ],
            "type": "string",
            "description": "Active companies only by default.",
            "default": "A"
          },
          "revenueMin": {
            "title": "Minimum revenue (EUR)",
            "type": "integer",
            "description": "Latest published revenue at least this amount. Only companies that publish accounts have it."
          },
          "revenueMax": {
            "title": "Maximum revenue (EUR)",
            "type": "integer",
            "description": "Latest published revenue at most this amount."
          },
          "netIncomeMin": {
            "title": "Minimum net income (EUR)",
            "type": "integer",
            "description": "Latest published net income at least this amount."
          },
          "netIncomeMax": {
            "title": "Maximum net income (EUR)",
            "type": "integer",
            "description": "Latest published net income at most this amount."
          },
          "onlyAssociations": {
            "title": "Associations only",
            "type": "boolean",
            "description": "Keep only associations.",
            "default": false
          },
          "onlyEss": {
            "title": "Social economy (ESS) only",
            "type": "boolean",
            "description": "Keep only social and solidarity economy companies.",
            "default": false
          },
          "onlyRge": {
            "title": "RGE only",
            "type": "boolean",
            "description": "Keep only companies with an RGE (environment guarantor) establishment.",
            "default": false
          },
          "onlyBio": {
            "title": "Organic (bio) only",
            "type": "boolean",
            "description": "Keep only companies with an organic-certified establishment.",
            "default": false
          },
          "onlyQualiopi": {
            "title": "Qualiopi only",
            "type": "boolean",
            "description": "Keep only companies with the Qualiopi training certification.",
            "default": false
          },
          "onlySocieteMission": {
            "title": "Mission-driven companies only",
            "type": "boolean",
            "description": "Keep only societes a mission.",
            "default": false
          },
          "onlyEmployers": {
            "title": "Employers only",
            "type": "boolean",
            "description": "Keep only companies with at least 1 employee (size band 01 or above). Ignored when sizeBands is set.",
            "default": false
          },
          "includeSoleProprietors": {
            "title": "Include sole proprietors",
            "type": "boolean",
            "description": "Sole proprietors (entrepreneur individuel) are named after a natural person, so they are excluded by default. Turn on only if you have a lawful basis. Birth data is never output.",
            "default": false
          },
          "includeLegalEntityOfficers": {
            "title": "Include corporate officers",
            "type": "boolean",
            "description": "Adds legalEntityOfficers: officers that are companies (SIREN, name, role). Natural-person officers are never output.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of companies to save in one run.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}