{
  "openapi": "3.0.1",
  "info": {
    "title": "France Public Tenders (BOAMP) — Calls for Tender & Awards",
    "description": "Search French public tenders from the official BOAMP open data: keywords, department, CPV code, works/supplies/services, open calls only. Buyer, SIRET, deadline, estimated value, CPV, contact. Watch mode: only new notices.",
    "version": "0.1",
    "x-build-id": "gdbBfFDSnL085Q6OE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/openregistry~france-boamp-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-openregistry-france-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/openregistry~france-boamp-tenders/runs": {
      "post": {
        "operationId": "runs-sync-openregistry-france-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/openregistry~france-boamp-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-openregistry-france-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": "string",
            "description": "Words searched in the purpose of the contract (notices are in French), e.g. nettoyage, maintenance informatique, voirie. Leave empty to list everything that matches the filters."
          },
          "searchWholeNotice": {
            "title": "Search the whole notice",
            "type": "boolean",
            "description": "Search the keywords in the full notice (description, buyer, lots…) instead of the purpose only. More results, less precise.",
            "default": false
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "French department codes, e.g. 75, 35, 13, 2A, 971. A notice can be filed under several departments.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes. A code includes its sub-codes: 72000000 = all IT services, 45000000 = all construction work, 9091 = cleaning services. Notices whose CPV codes do not match are skipped and never charged.",
            "items": {
              "type": "string"
            }
          },
          "descriptors": {
            "title": "BOAMP descriptors",
            "type": "array",
            "description": "BOAMP subject descriptors, by code (e.g. 163) or by word (e.g. Informatique, Nettoyage, Bâtiment).",
            "items": {
              "type": "string"
            }
          },
          "marketTypes": {
            "title": "Contract type",
            "type": "array",
            "description": "Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "TRAVAUX",
                "FOURNITURES",
                "SERVICES"
              ],
              "enumTitles": [
                "Works",
                "Supplies",
                "Services"
              ]
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Calls for tender are the ones you can still bid on.",
            "items": {
              "type": "string",
              "enum": [
                "APPEL_OFFRE",
                "ATTRIBUTION",
                "RECTIFICATIF",
                "PRE-INFORMATION",
                "INTENTION_CONCLURE",
                "MODIFICATION",
                "ANNULATION",
                "EX_ANTE_VOLONTAIRE"
              ],
              "enumTitles": [
                "Calls for tender (avis de marché)",
                "Award notices (résultats)",
                "Corrections (rectificatifs)",
                "Prior information",
                "Intention to conclude",
                "Contract modifications",
                "Cancellations",
                "Voluntary ex-ante transparency"
              ]
            },
            "default": [
              "APPEL_OFFRE"
            ]
          },
          "procedureFamilies": {
            "title": "Notice family",
            "type": "array",
            "description": "Size class of the notice. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "MAPA",
                "FNS",
                "JOUE",
                "DSP"
              ],
              "enumTitles": [
                "MAPA — adapted procedures (mostly under €90k)",
                "From €90k to the EU thresholds",
                "Above EU thresholds (also in the EU Official Journal)",
                "Public service concessions (DSP)"
              ]
            }
          },
          "buyerName": {
            "title": "Buyer name contains",
            "type": "string",
            "description": "Words searched in the buyer name, e.g. Rennes, CHU, Département."
          },
          "openForBidsOnly": {
            "title": "Only calls still open",
            "type": "boolean",
            "description": "Keep only notices whose response deadline is today or later.",
            "default": true
          },
          "publishedWithinDays": {
            "title": "Published within the last … days",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only notices published in the last N days."
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Earliest publication date (YYYY-MM-DD)."
          },
          "publishedTo": {
            "title": "Published until",
            "type": "string",
            "description": "Latest publication date (YYYY-MM-DD)."
          },
          "deadlineBefore": {
            "title": "Deadline before",
            "type": "string",
            "description": "Keep notices whose deadline is on or before this date (YYYY-MM-DD)."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new notices since the last run (watch mode)",
            "type": "boolean",
            "description": "Remembers the notices already delivered for this search and returns only new ones. Schedule the Actor daily for a tender alert. The first run returns the current matching notices.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional name for the watch memory, e.g. it-brittany. With a name you can change the filters and keep the history; without one, each set of filters has its own memory."
          },
          "maxResults": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The run stops once this many notices are delivered, so you control the cost. Newest notices come 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}