# List followed companies

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

Companies you follow: id, name, registry office, registry number, notice count and profile link. Sorted by name and 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 200, max 1000).

## Response

### 200 — Company list.

- `adet` (integer, zorunlu) — Total records.
- `sayfa` (integer, zorunlu)
- `sayfa_adedi` (integer, zorunlu) — Records per page.
- `sonraki_sayfa` (integer, null, zorunlu) — Next page; null on the last page.
- `sirketler[]` (SirketSatiri[], zorunlu)
- `sirketler[].id` (integer | string, zorunlu) — Company id: numeric with a live key (e.g. 1234); a DENEME-… string with a sandbox key.
- `sirketler[].unvan` (string, null, zorunlu)
- `sirketler[].mudurluk` (string, null, zorunlu)
- `sirketler[].sicil_no` (string, null, zorunlu)
- `sirketler[].ilan_sayisi` (integer, zorunlu)
- `sirketler[].profil` (string (uri), zorunlu)

```json
{
  "adet": 10,
  "sayfa": 1,
  "sayfa_adedi": 2,
  "sonraki_sayfa": 2,
  "sirketler": [
    {
      "id": "DENEME-100001",
      "unvan": "ÖRNEK DENEME SANAYİ VE TİCARET ANONİM ŞİRKETİ",
      "mudurluk": "İSTANBUL",
      "sicil_no": "DENEME-100001",
      "ilan_sayisi": 6,
      "profil": "https://ulawk.com/api/v1/sirketler/DENEME-100001/"
    },
    {
      "id": "DENEME-100002",
      "unvan": "DENEME GIDA PAZARLAMA LİMİTED ŞİRKETİ",
      "mudurluk": "ANKARA",
      "sicil_no": "DENEME-100002",
      "ilan_sayisi": 3,
      "profil": "https://ulawk.com/api/v1/sirketler/DENEME-100002/"
    }
  ]
}
```

### 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/sirketler/?adet=2" \
  -H "X-API-Key: ulk_DENEME_ANAHTARINIZ" \
  -H "X-API-Secret: ulsk_DENEME_GIZLI_ANAHTARINIZ"
```
