POST /api/eopbg/contracts/search
Price: 20 credits
Search contracts signed under Bulgarian public procurement on EOP by subject, buyer name or EIK, supplier name or EIK, contract type, procedure, CPV, contract value range and signing date, with the supplier and subcontractors with their EIKs, buyer, value, signing date, duration, lot and the tender each contract was awarded under. Newest publications first.
Each row is one contract award; a multi-lot tender yields one row per lot contract. Pass tender_id to eopbg/tenders for the offers and notices behind a contract, and a supplier registry number from here to eopbg/suppliers/search for that company's totals.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)count integer required — Max number of results (min: 1; max: 5000)keyword string nullable — Words in the contract subject (examples: "гориво"; minLength: 3)buyer_name string nullable — Words in the contracting authority name (examples: "община"; minLength: 3)buyer_registry_number string nullable — Contracting authority EIK/BULSTAT (examples: "000193371")supplier_name string nullable — Words in the supplier name (examples: "ПЕТРОЛ"; minLength: 3)supplier_registry_number string nullable — Supplier EIK/BULSTAT (examples: "831496285")contract_type string nullable — Nature of the contract (one of: "services", "supplies", "works")procedure_type string nullable — Procurement procedure (one of: "private", "open_procedure", "restricted_procedure", "competitive_procedure_with_negotiation", "negotiated_procedure_with_prior_call_for_competition", "competitive_dialogue", "innovation_partnership", "accelerated_restricted", "negotiated_procedure", "accelerated_negotiated", "design_contest", "public_competition", "direct_negotiation", "collecting_offers_with_notice", "invitation_to_specific_economic_operators", "mini_competition_within_fa", "qualification_system", "dynamic_purchasing_system", "market_research", "restricted_procedure_under_qs", "restricted_procedure_under_dps", "negotiated_with_prior_invitation_for_participation_under_qs", "collect_request", "restricted_design_contest")cpv string nullable — Main CPV code of the tender (examples: "09100000")value_min number nullable — Minimum contract value (examples: 1000000; min: 0)value_max number nullable — Maximum contract value (examples: 50000; min: 0)signed_from string nullable — Earliest contract signing date, inclusive (examples: "2026-06-01")signed_to string nullable — Latest contract signing date, inclusive (examples: "2026-06-30")@type string (default: "EopbgContractSummary")id string requirednumber string nullabletender_id string nullabletender_special_number string nullabletender_title string nullableparent_tender_special_number string nullablepublished_tender_id string nullablereport_id string nullablelot_number string nullablebuyer object nullable@type string (default: "EopbgBuyer")id string nullablename string requiredregistry_number string nullableimage string nullablesuppliers array (default: [])@type string (default: "EopbgSupplier")name string requiredregistry_number string nullablesubcontractors array (default: [])@type string (default: "EopbgSupplier")name string requiredregistry_number string nullableis_awarded_to_group boolean nullablevalue object nullable@type string (default: "EopbgValue")amount number nullableamount_min number nullableamount_max number nullablecurrency string nullablecontract_date string nullablepublished_at integer nullableduration_days integer nullableprocedure_type string nullablecontract_type string nullableaward_criterion string nullableaward_notice_form string nullablecpv array (default: [])is_outside_of_scope boolean nullableis_eu_funded boolean nullableis_eco boolean nullableis_social boolean nullableis_innovative boolean nullablecountry string (default: "BG")url string nullable422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — The entity was not found, or a precondition failed Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.