> For the complete documentation index, see [llms.txt](https://docs.hukuklabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hukuklabs.com/lawapi.md).

# LawAPI

LawAPI, HukukLabs'in hukuki bilgi tabanını Claude dil modeliyle birleştirerek Türk mevzuatı ve Yargıtay/Danıştay içtihatlarına programatik erişim sağlayan bir REST API'dir.

## Veri kaynakları

* Türk mevzuatı ve yönetmelikler
* Yargıtay ve Danıştay kararları (içtihat)
* Resmi Gazete yayınları
* Emsal kararlar ve hukuki içtihat

## Uç noktalar

```
POST /v1/query
Mevzuat ve içtihat üzerinde doğal dil sorgusu

GET /v1/mevzuat/{id}
Belirli bir mevzuat maddesinin tam metnini döner

GET /v1/ictihat/search
İçtihatlarda anahtar kelime veya anlamsal arama

POST /v1/analyze
Belge analizi: risk tespiti, madde çıkarımı, özetleme

GET /v1/resmi-gazete
Resmi Gazete'de yayımlanan güncel mevzuata erişim
```

## Kimlik doğrulama

İstekler `Authorization` header'ında bearer token ile doğrulanır:

```
Authorization: Bearer sk_live_...
```

## Fiyatlandırma

Token bazlı kullanım fiyatlandırması:

* **1K token başına $0.0108**
* Aylık taahhüt yok, yalnızca kullandığınız kadar ödersiniz
* Girdi ve çıktı tokenleri birlikte hesaplanır
* Örnek: \~250K token/ay ≈ **$2,70**

## Kullanım senaryoları

* Anında mevzuat cevabı veren hukuki destek chatbot'ları
* Riskli maddeleri otomatik tespit eden sözleşme analiz araçları
* Anlamsal arama ile benzer emsal kararları bulan hukuki araştırma platformları
* Resmi Gazete üzerinden sektörel mevzuat takibi yapan uyumluluk sistemleri

## Öne çıkanlar

* Kaynak gösteren, atıflı Claude tabanlı yanıtlar
* Türk hukukuna özel fine-tuning
* KVKK uyumlu veri işleme

## Hedef kullanıcı

Türk hukuk verisini kendi uygulamalarına entegre etmek isteyen geliştiriciler.

{% hint style="info" %}
Gerçek endpoint referansı bir OpenAPI şeması yüklendiğinde bu bölüm otomatik olarak API referans sayfalarıyla değiştirilecektir.
{% endhint %}

## İlgili

* Lens — UYAP senkronizasyonu
* Güvenlik ve Uyumluluk


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hukuklabs.com/lawapi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
