{
  "openapi": "3.0.1",
  "info": {
    "title": "BOAMP Scraper: French Public Tenders, MAPA & Award Notices",
    "description": "BOAMP notices (marchés publics, appels d'offres) from DILA's official daily files: French public tenders (avis de marché, MAPA), awards with winners and SIRET, corrections. Filter by département, CPV, descriptor, buyer, keyword and deadline. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "VeNyX65a36oXT1kMB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~boamp-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-boamp-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~boamp-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-boamp-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~boamp-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-boamp-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": {
          "noticeKinds": {
            "title": "Notice kinds",
            "type": "array",
            "description": "Calls for tenders (<code>opportunity</code>: avis de marché, MAPA, DSP and concession calls), prior information notices, award notices (avis d'attribution, with the winners), corrections (rectificatifs and modifications) and cancellations. Empty keeps every kind.",
            "items": {
              "type": "string",
              "enum": [
                "opportunity",
                "prior_information",
                "award",
                "correction",
                "cancellation",
                "other"
              ],
              "enumTitles": [
                "Calls for tenders (avis de marché)",
                "Prior information (pré-information)",
                "Awards (avis d'attribution)",
                "Corrections (rectificatifs)",
                "Cancellations (annulations)",
                "Other notices"
              ]
            },
            "default": [
              "opportunity"
            ]
          },
          "publishedInLastDays": {
            "title": "Published in the last days",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Notices published today and the N days before it (Paris time). <code>0</code> is today only. Ideal for a schedule: a daily run with <code>1</code> and <b>Only new notices</b> on lists each new notice once. Ignored when <b>Published from</b> or <b>Published to</b> is set.",
            "default": 1
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "First publication day (YYYY-MM-DD). One run reads at most 31 days: each BOAMP notice is its own file. DILA keeps the daily folders of the current year only, so earlier days come back as a free <code>not_covered</code> row."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Last publication day (YYYY-MM-DD), included. Empty means today."
          },
          "departments": {
            "title": "Départements",
            "type": "array",
            "description": "Keep notices published for any of these départements (<code>75</code>, <code>69</code>, <code>20A</code> for Corse-du-Sud, <code>971</code>…), as BOAMP indexes them. Empty keeps all of France.",
            "items": {
              "type": "string",
              "enum": [
                "01",
                "02",
                "03",
                "04",
                "05",
                "06",
                "07",
                "08",
                "09",
                "10",
                "11",
                "12",
                "13",
                "14",
                "15",
                "16",
                "17",
                "18",
                "19",
                "21",
                "22",
                "23",
                "24",
                "25",
                "26",
                "27",
                "28",
                "29",
                "30",
                "31",
                "32",
                "33",
                "34",
                "35",
                "36",
                "37",
                "38",
                "39",
                "40",
                "41",
                "42",
                "43",
                "44",
                "45",
                "46",
                "47",
                "48",
                "49",
                "50",
                "51",
                "52",
                "53",
                "54",
                "55",
                "56",
                "57",
                "58",
                "59",
                "60",
                "61",
                "62",
                "63",
                "64",
                "65",
                "66",
                "67",
                "68",
                "69",
                "70",
                "71",
                "72",
                "73",
                "74",
                "75",
                "76",
                "77",
                "78",
                "79",
                "80",
                "81",
                "82",
                "83",
                "84",
                "85",
                "86",
                "87",
                "88",
                "89",
                "90",
                "91",
                "92",
                "93",
                "94",
                "95",
                "20A",
                "20B",
                "971",
                "972",
                "973",
                "974",
                "975",
                "976",
                "977",
                "978",
                "986",
                "987",
                "988",
                "99"
              ]
            }
          },
          "descriptors": {
            "title": "BOAMP descriptors",
            "type": "array",
            "description": "BOAMP's own subject descriptors, by code (<code>365</code>) or by a word of their label (<code>voirie</code>, <code>nettoyage</code>, <code>informatique</code>). Any one matching keeps the notice.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Keep notices with a CPV code starting like any of these (<code>45233000</code> or its prefix <code>4523</code>), in the notice or any of its lots. MAPA-form notices often print no CPV and are then left out by this filter.",
            "items": {
              "type": "string"
            }
          },
          "buyers": {
            "title": "Buyers",
            "type": "array",
            "description": "Public buyers by a word of their name (<code>Livry-Gargan</code>, <code>CHU</code>) or by SIRET (14 digits) or SIREN (9 digits). The MAPA form prints no SIRET, so search those buyers by name.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep notices whose title, description or lots mention any of these words or phrases, from the start of a word, without case or accents (<code>espaces verts</code>, <code>photovoltaïque</code>).",
            "items": {
              "type": "string"
            }
          },
          "contractNatures": {
            "title": "Contract natures",
            "type": "array",
            "description": "Works (travaux), supplies (fournitures) or services. Empty keeps all.",
            "items": {
              "type": "string",
              "enum": [
                "works",
                "supplies",
                "services"
              ],
              "enumTitles": [
                "Works (travaux)",
                "Supplies (fournitures)",
                "Services"
              ]
            }
          },
          "onlyOpen": {
            "title": "Only open calls",
            "type": "boolean",
            "description": "Keep calls for tenders whose response deadline has not passed. A call without a deadline is left out. Awards and corrections are not affected.",
            "default": false
          },
          "deadlineFrom": {
            "title": "Response deadline from",
            "type": "string",
            "description": "Keep calls whose response deadline falls on or after this day (YYYY-MM-DD, Paris time)."
          },
          "deadlineTo": {
            "title": "Response deadline to",
            "type": "string",
            "description": "Keep calls whose response deadline falls on or before this day (YYYY-MM-DD, Paris time)."
          },
          "onlyNewNotices": {
            "title": "Only new notices",
            "type": "boolean",
            "description": "Skip notices an earlier run with the same filters already delivered (dates aside). For a daily schedule: each notice is delivered and charged once. Remembered in a key-value store of your account named <code>steadyscrape-boamp-scraper-state</code>.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many notices, newest first.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}