Look-alike search starts from one tender and returns other tenders that are semantically similar. It is useful for expanding a shortlist when you have found a strong opportunity but want more like it.
1. Start from a tender
You need a tender (lot) ID. If you only have a saved-search result, the id field is already the tender ID.
curl -s "$KOSMOBIDS_BASE_URL/tenders/$TENDER_ID" \
-H "x-api-key: $KOSMOBIDS_API_KEY" | jq
Look-alike data is global procurement data. These endpoints are not company-scoped, and a company ID is not sent.
2. Request look-alikes
curl -s -X POST "$KOSMOBIDS_BASE_URL/tenders/$TENDER_ID/look-alike" \
-H "x-api-key: $KOSMOBIDS_API_KEY" \
-H "content-type: application/json" \
-d '{
"criteria": {
"submissionDeadlineAfter": "2026-12-01",
"contractingCountry": ["DE", "AT"]
},
"maxResults": 25,
"onlyActiveTenders": true,
"excludeSameSource": true,
"grade": false
}' | jq
| Field | Default | Meaning |
|---|---|---|
criteria |
none | Optional filters applied to the candidate pool. Uses the same shape as search criteria. |
maxResults |
25 |
1–100. There is no pagination beyond this limit. |
onlyActiveTenders |
true |
Exclude tenders whose submission deadline has passed. |
excludeSameSource |
true |
Exclude other lots of the same source tender. |
grade |
false |
Run an LLM look-alike check on each result. |
3. Read the results
{
"data": {
"results": [
{
"id": "tender-id",
"score": 0.87,
"match": true,
"lot_title": "Managed cloud operations",
"lot_description": "Operations and support for a public cloud estate.",
"tender_title": "Cloud services framework",
"tender_description": "A multi-lot framework for cloud services.",
"source_tender_id": "123456-2026",
"submissionDate": "2026-12-15T12:00:00.000Z",
"country": "DE",
"urls": [{ "url": "https://example.com/notice" }]
}
]
},
"error": null
}
| Field | Meaning |
|---|---|
id |
The similar tender (lot) ID. Hydrate it with GET /tenders/:id. |
score |
Semantic similarity score. |
match |
Present when grading was requested. |
lot_title / lot_description |
The candidate lot's content. |
tender_title / tender_description |
The notice-level title and description, when available. |
source_tender_id |
The notice-level identifier shared by lots. |
submissionDate |
Deadline, when available. |
country |
Contracting country code, when available. |
urls |
Source URLs for the notice. |
4. Decide whether to grade
grade: false is fast and cheap: it returns the semantic ranking. grade: true adds an LLM judgement per result and marks each result with match. It is slower and consumes LLM tokens.
Use grading when:
- You need to separate "same industry" from "same scope".
- You are about to spend human review time on the results.
- The semantic score alone is ambiguous.
Leave it off when you are exploring or when you will qualify the results yourself.
5. Deduplicate and expand
excludeSameSource: trueremoves other lots from the same notice. Set it tofalseif you want to see sibling lots.- Results can still share a
source_tender_idwhenexcludeSameSourceisfalse. Deduplicate by that field if you need notice-level uniqueness. - To go deeper, hydrate the results and run look-alike again from a strong candidate, or promote the pattern into a saved search.
Errors
404means the source tender does not exist.422means the criteria ormaxResultsfailed validation.502or503means the internal search service failed or is unavailable; retry with backoff.