# /kimdis/contracts/search

`POST /api/kimdis/contracts/search`

Price: 10 credits

Search Greek public contracts in the KIMDIS registry by title, CPV code, contracting authority, deciding body, contract type, procedure, contractor VAT number or name, registration date, value, estimated value, cancellation date and funding code. Returns the full contract record, newest first.

## How to use it

Without `date_from`/`date_to` the search covers the last 180 days of registrations; pass `date_from` to reach back as far as 2017. `only_amendments` keeps the contract modifications and extensions.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `cpv_codes` (array) — CPV codes, any of (default: []; examples: ["45000000-7"])
- `organization_ids` (array) — Contracting authority codes, as in `organization.code` (default: []; examples: ["100015981"])
- `signer_id` (string, nullable) — Deciding body code, as in `signer.code` (examples: "100092497"; pattern: ^[1-9]\d*$)
- `contract_type` (string, nullable) — Main character of the contract (one of: "services", "works", "studies", "supplies", "technical_services")
- `date_from` (string, nullable) — Registered in the registry on or after (format: date; examples: "2026-09-01")
- `date_to` (string, nullable) — Registered in the registry on or before (format: date; examples: "2026-09-07")
- `min_total_cost` (number, nullable) — Lowest total value without VAT, EUR (min: 0)
- `max_total_cost` (number, nullable) — Highest total value without VAT, EUR (min: 0)
- `cancelled_from` (string, nullable) — Cancelled on or after (format: date; examples: "2026-06-01")
- `cancelled_to` (string, nullable) — Cancelled on or before (format: date; examples: "2026-09-20")
- `offset` (integer) — Rows to skip (default: 0; min: 0)
- `procedure_type` (string, nullable) — Procedure type code, as in `procedure_type.code` (examples: "6"; pattern: ^[1-9]\d*$)
- `contractor_vat_number` (string, nullable) — Contractor VAT number (ΑΦΜ) (examples: "094014201"; pattern: ^0*[1-9]\d*$)
- `contractor_name` (string, nullable) — Words in the contractor name (examples: "ΔΕΗ"; maxLength: 30)
- `invoicing_code` (string, nullable) — Authority e-invoicing code, as in `invoicing_code` (examples: "1011.2020000000.0019"; maxLength: 30)
- `min_estimated_cost` (number, nullable) — Lowest estimated value without VAT, EUR (min: 0)
- `max_estimated_cost` (number, nullable) — Highest estimated value without VAT, EUR (min: 0)
- `only_amendments` (boolean) — Only acts that amend an earlier act (default: false)
- `public_investment_project_number` (string, nullable) — Public Investment Programme project number, as in `funding` (maxLength: 30)
- `count` (integer, required) — Max number of contracts to return (min: 1; max: 1000)

## Response

### 200 — Successful Response

- `@type` (string) (default: "KimdisContract")
- `id` (string, required)
- `document_url` (string, nullable)
- `organization` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `organization_vat_number` (string, nullable)
- `is_greek_organization_vat_number` (boolean, nullable)
- `invoicing_code` (string, nullable)
- `units_operator` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `signer` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `author_email` (string, nullable)
- `protocol_number` (string, nullable)
- `signed_date` (string, nullable)
- `submitted_at` (integer, nullable)
- `updated_at` (integer, nullable)
- `is_cancelled` (boolean, nullable)
- `cancelled_at` (integer, nullable)
- `cancellation_type` (string, nullable)
- `cancellation_reason` (string, nullable)
- `cancellation_ada` (string, nullable)
- `contract_type` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `additional_contract_types` (array) (default: [])
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `is_mixed_contract` (boolean, nullable)
- `nuts` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `nuts_regions` (array) (default: [])
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `city` (string, nullable)
- `postal_code` (string, nullable)
- `country` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `authority_type` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `public_law_classification` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `authority_activity` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `legal_context` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `centralized_markets` (array) (default: [])
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `is_central_government` (boolean, nullable)
- `is_reserved_contract` (boolean, nullable)
- `is_social_contract` (boolean, nullable)
- `total_cost_with_vat` (number, nullable)
- `total_cost_without_vat` (number, nullable)
- `budget` (number, nullable)
- `commitment_number` (string, nullable)
- `funding` (object, nullable)
  - `@type` (string) (default: "KimdisFunding")
  - `public_investment_code` (string, nullable)
  - `public_investment_project_number` (string, nullable)
  - `public_investment_ops_code` (string, nullable)
  - `cofunded_program` (string, nullable)
  - `self_funded_program` (string, nullable)
  - `espa_program` (string, nullable)
  - `regular_budget_program` (string, nullable)
