Skip to content

Filtering

The search and alert results endpoints accept a rich set of optional filters. All filters can be combined freely.

json
{ "text": "highway construction Spain" }

Status

ValueMeaning
PublicadaOpen for bids
AdjudicadaAwarded
ResueltaResolved
FormalizadaContract signed
CerradaClosed
json
{ "status": ["Publicada", "Adjudicada"] }

Deadline

json
{ "isOnlyWithinDeadline": true }

CPV codes

json
{ "cpvs": ["45000000-7", "72000000-5"] }

Locations

json
{ "locations": ["country/ES"] }
{ "locations": ["town/Madrid", "town/Barcelona"] }

Budget & amounts

json
{
  "minBudget": 50000,
  "maxBudget": 1000000
}

Dates

Filter pairDescription
minPublicationDate / maxPublicationDateWhen the tender was published
minDeadlineDate / maxDeadlineDateSubmission deadline
minAwardingDate / maxAwardingDateWhen the tender was awarded
minLastUpdateDate / maxLastUpdateDateLast time the record was updated
json
{
  "minPublicationDate": "2024-01-01T00:00:00Z",
  "maxDeadlineDate": "2024-06-30T23:59:59Z"
}

Sorting

ValueDescription
by-published-datePublication date (default)
by-relevanceRelevance to text query
by-due-dateSubmission deadline
by-budgetBudget amount
json
{ "sort": "by-due-date", "isDescendent": false }

Full example

bash
curl -X POST https://api-rest.tendios.com/api/v1/tenders/search \
  -H "api-key: tend_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "software development",
    "status": ["Publicada"],
    "locations": ["country/ES"],
    "cpvs": ["72000000-5"],
    "minBudget": 50000,
    "isOnlyWithinDeadline": true,
    "sort": "by-due-date",
    "page": 1,
    "pageSize": 25
  }'

© Tendios