POST /api/kenyappip/contracts/search
Price: 20 credits
Search contracts awarded through Kenyan public tenders on tenders.go.ke by keyword, supplier, buyer, tender, contract number, financial year, AGPO group, amount, award and start dates, termination and variation. Returns the contract with its supplier, buyer, the tender it was awarded under, and the termination or variation record where one was filed.
This is the award side of the portal: every row is a signed contract with `amount` in KES and the winning `supplier`, and `tender.id` links back to kenyappip/tenders for the bids it beat. `amount` filters on the exact figure only; there is no range. `awarded` and `started` take a year, a month or a day. Name filters match substrings, so `supplier: "limited"` returns every limited company. `terminated_only` rows carry `termination` (reason, date, amount, completed percent); `amended_only` rows carry `variation` (old and new price, dates and periods) on most rows, null where the buyer only flagged the contract.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)query string nullable — Words matched against the tender title and reference, contract number, supplier and buyer names (examples: "road", "RASISA"; minLength: 1)supplier string nullable — Part of the awarded supplier name (examples: "limited"; minLength: 1)supplier_id integer nullable — Supplier id (examples: 159743; min: 1)buyer string nullable — Part of the procuring entity name (examples: "Kenya Urban Roads Authority"; minLength: 1)buyer_id integer nullable — Procuring entity id as returned by kenyappip/buyers/search (examples: 5390; min: 1)tender_id integer nullable — Tender id the contract was awarded under (min: 1)tender_ref string nullable — Part of the tender reference number (examples: "NG-CDF"; minLength: 1)contract_number string nullable — Contract number (examples: "4270131"; minLength: 1)financial_year string nullable — Kenyan financial year (one of: "2015/2016", "2016/2017", "2018/2019", "2019/2020", "2020/2021", "2021/2022", "2022/2023", "2023/2024", "2024/2025", "2025/2026", "2026/2027")agpo_group string nullable — AGPO group the award was reserved for (one of: "women", "youth", "people_with_disabilities", "all")amount number nullable — Exact contract amount in KES (examples: 540000; min: 0)awarded string nullable — Award year, month or day (examples: "2026", "2026-01", "2026-01-19")started string nullable — Contract start year, month or day (examples: "2026-02")terminated_only boolean — Keep only contracts that were terminated (default: false)amended_only boolean — Keep only contracts varied after signing (default: false)count integer required — Max number of contracts to return (min: 1; max: 450)@type string (default: "KenyappipContract")id integer requiredcontract_number string nullableamount number nullablecurrency string (default: "KES")award_date string nullablenotification_of_award_date string nullableevaluation_completion_date string nullablesign_date string nullablestart_date string nullableend_date string nullableis_amended boolean nullableis_terminated boolean nullableis_published boolean nullableaward_reason_id integer nullableagpo_group string nullableagpo_certificate_number string nullablefinancial_year string nullablesupplier object nullable@type string (default: "KenyappipSupplier")id integer requiredname string requiredbusiness_registration_number string nullableregistration_status string nullablebusiness_type string nullabletelephone string nullableemail string nullablephysical_address string nullablepostal_address string nullabletown string nullablecounty string nullableregistered_date string nullablebuyer object nullable@type string (default: "KenyappipBuyer")id integer requiredcode string nullablename string requiredbuyer_type string nullablecounty string nullabletelephone string nullableemail string nullablephysical_address string nullablepostal_address string nullablecity string nullablewebsite string nullablestatus string nullabletender object nullable@type string (default: "KenyappipTenderSummary")id integer requiredocid string nullabletender_ref string nullablestatus string nullableprocurement_method string nullableprocurement_category string nullablepublished_at integer nullableclosing_at integer nullableurl string requiredtermination object nullable@type string (default: "KenyappipTermination")id integer requiredreason string nullabletermination_date string nullablecontract_amount number nullablecurrency string (default: "KES")completed_percent number nullablecost_of_termination number nullablecreated_at integer nullablevariation object nullable@type string (default: "KenyappipVariation")id integer requiredvariation_type string nullablevariation_date string nullableinitial_amount number nullablenew_amount number nullablecurrency string (default: "KES")percentage_variance number nullableinitial_period integer nullablenew_period integer nullableinitial_end_date string nullablenew_end_date string nullablesubmit_status string nullablesubmit_date string nullablereview_status string nullablecreated_at integer nullabledocuments array (default: [])@type string (default: "KenyappipDocument")id integer requiredurl string requireddocument_type string nullabledocument_type_code string nullabledocument_category string nullablecreated_at integer nullablecreated_at integer nullableupdated_at integer 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.