{
  "openapi": "3.0.1",
  "info": {
    "title": "SIRET & SIREN Lookup – French Company Data in Bulk",
    "description": "Look up French companies by SIRET or SIREN number in bulk, or find the SIRET from a name and postcode: legal name, status (active or closed), legal form, NAF, head office and establishment address, employees, VAT number. Official SIRENE/RNE data, no key. $1 per 1,000 companies.",
    "version": "0.1",
    "x-build-id": "3xjSOGvyM64aKXCih"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~siret-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-siret-lookup",
        "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/gazidev~siret-lookup/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-siret-lookup",
        "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/gazidev~siret-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-siret-lookup",
        "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": {
          "numbers": {
            "title": "SIRET or SIREN numbers",
            "type": "array",
            "description": "14-digit SIRET (an establishment) or 9-digit SIREN (a company). Spaces and dots are ignored; a French VAT number (FR + 11 digits) is read as its SIREN. Every number is checked locally (Luhn) first: invalid numbers are free.",
            "items": {
              "type": "string"
            }
          },
          "bulkText": {
            "title": "Bulk numbers (paste)",
            "type": "string",
            "description": "Paste many numbers, one per line or separated by commas / semicolons (e.g. a column copied from Excel)."
          },
          "datasetId": {
            "title": "Read numbers from a dataset",
            "type": "string",
            "description": "Optional: a dataset (e.g. from another Actor run) with a SIRET/SIREN column."
          },
          "datasetField": {
            "title": "Dataset field with the number",
            "type": "string",
            "description": "Field name in that dataset. Empty = the first of siret, siren, SIRET, SIREN, number."
          },
          "nameQueries": {
            "title": "Find the SIRET from a name + postcode",
            "type": "array",
            "description": "Objects like {\"name\": \"Doctolib\", \"postcode\": \"92300\"}. The establishment in that postcode is returned with a matchScore (0-1). The postcode is optional (without it the head office is returned)."
          },
          "minMatchScore": {
            "title": "Minimum match score",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Name matches below this score are returned as free 'no match' rows (with the best candidate).",
            "default": 0.8
          },
          "includeEstablishments": {
            "title": "Row level",
            "enum": [
              "matched",
              "none"
            ],
            "type": "string",
            "description": "matched: a SIRET input returns that establishment (its own status, address, NAF, head office or not); a SIREN input returns the head office. none: always the company level with the head office address.",
            "default": "matched"
          },
          "computeVat": {
            "title": "Compute the intra-EU VAT number",
            "type": "boolean",
            "description": "FR + 2-digit key + SIREN, computed locally (free).",
            "default": true
          },
          "checkVatWithVies": {
            "title": "Check the VAT number with VIES",
            "type": "boolean",
            "description": "Ask the European Commission VIES service whether the VAT number is active (vatValid). Adds the vat-checked event per successful check and about 1 s per company.",
            "default": false
          },
          "includeDirectors": {
            "title": "Include directors (names of people)",
            "type": "boolean",
            "description": "Off by default. When on, adds directors (first name + last name + role for people; name, SIREN and role for companies). These are personal data: use them only for a lawful purpose (e.g. KYB) and follow the GDPR.",
            "default": false
          },
          "excludeProspectingOptOut": {
            "title": "Skip companies that opted out of commercial prospecting",
            "type": "boolean",
            "description": "On by default: companies flagged opposition_diffusion_commerciale in SIRENE get a free row with a note instead of their data. Turn off for non-marketing uses (KYB, invoicing, accounting); the flag is still in every row (prospectingOptOut).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel lookups",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "At most 2. The API is called at most 2 times per second whatever this value is.",
            "default": 2
          },
          "maxItems": {
            "title": "Max inputs",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many numbers / name queries (0 = no limit)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}