{
  "openapi": "3.0.1",
  "info": {
    "title": "French Public Tenders Scraper: BOAMP Alerts & DECP Winners",
    "description": "Daily alerts for new French public tenders (BOAMP) by keyword, department and notice type, plus who wins contracts (DECP) in your CPV codes, with SIRENE data on each winner and a winners leaderboard. Official open data, Licence Ouverte 2.0. No personal data. From $0.003 per notice.",
    "version": "0.1",
    "x-build-id": "gU8w7o4v9W0aUXOhZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rigel~fr-marches-publics-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rigel-fr-marches-publics-intel",
        "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/rigel~fr-marches-publics-intel/runs": {
      "post": {
        "operationId": "runs-sync-rigel-fr-marches-publics-intel",
        "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/rigel~fr-marches-publics-intel/run-sync": {
      "post": {
        "operationId": "run-sync-rigel-fr-marches-publics-intel",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "tenders",
              "awards"
            ],
            "type": "string",
            "description": "tenders = new notices; awards = who won which contracts.",
            "default": "tenders"
          },
          "keywords": {
            "title": "Keywords (tenders)",
            "type": "array",
            "description": "Full-text search in notice subject (OR).",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "French department codes, e.g. 69, 75, 2A.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types (tenders)",
            "type": "array",
            "description": "BOAMP 'nature' codes, e.g. APPEL_OFFRE, ATTRIBUTION, RECTIFICATIF. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "descriptorCodes": {
            "title": "BOAMP descriptor codes (tenders)",
            "type": "array",
            "description": "BOAMP descriptor codes (e.g. 415 = Télésurveillance).",
            "items": {
              "type": "string"
            }
          },
          "publishedWithinDays": {
            "title": "Published within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Published within (days).",
            "default": 7
          },
          "openOnly": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Only notices whose response deadline is still in the future. Award notices (ATTRIBUTION) and rectifications are excluded unless you list them in notice types. A missing deadline is not treated as open.",
            "default": true
          },
          "onlyNew": {
            "title": "Monitoring: only return tenders not seen in previous runs",
            "type": "boolean",
            "description": "Use with a Schedule for daily alerts.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Named key-value store used to remember seen tenders. 1–63 characters: letters, digits, '.', '_' or '-'."
          },
          "cpvPrefixes": {
            "title": "CPV code prefixes (awards)",
            "type": "array",
            "description": "e.g. 72 (IT services), 4542 (joinery).",
            "items": {
              "type": "string"
            }
          },
          "awardedSince": {
            "title": "Awarded since (awards)",
            "type": "string",
            "description": "YYYY-MM-DD. Default: last 365 days. Any other format stops the run with an error."
          },
          "minAmountEur": {
            "title": "Min amount € (awards)",
            "minimum": 0,
            "type": "integer",
            "description": "Min amount € (awards)."
          },
          "enrichWinners": {
            "title": "Enrich winners with SIRENE company data",
            "type": "boolean",
            "description": "Add SIRENE company details for each winner. Privacy masking (natural persons, sole traders, non-diffusible or unverifiable winners) always applies, even when this is off.",
            "default": true
          },
          "winnersSummary": {
            "title": "Add winners leaderboard",
            "type": "boolean",
            "description": "Add a winners leaderboard. On by default. Each row is a winner-summary event at $0.005, computed on up to 500 matching contracts (wider than the award rows returned). Framework-agreement amounts are often ceilings.",
            "default": true
          },
          "topWinners": {
            "title": "Leaderboard size",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Leaderboard size.",
            "default": 25
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Max items.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}