Docs
Four GET routes and one tool endpoint. All answers are JSON.
Routes
-
List notices, newest first
-
One notice by id
-
Plans and their limits
-
Your plan and calls today
Every answer has the same shape: ok, data, error, meta. On an error ok is false and error holds one plain line.
The machine readable description is at /openapi.json (OpenAPI 3.1).
Filters
All filters on /v1/opportunities are optional and combine.
source-tedorgrants.country- 3 letter code, likeDEU.code- start of a classification code, digits and dots, like45or93.224.q- text in the title or the buyer name, 100 characters or fewer.since- published on or after this date, like2026-01-31.deadline_after- deadline after this date.limit- rows per page, capped by your plan. Default 25.cursor- the value ofmeta.nextCursorfrom the page before.
Keys
Send your key in the x-api-key header, or as Authorization: Bearer YOUR_KEY. A key that is not valid gets status 401.
A key from a paid plan works for 30 days from the moment it is shown. After that it gets status 401 with the line This API key has expired. There is no auto renewal: a new payment gives a new key. /v1/me shows the end date as expires, or null for a key with no end date.
Calls without a key run in sample mode: the latest rows only, no paging, and a daily limit per caller address.
Limits
| Plan | Calls per day | Rows per page | History, days |
|---|---|---|---|
| No key (sample) | 30 | 5 | 7 |
| Free | 100 | 25 | 7 |
| Starter | 5000 | 100 | all |
| Pro | 50000 | 500 | all |
Counted calls carry x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset (Unix seconds). Over the limit the status is 429. Counts reset at 00:00 UTC. /v1/plans and /v1/me are not counted.
Agent tools (MCP)
POST /mcp is a Model Context Protocol server over Streamable HTTP. It is stateless, answers plain JSON and serves protocol versions 2026-07-28, 2025-11-25, 2025-06-18 and 2025-03-26. It takes the same key headers. Only tool calls are counted, one count per call, against the same daily limit.
search_opportunities- the list route as a tool, with the same filters.get_opportunity- one notice byid.
-
Call a tool
curl -X POST https://feed.b4battle.com/mcp -H "content-type: application/json" -H "x-api-key: YOUR_KEY" -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_opportunities","arguments":{"country":"DEU","limit":3}}}'