Documentation

List procurements, or look up one notice by slug

View as Markdown

GET/v1/notices

Needs an API key, except with ?slug=. How to get one.

curl "https://api.fentlig.se/v1/notices" \
  -H "Authorization: Bearer $FENTLIG_API_KEY"

Parameters

ParameterInTypeNotes
pageoptionalqueryintegermin 1 · default 1
limitoptionalqueryinteger1–50 · default 20
countryoptionalquerystring
foreign_buyersoptionalqueryenumexcludeinclude
statusoptionalquerystring[]
regionoptionalquerystring[]
nationwideoptionalqueryenumincludeexclude
cpvoptionalquerystring[]
buyeroptionalquerystring[]
buyer_idoptionalquerystring[]
searchoptionalquerystring
document_searchoptionalquerystring
deadline_afteroptionalquerystringdate-time
deadline_beforeoptionalquerystringdate-time
publication_afteroptionalquerystringdate-time
publication_beforeoptionalquerystringdate-time
min_valueoptionalquerynumber
max_valueoptionalquerynumber
exclude_past_deadlineoptionalqueryboolean
closed_without_awardoptionalqueryboolean
sortoptionalqueryenumpublication_descdeadline_ascvalue_desc
evaluation_methodoptionalquerystring[]
quality_weight_minoptionalqueryinteger0–100
contract_months_minoptionalqueryintegermin 0
contract_months_maxoptionalqueryintegermin 0
slugoptionalquerystring

Response 200

A page of results

FieldTypeNotes
dataobject[]
data[].idstringuuid
data[].slugstring
data[].titlestring
data[].buyerNamestringnullable
data[].buyerIdstringnullableuuid
data[].buyerUnitobjectnullable
data[].buyerUnit.namestring
data[].buyerUnit.kindenumnullablejoint_centrenull
data[].buyerUnit.idstringnullable
data[].statusenumplannedopenclosedconcluded
data[].publicationDatestringdate-time
data[].deadlineDatestringnullabledate-time
data[].regionCodesstring[]
data[].mainCpvobjectnullable
data[].mainCpv.codestring
data[].mainCpv.labelstringnullable
data[].mainCpv.isMainboolean
data[].procedureCodestringnullable
data[].estimatedValuenumbernullable
data[].currencystringnullable
data[].sourcestring
data[].sourceUrlstringnullable
data[].documentMatchobjectnullable
data[].documentMatch.documentIdstringuuid
data[].documentMatch.snippetstringnullable
data[].documentMatch.tooLongToQuoteboolean
paginationobject
pagination.pagenumber
pagination.limitnumber
pagination.totalnumber
pagination.totalPagesnumber
pagination.hasNextPageboolean
pagination.hasPreviousPageboolean
documentSearchobjectnullable
documentSearch.withDocumentsintegermin 0
documentSearch.inScopeintegermin 0
coverageobject
coverage.sourcesstring[]
coverage.attributionobject[]
coverage.attribution[].sourcestring
coverage.attribution[].textstring
coverage.dataAsOfstringnullabledate-time
coverage.isCompleteenumfalse
coverage.notestring

A single object

FieldTypeNotes
dataobject
data.idstringuuid
data.slugstring
data.titlestring
data.buyerNamestringnullable
data.buyerIdstringnullableuuid
data.buyerUnitobjectnullable
data.buyerUnit.namestring
data.buyerUnit.kindenumnullablejoint_centrenull
data.buyerUnit.idstringnullable
data.statusenumplannedopenclosedconcluded
data.publicationDatestringdate-time
data.deadlineDatestringnullabledate-time
data.regionCodesstring[]
data.mainCpvobjectnullable
data.mainCpv.codestring
data.mainCpv.labelstringnullable
data.mainCpv.isMainboolean
data.procedureCodestringnullable
data.estimatedValuenumbernullable
data.currencystringnullable
data.sourcestring
data.sourceUrlstringnullable
data.descriptionstringnullable
data.cpvCodesobject[]
data.cpvCodes[].codestring
data.cpvCodes[].labelstringnullable
data.cpvCodes[].isMainboolean
data.regionsobject[]
data.regions[].codestring
data.regions[].namestringnullable
data.noticeTypestring
data.publicationNumberstringnullable
data.frameworkMaxValuenumbernullable
data.awardOutcomeobjectnullable
data.awardOutcome.awardDatestringnullabledate-time
data.awardOutcome.bidCountintegernullablemin 0
data.awardOutcome.awardedValuenumbernullable
data.awardOutcome.currencystringnullable
data.awardOutcome.lotCountintegermin 0
data.awardOutcome.lotsAwardedintegernullablemin 0
data.awardOutcome.lotsNotAwardedintegernullablemin 0
data.awardOutcome.lotsUndecidedintegernullablemin 0
data.relatedobject[]
data.related[].idstringuuid
data.related[].slugstring
data.related[].titlestring
data.related[].statusenumplannedopenclosedconcluded
data.related[].publicationDatestringdate-time
data.depthWithheldboolean
data.resultPublishedElsewhereboolean
data.resultNoticeCountintegermin 0
data.resultNoticesobject[]
data.resultNotices[].idstringuuid
data.resultNotices[].slugstring
data.resultNotices[].titlestring
data.resultNotices[].statusenumplannedopenclosedconcluded
data.resultNotices[].publicationDatestringdate-time
data.listedNoticeobjectnullable
data.listedNotice.idstringuuid
data.listedNotice.slugstring
data.listedNotice.statusenumplannedopenclosedconcluded
data.listedNotice.deadlineDatestringnullabledate-time
coverageobject
coverage.sourcesstring[]
coverage.attributionobject[]
coverage.attribution[].sourcestring
coverage.attribution[].textstring
coverage.dataAsOfstringnullabledate-time
coverage.isCompleteenumfalse
coverage.notestring

Failures

  • 400A parameter could not be read, the search cannot run as written, or the page is past the limit: `(page - 1) x limit` must be below 1000. `detail` says which.
  • 401The API key sent is unknown, revoked or expired. Send a valid key, or none on an operation that needs none.
  • 403No API key was sent, or the key's scopes or its workspace's plan do not cover this query. `detail` says which, and names the scope when one is missing.
  • 404No published notice has the slug in `?slug=`
  • 429Too many requests in the current window, from this key or, without a key, from this address. Wait the number of seconds in `Retry-After`, then send the request again.

Every one is an RFC 9457 problem document carrying a stable code. See the error reference.