{
  "openapi": "3.0.1",
  "info": {
    "title": "France Contract Awards - BOAMP Attributions",
    "description": "Who won which French public contract: buyer, winner, subject, department. Marchés publics attribués, veille concurrentielle.",
    "version": "0.1",
    "x-build-id": "tc2IM1NhsfuaZ0diN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zkrobotics~boamp-attributions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zkrobotics-boamp-attributions",
        "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/zkrobotics~boamp-attributions/runs": {
      "post": {
        "operationId": "runs-sync-zkrobotics-boamp-attributions",
        "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/zkrobotics~boamp-attributions/run-sync": {
      "post": {
        "operationId": "run-sync-zkrobotics-boamp-attributions",
        "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": "Mots-clés",
            "type": "array",
            "description": "Recherchés dans l'objet du marché (un seul suffit). Vide = tous.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Départements",
            "type": "array",
            "description": "Codes de départements, ex. 59, 62, 75, 2A.",
            "items": {
              "type": "string"
            }
          },
          "contractTypes": {
            "title": "Type de marché",
            "type": "array",
            "description": "Travaux, services ou fournitures. Vide = tous.",
            "items": {
              "type": "string",
              "enum": [
                "TRAVAUX",
                "SERVICES",
                "FOURNITURES"
              ],
              "enumTitles": [
                "Travaux",
                "Services",
                "Fournitures"
              ]
            }
          },
          "winnerName": {
            "title": "Nom de l'entreprise gagnante",
            "type": "string",
            "description": "Optionnel : suivre les marchés gagnés par un concurrent. Cherche aussi dans le texte des avis nationaux."
          },
          "publishedSinceDays": {
            "title": "Publiés depuis (jours)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Ne garder que les avis publiés ces N derniers jours.",
            "default": 30
          },
          "onlyWithWinner": {
            "title": "Seulement les avis qui nomment le gagnant",
            "type": "boolean",
            "description": "Ne garder que les avis dont le gagnant est connu. Pour les avis nationaux, le gagnant est lu dans le texte de l'avis (le champ officiel est vide).",
            "default": true
          },
          "minValue": {
            "title": "Montant minimum (€ HT)",
            "minimum": 0,
            "type": "integer",
            "description": "Montant attribué, ou estimé à défaut."
          },
          "includeUnknownValue": {
            "title": "Garder les avis sans montant",
            "type": "boolean",
            "description": "Beaucoup d'avis ne publient pas de montant. Décochez pour ne garder que ceux qui en ont un.",
            "default": true
          },
          "cpvPrefixes": {
            "title": "Codes CPV (début du code)",
            "type": "array",
            "description": "Ex. 4531 (installations électriques), 9091 (nettoyage), 72 (informatique). Vide = tous.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Seulement les nouveaux avis (veille)",
            "type": "boolean",
            "description": "Ne renvoie que les avis jamais renvoyés lors d'un précédent lancement avec les mêmes filtres. Idéal avec un lancement programmé chaque jour.",
            "default": false
          },
          "winnerSiret": {
            "title": "SIRET de l'entreprise gagnante",
            "type": "string",
            "description": "Optionnel : suivre un concurrent par son SIRET (14 chiffres)."
          },
          "maxItems": {
            "title": "Nombre maximum de résultats",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Plafond pour maîtriser le coût.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}