---
title: "Contracts with an upcoming expiry, by horizon in days. h=0 is free on every plan."
method: GET
path: "/v1/contracts/expiring"
---

# Contracts with an upcoming expiry, by horizon in days. h=0 is free on every plan.

`GET /v1/contracts/expiring`

## Request

- Base URL: `https://api.diavgis.gr`
- URL: `https://api.diavgis.gr/v1/contracts/expiring`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

## Query parameters

- `h` integer
- `cpv` string
- `region` string

## Response `200`

Expiring contracts

## Other responses

- `401`: missing/invalid key
- `402`: upgrade_required — horizons beyond today need a paid plan

---

[API](https://skmtc.dev/diavgis/apis/diavgis-procurement-api.md) · [All operations](https://skmtc.dev/diavgis/apis/diavgis-procurement-api/llms.txt) · [OpenAPI document](https://skmtc.dev/diavgis/apis/diavgis-procurement-api/revisions/e1aa7f66f3a8?raw)
