{
  "openapi": "3.0.1",
  "info": {
    "title": "France Tender Radar: BOAMP Tenders in English, Score & AI",
    "description": "Unofficial tool by LAX Labs. Not affiliated with or endorsed by DILA. French BOAMP tenders incl. MAPA/FNS, by keyword, CPV and date. 0–100 score; optional English AI summary (your key). Licence Ouverte 2.0. Personal names and contact details are filtered automatically (best effort, see Limitations).",
    "version": "0.1",
    "x-build-id": "cijcseeEsfxfqurQ1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laxlabs~france-tender-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laxlabs-france-tender-radar",
        "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/laxlabs~france-tender-radar/runs": {
      "post": {
        "operationId": "runs-sync-laxlabs-france-tender-radar",
        "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/laxlabs~france-tender-radar/run-sync": {
      "post": {
        "operationId": "run-sync-laxlabs-france-tender-radar",
        "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": "array",
            "description": "Words or phrases searched by the official BOAMP API full-text search (any one matches), in French or English. Tip: French words find more, e.g. \"logiciel\", \"nettoyage\", \"maintenance\". Filtering happens before any AI call. Leave empty to get every notice that matches the other filters.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "CPV codes (8 digits, check digit optional). A code matches its sub-codes, e.g. 72000000 matches 72212000. Applied to the CPV codes published in each notice; notices without a published CPV code are skipped when you set this.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Départements",
            "type": "array",
            "description": "French département codes of the notice, e.g. 75 (Paris), 69 (Rhône), 13 (Bouches-du-Rhône), 2A / 2B (Corse), 971–976 (overseas). Filter applied by the official API. Leave empty for all of France.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "families": {
            "title": "Notice families",
            "type": "array",
            "description": "BOAMP notice families. Leave empty for all. MAPA and FNS are the below-EU-threshold notices that TED does not carry.",
            "items": {
              "type": "string",
              "enum": [
                "JOUE",
                "FNS",
                "MAPA",
                "DSP",
                "DIVERS"
              ],
              "enumTitles": [
                "JOUE – EU-threshold notices (also published in the EU Official Journal)",
                "FNS – national forms (below EU thresholds)",
                "MAPA – adapted procedure (small contracts)",
                "DSP – concessions / public service delegations",
                "DIVERS – other notices"
              ]
            },
            "default": []
          },
          "contractTypes": {
            "title": "Contract types",
            "type": "array",
            "description": "Type of contract. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "SERVICES",
                "FOURNITURES",
                "TRAVAUX"
              ],
              "enumTitles": [
                "Services",
                "Supplies (fournitures)",
                "Works (travaux)"
              ]
            },
            "default": []
          },
          "stages": {
            "title": "Stages",
            "type": "array",
            "description": "Which notice stages to return. Default: open tenders only.",
            "items": {
              "type": "string",
              "enum": [
                "planning",
                "tender",
                "award",
                "change"
              ],
              "enumTitles": [
                "Planning / prior information",
                "Open tenders (appels d'offres)",
                "Award notices (attributions)",
                "Corrections (rectificatifs)"
              ]
            },
            "default": [
              "tender"
            ]
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Start of the publication window (BOAMP dateparution): YYYY-MM-DD or relative like \"3 days\". Default: last day. The window can be at most 31 days.",
            "default": "1 day"
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Latest publication date: YYYY-MM-DD, \"today\" or a relative value like \"1 day\".",
            "default": "today"
          },
          "onlyOpen": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Skip notices whose submission deadline has already passed. Notices without a deadline are kept.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new tenders (for schedules)",
            "type": "boolean",
            "description": "Remember which notices this exact search already delivered (stored as notice IDs in a named key-value store in your account) and return only new ones on the next run. Ideal for a daily schedule.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on tenders delivered in this run.",
            "default": 100
          },
          "minRelevanceScore": {
            "title": "Minimum relevance score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only deliver tenders whose relevance score (0-100) is at least this value. Tenders below the threshold are skipped.",
            "default": 0
          },
          "minValue": {
            "title": "Minimum value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip notices whose published estimated value is below this (EUR). Default 0 = no lower limit. Most BOAMP notices do not publish a value; those are kept.",
            "default": 0
          },
          "maxValue": {
            "title": "Maximum value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip notices whose published value is above this (EUR). Default 100,000,000,000 = no upper limit. Notices without a published value are kept.",
            "default": 100000000000
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Each page holds up to 100 notices that already match your filters (newest first). Default 3 pages = up to 300 notices. Raise it for large backfills; a busy day has about 400 notices.",
            "default": 3
          },
          "buyerProfile": {
            "title": "Your company profile (for scoring)",
            "type": "string",
            "description": "Describe what your company sells and which tenders you want to win. Used by the free deterministic relevance score and, if enabled, by the AI analysis. Do not include personal data."
          },
          "enableAi": {
            "title": "AI summary and AI relevance (bring your own key)",
            "type": "boolean",
            "description": "Add an English AI summary (which also translates the French notice), AI relevance score with reason and key requirements to tenders that already passed your filters and minimum score, using YOUR OWN LLM provider key (BYOK). Your provider bills you for the tokens; there is no extra Actor fee for AI. Off by default. The original French text is always kept in its own fields and the AI fields are labelled (ai_generated).",
            "default": false
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "openrouter",
              "openai",
              "gemini",
              "groq",
              "custom"
            ],
            "type": "string",
            "description": "Any OpenAI-compatible provider. OpenRouter gives access to many low-cost models (and rate-limited free variants ending in :free) with one key; Google Gemini offers a free tier.",
            "default": "openrouter"
          },
          "aiModel": {
            "title": "AI model",
            "type": "string",
            "description": "Model ID at your provider. Leave empty for the low-cost default: google/gemini-2.5-flash-lite (OpenRouter), gpt-5-nano (OpenAI), gemini-2.5-flash-lite (Gemini), openai/gpt-oss-20b (Groq).",
            "default": ""
          },
          "aiBaseUrl": {
            "title": "Custom API base URL",
            "type": "string",
            "description": "Only for provider \"custom\": https base URL of an OpenAI-compatible API (the Actor calls {base}/chat/completions).",
            "default": ""
          },
          "aiCredentials": {
            "title": "Your AI provider key (secret)",
            "type": "object",
            "description": "Encrypted secret. Enter a JSON object with your own key, for example {\"apiKey\": \"<your provider key>\"}. It is used only for calls to your AI provider during this run and is never logged, stored or written to the output."
          },
          "aiLanguage": {
            "title": "AI summary language",
            "enum": [
              "en"
            ],
            "type": "string",
            "description": "The AI summary is written in English (the licence attribution for AI output states an English translation).",
            "default": "en"
          },
          "maxAiAnalyses": {
            "title": "Maximum AI analyses",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on AI analyses in this run. Each analysis uses your own provider tokens. Remaining tenders are delivered without an AI summary.",
            "default": 50
          },
          "minRelevanceScoreForAi": {
            "title": "Minimum relevance score for AI",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "AI runs only on tenders that already passed all your filters AND have at least this deterministic relevance score (0-100). Use it to spend AI only on strong matches; lower-scored tenders are still delivered, without AI.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}