{
  "openapi": "3.0.1",
  "info": {
    "title": "France Company 360 by SIREN: Contracts, BODACC",
    "description": "One card per French company (SIREN) crossing public contracts won, BODACC notices, official food-safety inspections and RGE, EPV and supplier labels. Legal entities only, at least two sources each. Embedded data, pay per row.",
    "version": "1.0",
    "x-build-id": "bJ7WlQzallZg1cEeR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/phonic_lily~france-company-360-siren/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-phonic_lily-france-company-360-siren",
        "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/phonic_lily~france-company-360-siren/runs": {
      "post": {
        "operationId": "runs-sync-phonic_lily-france-company-360-siren",
        "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/phonic_lily~france-company-360-siren/run-sync": {
      "post": {
        "operationId": "run-sync-phonic_lily-france-company-360-siren",
        "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": "Keyword in company name",
            "type": "string",
            "description": "Keyword in company name (accent- and case-insensitive substring)."
          },
          "siren": {
            "title": "SIREN (full or partial)",
            "type": "string",
            "description": "SIREN (full or partial) (accent- and case-insensitive substring)."
          },
          "nafCode": {
            "title": "NAF code (e.g. 56.30 or 43)",
            "type": "string",
            "description": "Substring of the NAF code, e.g. 56.30 for bars, 43 for specialised construction."
          },
          "requiredSource": {
            "title": "Required source (bodacc, decp, alimconfiance, rge, epv, rfar)",
            "type": "string",
            "description": "Keep companies present in this source family, e.g. rge or alimconfiance."
          },
          "rgeDomain": {
            "title": "RGE domain keyword (e.g. Isolation)",
            "type": "string",
            "description": "RGE domain keyword (e.g. Isolation) (accent- and case-insensitive substring)."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City (accent- and case-insensitive substring)."
          },
          "departments": {
            "title": "Department codes (e.g. 75, 2A, 974)",
            "type": "array",
            "description": "Department codes (e.g. 75, 2A, 974). Records with an empty value never match.",
            "items": {
              "type": "string"
            }
          },
          "legalForms": {
            "title": "Legal forms (e.g. SAS, SARL)",
            "type": "array",
            "description": "Legal forms (e.g. SAS, SARL). Records with an empty value never match.",
            "items": {
              "type": "string"
            }
          },
          "foodOutcomes": {
            "title": "Latest food inspection outcome (as published, e.g. Satisfaisant)",
            "type": "array",
            "description": "Latest food inspection outcome (as published, e.g. Satisfaisant). Records with an empty value never match.",
            "items": {
              "type": "string"
            }
          },
          "epvUniverses": {
            "title": "EPV universe (exact label)",
            "type": "array",
            "description": "EPV universe (exact label). Records with an empty value never match.",
            "items": {
              "type": "string"
            }
          },
          "supplierLabelCategories": {
            "title": "Supplier-relations label size: PME, ETI, GE",
            "type": "array",
            "description": "Supplier-relations label size: PME, ETI, GE. Records with an empty value never match.",
            "items": {
              "type": "string"
            }
          },
          "minSources": {
            "title": "Min number of source families",
            "type": "number",
            "description": "Min number of source families. Records with an empty value never match."
          },
          "maxSources": {
            "title": "Max number of source families",
            "type": "number",
            "description": "Max number of source families. Records with an empty value never match."
          },
          "minContracts": {
            "title": "Min public contracts won",
            "type": "number",
            "description": "Min public contracts won. Records with an empty value never match."
          },
          "maxContracts": {
            "title": "Max public contracts won",
            "type": "number",
            "description": "Max public contracts won. Records with an empty value never match."
          },
          "minContractAmount": {
            "title": "Min total declared contract amount (EUR)",
            "type": "number",
            "description": "Min total declared contract amount (EUR). Records with an empty value never match."
          },
          "maxContractAmount": {
            "title": "Max total declared contract amount (EUR)",
            "type": "number",
            "description": "Max total declared contract amount (EUR). Records with an empty value never match."
          },
          "minBodaccNotices": {
            "title": "Min BODACC notices",
            "type": "number",
            "description": "Min BODACC notices. Records with an empty value never match."
          },
          "maxBodaccNotices": {
            "title": "Max BODACC notices",
            "type": "number",
            "description": "Max BODACC notices. Records with an empty value never match."
          },
          "minFoodInspections": {
            "title": "Min food inspections",
            "type": "number",
            "description": "Min food inspections. Records with an empty value never match."
          },
          "maxFoodInspections": {
            "title": "Max food inspections",
            "type": "number",
            "description": "Max food inspections. Records with an empty value never match."
          },
          "minRgeQualifications": {
            "title": "Min RGE qualifications",
            "type": "number",
            "description": "Min RGE qualifications. Records with an empty value never match."
          },
          "maxRgeQualifications": {
            "title": "Max RGE qualifications",
            "type": "number",
            "description": "Max RGE qualifications. Records with an empty value never match."
          },
          "lastActivityFrom": {
            "title": "Last activity from",
            "type": "string",
            "description": "ISO date YYYY-MM-DD (inclusive)."
          },
          "lastActivityTo": {
            "title": "Last activity to",
            "type": "string",
            "description": "ISO date YYYY-MM-DD (inclusive)."
          },
          "foodInspectedFrom": {
            "title": "Last food inspection from",
            "type": "string",
            "description": "ISO date YYYY-MM-DD (inclusive)."
          },
          "foodInspectedTo": {
            "title": "Last food inspection to",
            "type": "string",
            "description": "ISO date YYYY-MM-DD (inclusive)."
          },
          "createdFrom": {
            "title": "Company created from",
            "type": "string",
            "description": "ISO date YYYY-MM-DD (inclusive)."
          },
          "createdTo": {
            "title": "Company created to",
            "type": "string",
            "description": "ISO date YYYY-MM-DD (inclusive)."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "lastActivity",
              "contractAmount",
              "contracts",
              "sources",
              "foodInspections",
              "name"
            ],
            "type": "string",
            "description": "Sort order of results. Default: file order (or distance when a radius is given)."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since my last run",
            "type": "boolean",
            "description": "Watch mode: return only records that appeared since your previous run with the same watch name, oldest first. Schedule the Actor (hourly, daily, weekly) to get an alert feed. Nothing is billed when there is nothing new. Sorting is ignored in this mode.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Name of the watch. Use one name per saved search so each keeps its own position.",
            "default": "default"
          },
          "lookbackDays": {
            "title": "First run: days of history",
            "minimum": 0,
            "type": "integer",
            "description": "First run of a watch only: return the records published within this many days before the newest matching record.",
            "default": 30
          },
          "resetWatch": {
            "title": "Reset this watch",
            "type": "boolean",
            "description": "Forget the position of this watch and start again as a first run.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum records returned and billed (1..10000).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}