API REFERENCE · v1

API Dokümantasyonu

Loft Press tarafından oluşturulan ve editoryal olarak onaylanan içeriklere REST API üzerinden erişin.

Temel URL

https://loftpress.co/api

Authentication

Tüm istekler `Authorization` başlığında Bearer token gerektirir. API anahtarınızı pazaryeri sayfasından oluşturabilirsiniz.

Authorization: Bearer lp_pro_xxxxxxxxxxxxxxxx

Uç Noktalar

GET/news

Loft Press tarafından oluşturulan ve editoryal olarak onaylanan içerikleri listeler. Geriye dönük uyumluluk için endpoint adı korunmuştur; üçüncü taraf yayıncı akışları veya haber içerikleri döndürmez.

params: lang, category, limit, skip, search

GET/news/trending

Son yayınlanan onaylı Loft Press içeriklerini getirir.

params: lang, limit

GET/news/{id}

Tek bir onaylı içeriği kimliğine göre getirir.

params: id

GET/categories

Mevcut kategorileri listeler.

params: —

POST/webhooks

(Pro) Yeni onaylı içerik yayınlandığında bildirim webhook'u kaydeder.

params: url, categories

Örnekler

curl https://loftpress.co/api/news \
  -H "Authorization: Bearer lp_pro_xxxxxxxxxxxxxxxx" \
  -G -d "lang=tr" -d "category=technology" -d "limit=10"

# Example response item (paid API)
# {
#   "id": "cnt_20260722_da64ae04",
#   "title": "RAM nasıl çalışır",
#   "summary": "RAM temelleri",
#   "body": "...",
#   "category": "technology",
#   "language": "tr",
#   "content_type": "article",
#   "keywords": ["RAM","bellek"],
#   "published_at": "2026-07-22T16:22:41Z",
#   "editorial_status": "approved",
#   "origin": "loftpress_generated"
# }

Rate Limits

PlanRequests / MonthBurst / Minute
Free1,00010
Pro100,000200
EnterpriseUnlimitedCustom

Errors

401Unauthorized — missing or invalid API key
403Forbidden — plan doesn't include this endpoint
404Not Found — news id does not exist
429Too Many Requests — rate limit exceeded
500Server Error — please retry