{
  "openapi": "3.0.1",
  "info": {
    "title": "French Architecture Competitions (BOAMP)",
    "description": "Weekly watch of French architecture competitions and maîtrise d'œuvre tenders from the official BOAMP open data, with structured fields extracted from the notice text: prime, works budget, rendering level (ESQ+, APS), teams admitted, surface, required team competences.",
    "version": "0.1",
    "x-build-id": "9boXnxbuKj44ewvUs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/radaxx_exe~boamp-concours-architecture/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-radaxx_exe-boamp-concours-architecture",
        "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/radaxx_exe~boamp-concours-architecture/runs": {
      "post": {
        "operationId": "runs-sync-radaxx_exe-boamp-concours-architecture",
        "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/radaxx_exe~boamp-concours-architecture/run-sync": {
      "post": {
        "operationId": "run-sync-radaxx_exe-boamp-concours-architecture",
        "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": {
          "daysBack": {
            "title": "Days to scan",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Number of publication days to scan, today included (Paris time). 7 = the last week. Ignored when 'Published from' is set.",
            "default": 7
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "First publication day (YYYY-MM-DD). Leave empty to use 'Days to scan'."
          },
          "dateTo": {
            "title": "Published until",
            "type": "string",
            "description": "Last publication day, included (YYYY-MM-DD). Defaults to today."
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "'concours' = design competitions (concours de maîtrise d'œuvre). 'moe' = other maîtrise d'œuvre / architecture tenders (MAPA, procédure adaptée…).",
            "items": {
              "type": "string",
              "enum": [
                "concours",
                "moe"
              ],
              "enumTitles": [
                "Concours (design competitions)",
                "Other maîtrise d'œuvre tenders"
              ]
            },
            "default": [
              "concours",
              "moe"
            ]
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Keep notices located in these French regions. Empty = all of France.",
            "items": {
              "type": "string",
              "enum": [
                "Auvergne-Rhône-Alpes",
                "Bourgogne-Franche-Comté",
                "Bretagne",
                "Centre-Val de Loire",
                "Corse",
                "Grand Est",
                "Hauts-de-France",
                "Île-de-France",
                "Normandie",
                "Nouvelle-Aquitaine",
                "Occitanie",
                "Pays de la Loire",
                "Provence-Alpes-Côte d'Azur",
                "Outre-mer"
              ]
            }
          },
          "domains": {
            "title": "Domains (other MOE tenders)",
            "type": "array",
            "description": "For maîtrise d’œuvre tenders other than competitions: keep these domains. Default keeps buildings, public spaces and unclassified notices, and drops pure infrastructure (roads, networks, water). Competitions are always kept.",
            "items": {
              "type": "string",
              "enum": [
                "bâtiment",
                "espaces publics",
                "infrastructure",
                "non classé"
              ],
              "enumTitles": [
                "Buildings",
                "Public spaces / landscape",
                "Infrastructure (roads, networks, water)",
                "Unclassified"
              ]
            },
            "default": [
              "bâtiment",
              "espaces publics",
              "non classé"
            ]
          },
          "departments": {
            "title": "Départements",
            "type": "array",
            "description": "Keep notices in these départements (e.g. 33, 75, 2A, 974). Empty = no filter.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords in the title",
            "type": "array",
            "description": "Keep notices whose title contains any of these words (accent- and case-insensitive), e.g. collège, groupe scolaire, réhabilitation.",
            "items": {
              "type": "string"
            }
          },
          "minPrime": {
            "title": "Minimum prime (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep competitions paying at least this prime per team. Notices where no prime was found are excluded when this is set."
          },
          "minWorksBudget": {
            "title": "Minimum works budget (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep notices whose works budget (enveloppe travaux) is at least this amount. Notices without a budget are excluded when this is set."
          },
          "onlyOpen": {
            "title": "Only open calls",
            "type": "boolean",
            "description": "Drop notices whose application deadline has passed.",
            "default": true
          },
          "includeCorrections": {
            "title": "Include corrections (avis rectificatifs)",
            "type": "boolean",
            "description": "Also return correction notices about architecture tenders.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound on the number of notices returned (and charged).",
            "default": 500
          },
          "generateMap": {
            "title": "Generate a map (PNG)",
            "type": "boolean",
            "description": "Saves a static map of the returned competitions as MAP in the key-value store: one numbered point per competition (numbers match the DIGEST), size by prime, warm colour when the deadline is this week. Communes are geocoded with the IGN Géoplateforme; département centre as fallback.",
            "default": true
          },
          "mapBranding": {
            "title": "Map heading",
            "type": "string",
            "description": "Optional line shown above the map title (e.g. your newsletter name)."
          },
          "mapFooter": {
            "title": "Map footer",
            "type": "string",
            "description": "Footer text of the map. Keep the BOAMP source mention.",
            "default": "Source : BOAMP (DILA), Licence Ouverte 2.0"
          },
          "debugRawSample": {
            "title": "Diagnostic: save raw notices",
            "type": "boolean",
            "description": "Saves the raw BOAMP records of matching notices as RAW_SAMPLE in the key-value store, to tune the extractor. Leave off in normal use.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}