{
  "openapi": "3.0.1",
  "info": {
    "title": "France Public Tenders (BOAMP)",
    "description": "French public procurement notices from BOAMP, the official bulletin: calls for tenders and awards, including below-EU-threshold contracts not on TED. Filter by département, CPV, keywords, date and value. Normalized JSON.",
    "version": "1.0",
    "x-build-id": "vtxlqqD9587vX4rMd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/danielefontana~france-tenders-boamp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-danielefontana-france-tenders-boamp",
        "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/danielefontana~france-tenders-boamp/runs": {
      "post": {
        "operationId": "runs-sync-danielefontana-france-tenders-boamp",
        "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/danielefontana~france-tenders-boamp/run-sync": {
      "post": {
        "operationId": "run-sync-danielefontana-france-tenders-boamp",
        "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 kind",
            "type": "array",
            "description": "competition = calls for tenders (open opportunities); result = award notices (who won, for how much); planning = prior information; correction = corrigenda and modifications; cancellation = cancelled procedures; other = voluntary ex-ante transparency and qualification systems.",
            "items": {
              "type": "string",
              "enum": [
                "competition",
                "result",
                "planning",
                "correction",
                "cancellation",
                "other"
              ],
              "enumTitles": [
                "Calls for tenders (avis de marché)",
                "Award notices (résultats de marché)",
                "Prior information (pré-information)",
                "Corrections (rectificatifs, modifications)",
                "Cancellations (annulations)",
                "Other (ex-ante, qualification)"
              ]
            },
            "default": [
              "competition"
            ]
          },
          "departments": {
            "title": "Départements",
            "type": "array",
            "description": "French département codes: 75 (Paris), 69 (Rhône), 13 (Bouches-du-Rhône), 06 (Alpes-Maritimes), 2A, 971... Matches the départements BOAMP indexes the notice under (the buyer's, sometimes neighbouring ones too). Empty = all of France.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "contractNatures": {
            "title": "Contract type",
            "type": "array",
            "description": "Works (travaux), services or goods (fournitures). Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "works",
                "services",
                "goods"
              ],
              "enumTitles": [
                "Works (travaux)",
                "Services",
                "Goods (fournitures)"
              ]
            },
            "default": []
          },
          "valueBands": {
            "title": "Value band / regime",
            "type": "array",
            "description": "mapa = contracts below 90 k€ (procédure adaptée); national = between 90 k€ and the EU thresholds (not published on TED); eu = above the EU thresholds (also on TED); concession = délégations de service public; misc = other notices. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "mapa",
                "national",
                "eu",
                "concession",
                "misc"
              ],
              "enumTitles": [
                "Below 90 k€ (MAPA)",
                "90 k€ to EU thresholds (national)",
                "Above EU thresholds (European)",
                "Concessions (DSP)",
                "Other"
              ]
            },
            "default": []
          },
          "cpvCodes": {
            "title": "CPV codes or prefixes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes. A prefix matches the whole division: 72 = IT services, 45 = construction, 33 = medical, 79 = business services, 90 = environmental. Note: notices below 90 k€ (MAPA) carry no CPV code and are excluded when this filter is set; use keywords to find them.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (full text)",
            "type": "array",
            "description": "Words or phrases searched in the title and the full notice text. Any keyword may match. Example: logiciel, \"maintenance informatique\", nettoyage.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Used when 'Published from' is empty. 7 = last week.",
            "default": 7
          },
          "dateFrom": {
            "title": "Published from (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Overrides 'daysBack'. Publication date lower bound, inclusive."
          },
          "dateTo": {
            "title": "Published until (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Publication date upper bound, inclusive. Empty = today."
          },
          "minValue": {
            "title": "Minimum estimated value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Skips notices whose estimated value is known and lower than this amount. Notices without a value (most of them) are kept."
          },
          "onlyOpen": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Keep only notices whose deadline for receipt of tenders has not passed yet (notices without a deadline are dropped).",
            "default": false
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many records. You are only charged for records actually written. Empty = no limit (subject to your Apify spending cap)."
          },
          "includeRaw": {
            "title": "Include raw BOAMP record",
            "type": "boolean",
            "description": "Adds the original BOAMP record, with the full notice parsed, under the `raw` field (much larger output).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}