{
  "openapi": "3.0.1",
  "info": {
    "title": "BOAMP Marchés Publics API: Tenders, Awards, Buyers",
    "description": "French public tenders from BOAMP: title, buyer, email, deadline, CPV, value, lots, winners, awarded amount, DCE link. Filter by keyword, department, descriptor, buyer, dates. onlyNew daily alerts. No API key, no login. MCP-ready for AI agents. Pay per result. $1 per 1,000 notices",
    "version": "0.1",
    "x-build-id": "SBBHV7wKyfDFi4rDy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actose~boamp-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actose-boamp-tenders",
        "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/actose~boamp-tenders/runs": {
      "post": {
        "operationId": "runs-sync-actose-boamp-tenders",
        "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/actose~boamp-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-actose-boamp-tenders",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words searched in the notice title (objet). Accents and case are ignored, French plural/singular forms match. Examples: \"informatique\", \"nettoyage\", \"maîtrise d'oeuvre\", \"cybersécurité\".",
            "items": {
              "type": "string"
            }
          },
          "keywordsMatch": {
            "title": "Keywords match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "\"any\": a notice matches if its title contains at least one keyword. \"all\": it must contain every keyword.",
            "default": "any"
          },
          "keywordsScope": {
            "title": "Search keywords in",
            "enum": [
              "title",
              "fullText"
            ],
            "type": "string",
            "description": "\"title\" (recommended): only the notice title. \"fullText\": the whole notice (description, lots, conditions...) — many more results, often less relevant.",
            "default": "title"
          },
          "strictKeywordMatch": {
            "title": "Strict keyword match",
            "type": "boolean",
            "description": "The BOAMP search engine matches word roots, so \"informatique\" also returns titles with \"informations\". When on, a notice is kept only if each word of the keyword starts a word of its title (accents and case ignored: \"informatique\" keeps \"informatiques\", drops \"informations\"). Dropped notices are not charged. Ignored with full-text search.",
            "default": true
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose title contains one of these words. Example: \"travaux\", \"restauration\".",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "BOAMP notice types to return. \"Contract notice\" = open calls for tenders (avis de marché); \"Award notice\" = results with winners and amounts (avis d'attribution). Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "APPEL_OFFRE",
                "ATTRIBUTION",
                "RECTIFICATIF",
                "ANNULATION",
                "PRE-INFORMATION",
                "MODIFICATION",
                "EX_ANTE_VOLONTAIRE"
              ],
              "enumTitles": [
                "Contract notice / call for tenders (avis de marché)",
                "Award notice / results (avis d'attribution)",
                "Correction (rectificatif)",
                "Cancellation (annulation)",
                "Prior information notice (pré-information)",
                "Contract modification (modification)",
                "Voluntary ex ante transparency notice"
              ]
            }
          },
          "descriptors": {
            "title": "BOAMP descriptors (sectors)",
            "type": "array",
            "description": "BOAMP descriptor labels or codes. A label matches every descriptor containing it: \"Informatique\" returns \"Informatique (matériel)\" and \"Informatique (prestations de services)\". Other examples: \"Logiciel\", \"Nettoyage de locaux\", \"Maîtrise d'oeuvre\", \"Espaces verts\", \"Formation\", or a code like \"163\".",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Full 8-digit CPV codes found anywhere in the notice (main or lot CPV). Example: \"72000000\" (IT services), \"90910000\" (cleaning), \"45000000\" (construction works).",
            "items": {
              "type": "string"
            }
          },
          "contractTypes": {
            "title": "Contract types",
            "type": "array",
            "description": "Services, supplies (fournitures) or works (travaux). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "services",
                "supplies",
                "works"
              ],
              "enumTitles": [
                "Services",
                "Supplies (fournitures)",
                "Works (travaux)"
              ]
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "French department codes where the notice is published, e.g. \"31\" (Haute-Garonne), \"75\" (Paris), \"01\" (Ain), \"2A\" (Corse-du-Sud), \"974\" (La Réunion). Leave empty for all of France.",
            "items": {
              "type": "string"
            }
          },
          "buyerNames": {
            "title": "Buyers (contracting authorities)",
            "type": "array",
            "description": "Words searched in the buyer name. Examples: \"Toulouse Métropole\", \"Région Occitanie\", \"CHU\", \"Ministère des Armées\".",
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Earliest publication date, inclusive: YYYY-MM-DD or relative such as \"7 days\" (7 days ago)."
          },
          "publishedTo": {
            "title": "Published until",
            "type": "string",
            "description": "Latest publication date, inclusive: YYYY-MM-DD or relative."
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 36500,
            "type": "integer",
            "description": "Shortcut used when \"Published from\" is empty: only notices published in the last N days."
          },
          "deadlineFrom": {
            "title": "Response deadline from",
            "type": "string",
            "description": "Earliest response deadline (date limite de réponse), inclusive: YYYY-MM-DD or relative such as \"+7 days\". Notices without a deadline (e.g. awards) are excluded when set."
          },
          "deadlineTo": {
            "title": "Response deadline until",
            "type": "string",
            "description": "Latest response deadline, inclusive: YYYY-MM-DD or relative such as \"+30 days\"."
          },
          "onlyOpen": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Keep only notices whose response deadline is in the future.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new notices (scheduled alerts)",
            "type": "boolean",
            "description": "Return only notices not delivered by a previous run with the same filters. The memory is kept in the named key-value store \"boamp-tenders-state\". Ideal for a daily schedule: you pay only for new notices.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of notices to return (newest first). Each notice is one charged event.",
            "default": 100
          },
          "includeNoticeDetails": {
            "title": "Include notice details",
            "type": "boolean",
            "description": "Parse the full notice: description, CPV codes, estimated and awarded value, lots, winners, buyer SIRET, email, phone, documents and submission links. Turn off for a lighter export with BOAMP index fields only.",
            "default": true
          },
          "includeRawNotice": {
            "title": "Include raw notice",
            "type": "boolean",
            "description": "Add a \"rawNotice\" object with the complete original notice (eForms or national schema) for custom parsing.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}