{
  "openapi": "3.0.1",
  "info": {
    "title": "French Company Lookup (SIRENE): SIREN, VAT, Revenue from a List",
    "description": "Look up a list of French companies by name, SIREN, SIRET or VAT number in the state's SIRENE directory, for KYC, supplier checks and data cleaning: SIREN, VAT, legal form, NAF, address, headcount, revenue, status. Or search it by activity, place, size or label.",
    "version": "0.1",
    "x-build-id": "Jmt3sGHudUhq3zLOi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~french-companies/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-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/pikoulas~french-companies/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-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/pikoulas~french-companies/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-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": {
          "companies": {
            "title": "Companies to look up",
            "type": "array",
            "description": "One company a line: a SIREN (552032534), SIRET, French VAT number (FR40552032534) or a name, with its 5-digit postal code at the end where namesakes are likely (Boulangeries Paul 59700). Each line gives a row, matched or not; the search filters below are then not used.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search words",
            "type": "string",
            "description": "Words of the company's name, trade name or address (boulangerie, plomberie lyon). At least 3 characters; none to search by the filters alone."
          },
          "nafCodes": {
            "title": "NAF codes",
            "type": "array",
            "description": "Activity codes of INSEE's NAF (43.22A plumbing and heating, 62.01Z software, 56.10A restaurants). None means all.",
            "items": {
              "type": "string"
            }
          },
          "sections": {
            "title": "Activity sections",
            "type": "array",
            "description": "NAF sections, the broad activities. None means all.",
            "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, sylviculture et pêche",
                "B: Industries extractives",
                "C: Industrie manufacturière",
                "D: Production et distribution d'électricité, de gaz, de vapeur et d'air conditionné",
                "E: Production et distribution d'eau ; assainissement, gestion des déchets et dépollution",
                "F: Construction",
                "G: Commerce; réparation d'automobiles et de motocycles",
                "H: Transports et entreposage",
                "I: Hébergement et restauration",
                "J: Information et communication",
                "K: Activités financières et d'assurance",
                "L: Activités immobilières",
                "M: Activités spécialisées, scientifiques et techniques",
                "N: Activités de services administratifs et de soutien",
                "O: Administration publique",
                "P: Enseignement",
                "Q: Santé humaine et action sociale",
                "R: Arts, spectacles et activités récréatives",
                "S: Autres activités de services",
                "T: Activités des ménages en tant qu'employeurs ; activités indifférenciées des ménages en tant que producteurs de biens et services pour usage propre",
                "U: Activités extra-territoriales"
              ]
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Department codes (75 Paris, 69 Rhône, 2A, 974): companies with an establishment there. None means all of France.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "5-digit postal codes (69003): companies with an establishment there.",
            "items": {
              "type": "string"
            }
          },
          "headcounts": {
            "title": "Headcount",
            "type": "array",
            "description": "Employee bands, as INSEE gives them. None means all.",
            "items": {
              "type": "string",
              "enum": [
                "NN",
                "00",
                "01",
                "02",
                "03",
                "11",
                "12",
                "21",
                "22",
                "31",
                "32",
                "41",
                "42",
                "51",
                "52",
                "53"
              ],
              "enumTitles": [
                "No employees",
                "0 (employees during the year, none at its end)",
                "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+"
              ]
            }
          },
          "categories": {
            "title": "Company size category",
            "type": "array",
            "description": "INSEE's size category. None means all.",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ],
              "enumTitles": [
                "PME: small and medium",
                "ETI: mid-size",
                "GE: large"
              ]
            }
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "INSEE legal form codes (5710 SAS, 5499 SARL, 1000 sole trader, 6540 SCI, 9220 association). None means all.",
            "items": {
              "type": "string"
            }
          },
          "minRevenue": {
            "title": "Minimum revenue (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Latest published revenue, at least. Only companies whose accounts are published have one."
          },
          "maxRevenue": {
            "title": "Maximum revenue (€)",
            "minimum": 0,
            "type": "integer",
            "description": "At most; 0 for no limit."
          },
          "labels": {
            "title": "Labels and certifications",
            "type": "array",
            "description": "Companies holding all of these.",
            "items": {
              "type": "string",
              "enum": [
                "rge",
                "qualiopi",
                "organic",
                "socialEconomy",
                "trainingBody",
                "entertainmentLicence",
                "missionCompany",
                "livingHeritage",
                "workIntegration",
                "association",
                "healthAndSocial",
                "school",
                "foodInspection",
                "responsiblePurchasing",
                "genderEqualityIndex"
              ],
              "enumTitles": [
                "RGE (Reconnu Garant de l'Environnement)",
                "Qualiopi (certified training)",
                "Organic (Agence Bio)",
                "Social and solidarity economy (ESS)",
                "Registered training body",
                "Entertainment licence",
                "Société à mission",
                "Living heritage company (EPV)",
                "Work integration (SIAE)",
                "Association",
                "Health and social (FINESS)",
                "School (UAI)",
                "Food hygiene inspection (Alim'Confiance)",
                "Responsible purchasing label (RFAR)",
                "Gender equality index (Egapro) filed"
              ]
            }
          },
          "soleTraders": {
            "title": "Sole traders",
            "enum": [
              "include",
              "exclude",
              "only"
            ],
            "type": "string",
            "description": "Entrepreneurs individuels, micro-entrepreneurs included.",
            "default": "include"
          },
          "includeClosed": {
            "title": "Include closed companies",
            "type": "boolean",
            "description": "Also give companies that have ceased.",
            "default": false
          },
          "largestFirst": {
            "title": "Largest first",
            "type": "boolean",
            "description": "Companies with the most establishments first; otherwise the API's order.",
            "default": false
          },
          "maxResults": {
            "title": "Max companies",
            "minimum": 0,
            "type": "integer",
            "description": "The most companies to give; 0 for no limit.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}