{
  "openapi": "3.0.1",
  "info": {
    "title": "Legal Notice Scraper: EU Company Data, SIREN, VAT & Register",
    "description": "Reads the legal notice (mentions légales, note legali, aviso legal) of French, Italian, Spanish, Portuguese, Dutch, Belgian and UK sites: company, SIREN/SIRET, Partita IVA, CIF, KvK, VAT number, address, director, host. French firms joined to their register. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "ezn9j2DyiUGdQBETO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~legal-notice-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-legal-notice-scraper",
        "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/steadyscrape~legal-notice-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-legal-notice-scraper",
        "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/steadyscrape~legal-notice-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-legal-notice-scraper",
        "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": {
          "websites": {
            "title": "Websites",
            "maxItems": 5000,
            "type": "array",
            "description": "Company websites, one per line: a domain (<code>plomberie-toesca.fr</code>) or any link into the site (<code>https://www.studio.it/contatti</code>). The Actor finds the legal notice (mentions légales, note legali, aviso legal, colofon…), else the company number in the footer or the terms page, and reads it; a link straight to the notice is read as it is. Up to 5,000. Websites with no readable notice are free rows that say why. German, Austrian and Swiss sites are left to Impressum Scraper.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms (Google Maps)",
            "maxItems": 20,
            "type": "array",
            "description": "Find businesses on Google Maps instead, or as well: the trade as you would type it there, one per line (<code>plombier</code>, <code>expert comptable</code>, <code>idraulico</code>, <code>asesoría</code>, <code>loodgieter</code>, <code>accountant</code>). Every business with its own website gets its legal notice read. Each term is searched in every location. Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "maxItems": 20,
            "type": "array",
            "description": "Where to search, one per line: a city, district, postcode or address as you would type it into Google Maps (<code>Lyon</code>, <code>Milano 20121</code>, <code>Barcelona</code>), or <code>latitude, longitude</code>. Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0.5,
            "maximum": 50,
            "type": "number",
            "description": "How far from each location's centre to look, 0.5 to 50 km. Businesses outside it are left out.",
            "default": 5
          },
          "maxNoticesPerSearch": {
            "title": "Max companies per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop each search term in each location after this many companies were delivered (1 to 1,000). The run's spending limit is respected too.",
            "default": 50
          },
          "country": {
            "title": "Country for Google Maps",
            "enum": [
              "fr",
              "it",
              "es",
              "pt",
              "nl",
              "be",
              "gb"
            ],
            "type": "string",
            "description": "The country Google Maps answers for, in its language; it decides which town a short name means. Websites from the list are read whatever their country.",
            "default": "fr"
          },
          "joinFrenchRegister": {
            "title": "Add the French register record",
            "type": "boolean",
            "description": "For a French company whose notice prints its SIREN, add its official record from the State's open register (Recherche d'entreprises: Insee's Sirene and INPI's RNE): official name and legal form, NAF/APE activity, workforce band, creation date, active or ceased, and head office. Such a row is the dearer <code>legal-notice-with-register</code> event; companies that object to prospecting get no record and the cheaper event. Turn it off to pay the cheaper event for every company.",
            "default": true
          },
          "requireEmail": {
            "title": "Only companies with an email",
            "type": "boolean",
            "description": "Deliver (and charge) only legal notices that show an email address. The others are free rows with reason <code>noEmail</code>.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}