# Gazette archive

`GET https://ulawk.com/api/v1/gazeteler/`

Archived gazettes of all your notices: notice, company, gazette id, page count, size and PDF link. Paginated.

## Authentication

Two headers on every request: `X-API-Key` and `X-API-Secret`.

## Query parameters

- `sayfa` (integer) — Page number (from 1).
- `adet` (integer) — Records per page (default 100, max 500).

## Response

### 200 — Gazettes.

- `toplam` (integer, zorunlu)
- `sayfa` (integer, zorunlu)
- `adet` (integer, zorunlu) — Records per page.
- `gazeteler[]` (GazeteKaydi[], zorunlu)
- `gazeteler[].ilan_id` (integer, zorunlu)
- `gazeteler[].tarih` (string (date), zorunlu)
- `gazeteler[].tur` (string, zorunlu)
- `gazeteler[].sirket` (object, zorunlu)
- `gazeteler[].sirket.id` (integer | string, zorunlu) — Company id: numeric with a live key (e.g. 1234); a DENEME-… string with a sandbox key.
- `gazeteler[].sirket.unvan` (string, null, zorunlu)
- `gazeteler[].sirket.sicil_no` (string, null, zorunlu)
- `gazeteler[].gazete` (object, zorunlu)
- `gazeteler[].gazete.guid` (string, zorunlu)
- `gazeteler[].gazete.boyut_bayt` (integer, null, zorunlu)
- `gazeteler[].gazete.sayfa_sayisi` (integer, null, zorunlu)
- `gazeteler[].gazete.ocr_var` (boolean, zorunlu)
- `gazeteler[].gazete.indirme` (string (date-time), null, zorunlu)
- `gazeteler[].pdf` (string (uri), zorunlu)

```json
{
  "toplam": 270,
  "sayfa": 1,
  "adet": 2,
  "gazeteler": [
    {
      "ilan_id": 9000005,
      "tarih": "2026-10-16",
      "tur": "TEMSİL VE İLZAM / YETKİLİ ATAMA",
      "sirket": {
        "id": "DENEME-100001",
        "unvan": "ÖRNEK DENEME SANAYİ VE TİCARET ANONİM ŞİRKETİ",
        "sicil_no": "DENEME-100001"
      },
      "gazete": {
        "guid": "deneme-9000005",
        "boyut_bayt": 636,
        "sayfa_sayisi": 1,
        "ocr_var": false,
        "indirme": "2026-10-01T00:00:00+03:00"
      },
      "pdf": "https://ulawk.com/api/v1/ilanlar/9000005/pdf/"
    },
    {
      "ilan_id": 9060002,
      "tarih": "2026-10-15",
      "tur": "TASFİYENİN SONA ERMESİ VE TERKİN",
      "sirket": {
        "id": "DENEME-TERKIN",
        "unvan": "ÖRNEK DENEME TEKSTİL LİMİTED ŞİRKETİ",
        "sicil_no": "DENEME-TERKIN"
      },
      "gazete": {
        "guid": "deneme-9060002",
        "boyut_bayt": 636,
        "sayfa_sayisi": 1,
        "ocr_var": false,
        "indirme": "2026-10-01T00:00:00+03:00"
      },
      "pdf": "https://ulawk.com/api/v1/ilanlar/9060002/pdf/"
    }
  ]
}
```

### 400 — Invalid parameter (`gecersiz_parametre`, `gecersiz_kategori`, `gecersiz_tarih`…) or the endpoint does not support sandbox keys (`deneme_desteklenmiyor`).


```json
{
  "hata": "gecersiz_parametre",
  "detay": "Sayfa ve adet tam sayı olmalı.",
  "hata_ayrinti": {
    "kod": "gecersiz_parametre",
    "mesaj": "Sayfa ve adet tam sayı olmalı.",
    "taraf": "istemci",
    "kaynak": null,
    "tekrar_denenebilir": false,
    "tekrar_sn": null
  }
}
```

### 401 — Missing or invalid key (`yetkisiz`).


```json
{
  "hata": "yetkisiz",
  "detay": "Geçerli X-API-Key başlığı gerekli (panel › API).",
  "hata_ayrinti": {
    "kod": "yetkisiz",
    "mesaj": "Geçerli X-API-Key başlığı gerekli (panel › API).",
    "taraf": "istemci",
    "kaynak": null,
    "tekrar_denenebilir": false,
    "tekrar_sn": null
  }
}
```

### 429 — Hourly rate limit exceeded (`hiz_siniri`); the Retry-After header gives the seconds until reset.

Retry-After: `2494`

```json
{
  "hata": "hiz_siniri",
  "detay": "Saatlik istek sınırı aşıldı (600). Bir sonraki saatte tekrar deneyin.",
  "hata_ayrinti": {
    "kod": "hiz_siniri",
    "mesaj": "Saatlik istek sınırı aşıldı (600). Bir sonraki saatte tekrar deneyin.",
    "taraf": "istemci",
    "kaynak": null,
    "tekrar_denenebilir": true,
    "tekrar_sn": 2494
  }
}
```

### 500 — Unexpected error (`ic_hata`, taraf ulawk); retry shortly.

Retry-After: `60`

```json
{
  "hata": "ic_hata",
  "detay": "Beklenmeyen bir hata oluştu; kısa süre sonra yeniden deneyin.",
  "hata_ayrinti": {
    "kod": "ic_hata",
    "mesaj": "Beklenmeyen bir hata oluştu; kısa süre sonra yeniden deneyin.",
    "taraf": "ulawk",
    "kaynak": null,
    "tekrar_denenebilir": true,
    "tekrar_sn": 60
  }
}
```

## Request

```bash
curl "https://ulawk.com/api/v1/gazeteler/?adet=2" \
  -H "X-API-Key: ulk_DENEME_ANAHTARINIZ" \
  -H "X-API-Secret: ulsk_DENEME_GIZLI_ANAHTARINIZ"
```
