{
  "openapi": "3.0.1",
  "info": {
    "title": "BOAMP France : appels d’offres / tenders",
    "description": "FR : Avis BOAMP officiels, mots-clés stricts et filtres d’activité. Démo fictive par défaut. EN: Official French tenders, strict phrases and activity filters. Synthetic demo by default.",
    "version": "0.0",
    "x-build-id": "53arbIORwsNZPswuL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wavy_millpond~boamp-appels-offres-france/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wavy_millpond-boamp-appels-offres-france",
        "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/wavy_millpond~boamp-appels-offres-france/runs": {
      "post": {
        "operationId": "runs-sync-wavy_millpond-boamp-appels-offres-france",
        "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/wavy_millpond~boamp-appels-offres-france/run-sync": {
      "post": {
        "operationId": "run-sync-wavy_millpond-boamp-appels-offres-france",
        "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": [
              "demo",
              "live"
            ],
            "type": "string",
            "description": "Démo : données fictives sans collecte. Réel : appel de l’API publique BOAMP. / EN: Demo: synthetic data without collection. Live: official public BOAMP API.",
            "default": "demo"
          },
          "query": {
            "title": "Mots-clés",
            "pattern": "^[^\\u0000-\\u001f\\u007f]*$",
            "maxLength": 150,
            "type": "string",
            "description": "FR : Objet de l’avis. Vide : tous les objets. Par défaut : recherche ODSQL approximative/par préfixe. Avec strictQuery : expression de mots entiers contigus, sans distinction de casse/accents, ponctuation séparatrice, suffixes +/# littéraux. Ignoré en démo. / EN: Search notice title. Empty means all titles. Default: ODSQL fuzzy/prefix search. With strictQuery: adjacent whole-token phrase, case/accent insensitive; punctuation separates tokens, +/# word suffixes stay literal. Ignored in demo.",
            "default": ""
          },
          "departments": {
            "title": "Départements de publication",
            "maxItems": 20,
            "type": "array",
            "description": "Codes comme 75, 2A ou 974. Liste vide : France entière. Ce filtre vise le département de publication, pas nécessairement le lieu de prestation. Ignoré en démo. / EN: Publication department codes, e.g. 75, 2A, 974; not necessarily the work location. Empty: all France. Ignored in demo.",
            "items": {
              "type": "string",
              "pattern": "^(?:\\d{2}|2[ABab]|\\d{3})$"
            },
            "default": []
          },
          "daysBack": {
            "title": "Nombre de jours",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Fenêtre de publication incluant aujourd’hui, calculée en UTC. Ignorée en démo. / EN: Publication window including today, in UTC. Ignored in demo.",
            "default": 7
          },
          "maxItems": {
            "title": "Maximum de résultats",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Plafond de résultats uniques pour cette exécution. La démo produit un seul résultat. / EN: Maximum unique emitted results per run. Demo emits one synthetic row.",
            "default": 10
          },
          "onlyOpen": {
            "title": "Échéance encore ouverte",
            "type": "boolean",
            "description": "Conserver les avis dont la date limite de réponse connue est postérieure au début de la recherche. Les avis sans échéance connue sont exclus. Ignoré en démo. / EN: Keep known response deadlines later than the search start. Unknown deadlines excluded. Ignored in demo.",
            "default": true
          },
          "strictQuery": {
            "title": "Expression stricte / Strict phrase",
            "type": "boolean",
            "description": "FR : false conserve la recherche historique. true filtre localement l’objet par expression contiguë : traiteur exclut traitement et traiteurs. Accents ignorés, œ=oe, æ=ae ; apostrophes et tirets séparent les mots. C++ et C# restent distincts de C. Une requête non vide doit contenir un mot. Pas de syntaxe booléenne/regex. Scan borné, voir README. Ignoré en démo. / EN: false preserves legacy search. true matches a contiguous whole-token phrase in the title locally; traiteur excludes traitement/traiteurs. Accents folded, œ=oe, æ=ae; apostrophes/hyphens separate tokens. C++/C# differ from C. Nonempty query needs a word. No Boolean/regex syntax. Bounded scan; see README. Ignored in demo.",
            "default": false
          },
          "marketTypes": {
            "title": "Types de marchés / Market types",
            "maxItems": 3,
            "type": "array",
            "description": "FR : Valeurs officielles type_marche : TRAVAUX, FOURNITURES, SERVICES. OU dans la liste ; ET avec les autres filtres. Vide : aucun filtre. Ignoré en démo. / EN: Official type_marche values: TRAVAUX (works), FOURNITURES (supplies), SERVICES. OR within list, AND with other filters. Empty: no restriction. Ignored in demo.",
            "items": {
              "type": "string",
              "pattern": "^(?:[Tt][Rr][Aa][Vv][Aa][Uu][Xx]|[Ff][Oo][Uu][Rr][Nn][Ii][Tt][Uu][Rr][Ee][Ss]|[Ss][Ee][Rr][Vv][Ii][Cc][Ee][Ss])$"
            },
            "default": []
          },
          "descriptorCodes": {
            "title": "Descripteurs BOAMP / BOAMP descriptors",
            "maxItems": 20,
            "type": "array",
            "description": "FR : Codes officiels descripteur_code (chaînes de 1 à 6 chiffres), ex. 274 = Prestations de services, 33 = Bâtiment. Ce ne sont pas des codes CPV. OU dans la liste ; ET avec les autres filtres. Vide : aucun filtre. Code inconnu : aucun résultat. Ignoré en démo. / EN: Official descripteur_code strings (1–6 digits), e.g. 274 = Prestations de services, 33 = Bâtiment. These are not CPV codes. OR within list, AND with other filters. Empty: unrestricted. Unknown code: no results. Ignored in demo.",
            "items": {
              "type": "string",
              "pattern": "^\\d{1,6}$"
            },
            "default": []
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}