- `line_items` (array) (default: [])
  - `@type` (string) (default: "KimdisItem")
  - `description` (string, nullable)
  - `quantity` (number, nullable)
  - `unit` (object, nullable)
    - `@type` (string) (default: "KimdisCode")
    - `code` (string, nullable)
    - `name` (string, nullable)
  - `cost_without_vat` (number, nullable)
  - `vat_rate` (number, nullable)
  - `currency` (string, nullable)
  - `cpvs` (array) (default: [])
    - `@type` (string) (default: "KimdisCode")
    - `code` (string, nullable)
    - `name` (string, nullable)
  - `green_procurement` (object, nullable)
    - `@type` (string) (default: "KimdisCode")
    - `code` (string, nullable)
    - `name` (string, nullable)
  - `goods_or_services` (object, nullable)
    - `@type` (string) (default: "KimdisCode")
    - `code` (string, nullable)
    - `name` (string, nullable)
  - `budget_code` (string, nullable)
  - `request_id` (string, nullable)
  - `delivery_address` (string, nullable)
  - `delivery_street_number` (string, nullable)
  - `delivery_postal_code` (string, nullable)
  - `delivery_city` (string, nullable)
  - `delivery_country` (object, nullable)
    - `@type` (string) (default: "KimdisCode")
    - `code` (string, nullable)
    - `name` (string, nullable)
  - `construction_city` (object, nullable)
    - `@type` (string) (default: "KimdisCode")
    - `code` (string, nullable)
    - `name` (string, nullable)
  - `contractor_name` (string, nullable)
  - `contractor_vat_number` (string, nullable)
  - `is_greek_contractor_vat_number` (boolean, nullable)
  - `contractor_country` (object, nullable)
    - `@type` (string) (default: "KimdisCode")
    - `code` (string, nullable)
    - `name` (string, nullable)
  - `invoice_number` (string, nullable)
  - `commitment_code` (string, nullable)
- `contract_number` (string, nullable)
- `procedure_type` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `award_procedure` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `award_criterion` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `section_count` (integer, nullable)
- `contract_duration` (integer, nullable)
- `contract_duration_unit` (object, nullable)
  - `@type` (string) (default: "KimdisCode")
  - `code` (string, nullable)
  - `name` (string, nullable)
- `contract_signed_date` (string, nullable)
- `start_date` (string, nullable)
- `end_date` (string, nullable)
- `has_no_end_date` (boolean, nullable)
- `contract_budget` (number, nullable)
- `bid_count` (integer, nullable)
- `max_bid_count` (integer, nullable)
- `contractors` (array) (default: [])
  - `@type` (string) (default: "KimdisContractor")
  - `name` (string, nullable)
  - `vat_number` (string, nullable)
  - `is_greek_vat_number` (boolean, nullable)
  - `country` (object, nullable)
    - `@type` (string) (default: "KimdisCode")
    - `code` (string, nullable)
    - `name` (string, nullable)
  - `nuts` (object, nullable)
    - `@type` (string) (default: "KimdisCode")
    - `code` (string, nullable)
    - `name` (string, nullable)
- `commitment_ada` (object, nullable)
  - `@type` (string) (default: "KimdisRelatedAda")
  - `number_1` (string, nullable)
  - `number_2` (string, nullable)
  - `number_3` (string, nullable)
- `amendment_decision_ada` (string, nullable)
- `previous_contract_id` (string, nullable)
- `next_contract_id` (string, nullable)
- `is_next_extension` (boolean, nullable)
- `is_next_modification` (boolean, nullable)
- `award_id` (string, nullable)
- `notice_id` (string, nullable)
- `request_id` (string, nullable)
- `approved_request_ids` (array) (default: [])
- `payment_ids` (array) (default: [])

## Errors

### 422 — Validation Error

A date is not YYYY-MM-DD, a range is inverted, a code is not numeric, or the registry rejected the criteria

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: 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

What to do: 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

What to do: 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

What to do: 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

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-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.

