Přeskočit obsah

API Reference

Přehled

CzechAI poskytuje 100+ API endpointů pro různé služby - od reality intelligence přes AML screening až po právní AI.


Hlavní API servery

Server Port Base URL Popis
Router Tower 8090 https://router.czechai.io Hlavní API gateway
Reality API 3003 https://router.czechai.io/reality Realitní data
RAG API 8095 https://router.czechai.io/rag Knowledge Base
Contacts API 5000 https://router.czechai.io/contacts Kontakty a firmy
Legal API 3000 https://law.czechai.io/api Právní AI

Autentizace

!!! warning "API Klíče" Všechny API endpointy vyžadují autentizaci pomocí API klíče.

curl -H "Authorization: Bearer YOUR_API_KEY" \
     https://router.czechai.io/api/v1/endpoint

Příklady použití

Analýza nemovitosti

import requests

response = requests.post(
    "https://router.czechai.io/api/v1/reality/analyze",
    headers={"Authorization": "Bearer API_KEY"},
    json={
        "url": "https://sreality.cz/detail/..."
    }
)

data = response.json()
print(f"Odhadovaná cena: {data['market_value']}")

Vyhledání kontaktu

response = requests.get(
    "https://router.czechai.io/api/v1/contacts/search",
    headers={"Authorization": "Bearer API_KEY"},
    params={
        "query": "Jan Novák",
        "limit": 10
    }
)

RAG Query

response = requests.post(
    "https://router.czechai.io/rag/search",
    json={
        "query": "Jaké jsou povinnosti při AML?",
        "collection": "legal",
        "top_k": 5
    }
)

Response formát

Všechny API vracejí JSON ve standardním formátu:

{
  "success": true,
  "data": {
    // Výsledná data
  },
  "meta": {
    "request_id": "uuid",
    "processing_time_ms": 123
  }
}

Chybové odpovědi

{
  "success": false,
  "error": {
    "code": "INVALID_INPUT",
    "message": "Popis chyby"
  }
}

Rate Limiting

Tier Requests/min Requests/day
Free 10 100
Basic 60 1,000
Pro 300 10,000
Enterprise Unlimited Unlimited

V této sekci