如何通过 API 访问欧盟和法国的公共招标(免费,无需认证)
发布: (2026年3月15日 GMT+8 06:10)
3 分钟阅读
原文: Dev.to
Source: Dev.to
没有人提及的官方来源
BOAMP(法国官方公共采购公告)和 TED(欧盟电子招标日报——欧盟官方来源)都提供免费、文档化的 API,零认证要求。无需 API 密钥、无需注册、也没有速率限制的烦恼。
- BOAMP:由 Opendatasoft 提供支持,返回干净的 JSON
- TED API v3:官方欧盟端点,覆盖全部 27 个成员国
两者合计每年仅法国就有约 50,000 条新公告。
直接使用它们的问题
原始 API 返回的格式不统一,预算字段埋在深层,截止日期结构晦涩,且没有行业标签。你必须编写上百行解析代码才能做任何有价值的事。
我构建的东西
我创建了 Tender Intelligence API,它是对上述两个来源的统一封装,提供结构化、干净的招标数据:
| 字段 | 示例 |
|---|---|
| Title | “IT infrastructure maintenance” |
| Buyer | City of Lyon |
| Budget | 120,000 € |
| Deadline | Oct 15 (44 days left) |
| Sector | IT / Software |
| Source | BOAMP / TED |
Python 快速示例
import requests
url = "https://tender-intelligence.p.rapidapi.com/search"
headers = {"X-RapidAPI-Key": "YOUR_KEY"}
params = {"q": "informatique"}
response = requests.get(url, headers=headers, params=params)
tenders = response.json()
for t in tenders["results"]:
print(f"{t['title']} — {t['budget']} — {t['days_left']} days left")可用的端点
GET /search?q=...– 在 BOAMP + TED 上并行进行关键词搜索GET /sectors– 15 个已标记行业的列表GET /sectors/{id}– 某一行业的所有招标(IT、健康、建筑…)GET /notices/{source}/{id}– 单条公告的完整详情GET /health– 上游来源状态
免费层可用
提供每月 100 次请求的免费计划,无需信用卡。付费计划起价 $29/月,提供无限访问。
👉 在 RapidAPI 上试用 Tender Intelligence API
GitHub 仓库也是公开的,欢迎贡献或自行部署。
