Skip to content

Son güncelleme

Değişiklik günlüğü

Hacker News API

SağlıklıSalt okunur

Hacker News gönderi listeleri (ana sayfa, en yeniler, Ask HN, Show HN): sıra, başlık, URL, site, puan, yazar, yorum sayısı ve ne kadar önce gönderildiği. Ayrıca herhangi bir öğenin detayları ve iç içe yorum zincirinin tamamı. Kaynak: news.ycombinator.com.

Temel URL
https://api.maviapi.com/v1/sites/hackernews
7
Uç noktalar
6 min ago
Son doğrulama
100%
Çalışma oranı / 7g
1388ms
p50 gecikme
GET/front5 credits per call

Ön Sayfa

Hacker News ön sayfasındaki gönderiler, HN sıralamasına göre ve sayfa başına 30 adet. Her gönderide rank, id, title, url, site, points, author, comment_count, age, posted_at (UTC), type ve hn_url bulunur. data.next sonraki sayfanın parametrelerini içerir, son sayfada ise null olur.

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
integerOptionalin query

page number, 1 to 17 (30 stories per page).

feedstringe.g."front"
pageintegere.g.1
countintegere.g.30
storiesobject[]12 fields
rankintegere.g.1
idintegere.g.50663595
titlestringe.g."The group chat where your AI talks behind your back"
urlstringe.g."https://construct22.com/"
sitestringe.g."construct22.com"
pointsintegere.g.238
authorstringe.g."utiiiD"
comment_countintegere.g.104
agestringe.g."3 hours ago"
posted_atstringe.g."2026-11-27T06:44:34Z"
typestringe.g."story"
hn_urlstringe.g."https://news.ycombinator.com/item?id=50663595"
nextobject1 field
pstringe.g."2"
paginationobject3 fields
countintegere.g.30
has_morebooleane.g.false
next_cursornull
fetched_atstringe.g."2026-11-27T10:11:48.780Z"
ageintegere.g.0
Try itLive
GET
https://api.maviapi.com/v1/sites/hackernews/front?p=1
Request
curl "https://api.maviapi.com/v1/sites/hackernews/front?p=1" \
-H "Authorization: Bearer $MAVI_KEY"
Example670 B
{
  "feed": "front",
  "page": 1,
  "count": 30,
  "stories": [
    {
      "rank": 1,
      "id": 50663595,
      "title": "The group chat where your AI talks behind your back",
      "url": "https://construct22.com/",
      "site": "construct22.com",
      "points": 238,
      "author": "utiiiD",
      "comment_count": 104,
      "age": "3 hours ago",
      "posted_at": "2026-11-27T06:44:34Z",
      "type": "story",
      "hn_url": "https://news.ycombinator.com/item?id=50663595"
    }
  ],
  "next": {
    "p": "2"
  },
  "pagination": {
    "count": 30,
    "has_more": false,
    "next_cursor": null
  },
  "fetched_at": "2026-11-27T10:11:48.780Z",
  "age": 0
}

Get all the data, no code

Collect every page of GET /front into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.

Use Hacker News API from Claude, ChatGPT and your coding tools

Add this URL as a custom connector and sign in to maviapi. Nothing to install.

How to connect
https://mcp.maviapi.com/mcp

Or run it locally, with each endpoint of Hacker News API as its own tool:

claude mcp add maviapi -e MAVIAPI_TOOLS=hackernews -- npx -y '@maviapi/mcp'

Import Hacker News API into Postman and other tools

How to import

Paste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.

  • OpenAPI 3.1
    https://api.maviapi.com/v1/apis/hackernews/openapi.json
  • Postman
    https://api.maviapi.com/v1/apis/hackernews/postman.json

The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.

Hacker News API ile geliştirin

Başlangıç için bir uç nokta seçin

  • Ön Sayfa GET /front

    Hacker News ön sayfasındaki gönderiler, HN sıralamasına göre ve sayfa başına 30 adet. Her gönderide rank, id, title, url, site, points, author, comment_count, age, posted_at (UTC), type ve hn_url bulunur. data.next sonraki sayfanın parametrelerini içerir, son sayfada ise null olur.

    GET /front için parametreler ve yanıt alanları
    İstek parametreleri
    AdTür / konumZorunluAçıklama
    pinteger / queryHayırpage number, 1 to 17 (30 stories per page).
    Yanıt alanları
    AlanTürAçıklama
    feedstring
    pageinteger
    countinteger
    storiesobject[]
    stories[].rankinteger
    stories[].idinteger
    stories[].titlestring
    stories[].urlstring
    stories[].sitestring
    stories[].pointsinteger
    stories[].authorstring
    stories[].comment_countinteger
    stories[].agestring
    stories[].posted_atstring
    stories[].typestring
    stories[].hn_urlstring
    nextobject
    next.pstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • Ask GET /ask

    HN sıralamasına göre Ask HN gönderileri, sayfa başına 30 adet. Her gönderide rank, id, title, url, site, points, author, comment_count, age, posted_at (UTC), type ve hn_url bulunur. data.next sonraki sayfanın parametrelerini içerir, son sayfada ise null olur.

    GET /ask için parametreler ve yanıt alanları
    İstek parametreleri
    AdTür / konumZorunluAçıklama
    pinteger / queryHayırpage number, 1 to 17 (30 stories per page).
    Yanıt alanları
    AlanTürAçıklama
    feedstring
    pageinteger
    countinteger
    storiesobject[]
    stories[].rankinteger
    stories[].idinteger
    stories[].titlestring
    stories[].urlstring
    stories[].sitenull
    stories[].pointsinteger
    stories[].authorstring
    stories[].comment_countinteger
    stories[].agestring
    stories[].posted_atstring
    stories[].typestring
    stories[].hn_urlstring
    nextobject
    next.pstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • Öğe GET /item/{id}

    Kimliğe (id) göre tek bir Hacker News öğesi (gönderi, Ask/Show HN gönderisi, iş ilanı, anket veya tek bir yorum): type, title, url, site, text, points, author, comment_count, age, posted_at (UTC), yorumlar için parent_id / story_id / story_title, anketler için poll_options ve iç içe bir ağaç olarak tüm yorum dizisi. Ağacın üst düzeyi HN sırasındadır ve her yorumda id, author, age, posted_at, depth, parent_id, düz metin, ham html, silinme işareti ve replies bulunur. thread_source tam ağaç için "algolia" değerini alır. Öğe dizine eklenemeyecek kadar yeniyse sınırlı bir canlı tarama yapılır ve değer "firebase" olur.

    GET /item/{id} için parametreler ve yanıt alanları
    İstek parametreleri
    AdTür / konumZorunluAçıklama
    idinteger / pathEvetHacker News item id.
    Yanıt alanları
    AlanTürAçıklama
    idinteger
    typestring
    titlestring
    urlstring
    sitestring
    textnull
    pointsinteger
    authorstring
    comment_countinteger
    agestring
    posted_atstring
    parent_idnull
    story_idnull
    story_titlenull
    poll_optionsnull
    hn_urlstring
    comments_totalinteger
    commentsobject[]
    comments[].idinteger
    comments[].authorstring
    comments[].agestring
    comments[].posted_atstring
    comments[].depthinteger
    comments[].parent_idinteger
    comments[].textstring
    comments[].htmlstring
    comments[].deletedboolean
    comments[].repliesobject[]
    comments[].replies[].idinteger
    comments[].replies[].authorstring
    comments[].replies[].agestring
    comments[].replies[].posted_atstring
    comments[].replies[].depthinteger
    comments[].replies[].parent_idinteger
    comments[].replies[].textstring
    comments[].replies[].htmlstring
    comments[].replies[].deletedboolean
    comments[].replies[].repliesobject[]
    comments[].replies[].replies[].idinteger
    comments[].replies[].replies[].authorstring
    comments[].replies[].replies[].agestring
    comments[].replies[].replies[].posted_atstring
    comments[].replies[].replies[].depthinteger
    comments[].replies[].replies[].parent_idinteger
    comments[].replies[].replies[].textstring
    comments[].replies[].replies[].htmlstring
    comments[].replies[].replies[].deletedboolean
    comments[].replies[].replies[].repliesobject[]
    comments[].replies[].replies[].replies[].idinteger
    comments[].replies[].replies[].replies[].authorstring
    comments[].replies[].replies[].replies[].agestring
    comments[].replies[].replies[].replies[].posted_atstring
    comments[].replies[].replies[].replies[].depthinteger
    comments[].replies[].replies[].replies[].parent_idinteger
    comments[].replies[].replies[].replies[].textstring
    comments[].replies[].replies[].replies[].htmlstring
    comments[].replies[].replies[].replies[].deletedboolean
    comments[].replies[].replies[].replies[].repliesobject[]
    comments[].replies[].replies[].replies[].replies[].idinteger
    comments[].replies[].replies[].replies[].replies[].authorstring
    comments[].replies[].replies[].replies[].replies[].agestring
    comments[].replies[].replies[].replies[].replies[].posted_atstring
    comments[].replies[].replies[].replies[].replies[].depthinteger
    comments[].replies[].replies[].replies[].replies[].parent_idinteger
    comments[].replies[].replies[].replies[].replies[].textstring
    comments[].replies[].replies[].replies[].replies[].htmlstring
    comments[].replies[].replies[].replies[].replies[].deletedboolean
    comments[].replies[].replies[].replies[].replies[].repliesobject[]
    comments[].replies[].replies[].replies[].replies[].replies[].idinteger
    comments[].replies[].replies[].replies[].replies[].replies[].authorstring
    comments[].replies[].replies[].replies[].replies[].replies[].agestring
    comments[].replies[].replies[].replies[].replies[].replies[].posted_atstring
    comments[].replies[].replies[].replies[].replies[].replies[].depthinteger
    comments[].replies[].replies[].replies[].replies[].replies[].parent_idinteger
    comments[].replies[].replies[].replies[].replies[].replies[].textstring
    comments[].replies[].replies[].replies[].replies[].replies[].htmlstring
    comments[].replies[].replies[].replies[].replies[].replies[].deletedboolean
    comments[].replies[].replies[].replies[].replies[].replies[].repliesstring[]
    thread_sourcestring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
  • Akış GET /feed

    Bir Hacker News gönderi listesinin HN sırasındaki ilk sayfası (30 gönderi). Her gönderide rank, id, title, url, site, points, author, comment_count, age, posted_at (UTC), type, hn_url ve comments bulunur. comments=true gönderdiğinizde ilk `top` gönderi, üst düzey yorumlarını HN sırasıyla ve her yorumun doğrudan cevaplarıyla birlikte içerir. Diğer tüm gönderilerde comments null olur.

    GET /feed için parametreler ve yanıt alanları
    İstek parametreleri
    AdTür / konumZorunluAçıklama
    typestring / queryHayırwhich story list: front, newest, ask or show. İzin verilen değerler: front, newest, ask, show.
    commentsboolean / queryHayırattach top comments to the first `top` stories.
    topinteger / queryHayırhow many stories to enrich with comments (1-5). İzin verilen değerler: 1, 2, 3, 4, 5.
    comments_per_storyinteger / queryHayırtop-level comments, and direct replies under each, per enriched story (1, 3, 5 or 10). İzin verilen değerler: 1, 3, 5, 10.
    Yanıt alanları
    AlanTürAçıklama
    feedstring
    with_commentsboolean
    enrichedinteger
    countinteger
    storiesobject[]
    stories[].rankinteger
    stories[].idinteger
    stories[].titlestring
    stories[].urlstring
    stories[].sitestring
    stories[].pointsinteger
    stories[].authorstring
    stories[].comment_countinteger
    stories[].agestring
    stories[].posted_atstring
    stories[].typestring
    stories[].hn_urlstring
    stories[].commentsnull
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • En yeniler GET /newest

    En yeni Hacker News gönderileri, en yeniden eskiye doğru ve sayfa başına 30 adet. Her gönderide rank, id, title, url, site, points, author, comment_count, age, posted_at (UTC), type ve hn_url bulunur. data.next sonraki sayfanın parametrelerini içerir, son sayfada ise null olur.

    GET /newest için parametreler ve yanıt alanları
    İstek parametreleri
    AdTür / konumZorunluAçıklama
    pinteger / queryHayırpage number, 1 to 17 (30 stories per page).
    Yanıt alanları
    AlanTürAçıklama
    feedstring
    pageinteger
    countinteger
    storiesobject[]
    stories[].rankinteger
    stories[].idinteger
    stories[].titlestring
    stories[].urlstring
    stories[].sitestring
    stories[].pointsinteger
    stories[].authorstring
    stories[].comment_countinteger
    stories[].agestring
    stories[].posted_atstring
    stories[].typestring
    stories[].hn_urlstring
    nextobject
    next.pstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • Show GET /show

    HN sıralamasına göre Show HN gönderileri, sayfa başına 30 adet. Her gönderide rank, id, title, url, site, points, author, comment_count, age, posted_at (UTC), type ve hn_url bulunur. data.next sonraki sayfanın parametrelerini içerir, son sayfada ise null olur.

    GET /show için parametreler ve yanıt alanları
    İstek parametreleri
    AdTür / konumZorunluAçıklama
    pinteger / queryHayırpage number, 1 to 17 (30 stories per page).
    Yanıt alanları
    AlanTürAçıklama
    feedstring
    pageinteger
    countinteger
    storiesobject[]
    stories[].rankinteger
    stories[].idinteger
    stories[].titlestring
    stories[].urlstring
    stories[].sitestring
    stories[].pointsinteger
    stories[].authorstring
    stories[].comment_countinteger
    stories[].agestring
    stories[].posted_atstring
    stories[].typestring
    stories[].hn_urlstring
    nextobject
    next.pstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • En İyiler GET /best

    En iyi (son dönemde en çok oy alan) Hacker News gönderileri, sıralı biçimde ve sayfa başına 30 adet. Her gönderide rank, id, title, url, site, points, author, comment_count, age, posted_at (UTC), type ve hn_url bulunur. data.next sonraki sayfanın parametrelerini içerir, son sayfada ise null olur.

    GET /best için parametreler ve yanıt alanları
    İstek parametreleri
    AdTür / konumZorunluAçıklama
    pinteger / queryHayırpage number, 1 to 7 (30 stories per page).
    Yanıt alanları
    AlanTürAçıklama
    feedstring
    pageinteger
    countinteger
    storiesobject[]
    stories[].rankinteger
    stories[].idinteger
    stories[].titlestring
    stories[].urlstring
    stories[].sitestring
    stories[].pointsinteger
    stories[].authorstring
    stories[].comment_countinteger
    stories[].agestring
    stories[].posted_atstring
    stories[].typestring
    stories[].hn_urlstring
    nextobject
    next.pstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger

Hacker News verilerini CSV olarak indirin

Aşağıdaki her liste, her kayıt bir satır olacak şekilde CSV dosyası olarak iner. Listeyi yukarıdaki konsolun altındaki "Get all the data, no code" kartıyla bir veri setine toplayın. Liste sayfa sayfa okunur, sonra CSV, JSON veya JSONL olarak indirirsiniz.

ListeCSV sütunları
Ön SayfaGET /frontrank, id, title, url, site, points, author, comment_count, age, posted_at, type, hn_url
AskGET /askrank, id, title, url, site, points, author, comment_count, age, posted_at, type, hn_url
ÖğeGET /item/{id}id, author, age, posted_at, depth, parent_id, text, html, deleted, replies
AkışGET /feedrank, id, title, url, site, points, author, comment_count, age, posted_at, type, hn_url, comments
En yenilerGET /newestrank, id, title, url, site, points, author, comment_count, age, posted_at, type, hn_url
ShowGET /showrank, id, title, url, site, points, author, comment_count, age, posted_at, type, hn_url
En İyilerGET /bestrank, id, title, url, site, points, author, comment_count, age, posted_at, type, hn_url

İç içe bir değer (liste ya da nesne) tek hücreye JSON olarak yazılır. Veri setleri ve dışa aktarma nasıl çalışır

Hacker News API hakkında sorular

Ne aldığınız, ne kadar tuttuğu ve nasıl çağrılacağı.

Resmi bir Hacker News API var mı?

Evet, Hacker News tarafından sunulan bir API var: Hacker News API (kontrol tarihi: 2026-11-25). Bu Hacker News API ise ondan ayrı ve resmi olmayan bir API’dir: news.ycombinator.com üzerindeki herkese açık veriler için maviapi tarafından sunulan bağımsız, barındırılan bir hizmettir. Hacker News tarafından yapılmamış, onaylanmamış ve desteklenmemektedir.

Hacker News API ile hangi verileri alabilirim?

Hacker News API 7 uç nokta sunar. Her biri, yukarıda belgelenen parametre ve alanlarla JSON döndürür:

  • GET /front: Hacker News ön sayfasındaki gönderiler, HN sıralamasına göre ve sayfa başına 30 adet.
  • GET /ask: HN sıralamasına göre Ask HN gönderileri, sayfa başına 30 adet.
  • GET /item/{id}: Kimliğe (id) göre tek bir Hacker News öğesi (gönderi, Ask/Show HN gönderisi, iş ilanı, anket veya tek bir yorum): type, title, url, site, text, points…
  • GET /feed: Bir Hacker News gönderi listesinin HN sırasındaki ilk sayfası (30 gönderi).
  • GET /newest: En yeni Hacker News gönderileri, en yeniden eskiye doğru ve sayfa başına 30 adet.
  • GET /show: HN sıralamasına göre Show HN gönderileri, sayfa başına 30 adet.
  • GET /best: En iyi (son dönemde en çok oy alan) Hacker News gönderileri, sıralı biçimde ve sayfa başına 30 adet.

Hacker News API ücreti ne kadar?

Çağrılar maviapi planınızdaki kredilerle ödenir ve yalnızca başarılı çağrılar ücretlendirilir. Bu API’nin her uç noktası çağrı başına 5 kredi tutar. Hobby planında (ayda 49 dolar, 250.000 kredi) 1.000 çağrı yaklaşık 0,98 dolar tutar. Başarısız çağrılar ücretsizdir. Ücretsiz Free planı, kredi kartı gerektirmeden ayda 1.000 kredi verir. Sonrası için planlara ve kredi fiyatlarına göz atın.

Hacker News API nasıl çağrılır?

API anahtarınızı Authorization başlığına ekleyerek uç noktaya bir HTTPS isteği gönderin. Örneğin GET /front:

cURL
curl 'https://api.maviapi.com/v1/sites/hackernews/front' \
  -H "Authorization: Bearer $MAVI_KEY"

Anahtarınızı API anahtarları sayfanızda oluşturun ya da önce herhangi bir uç noktayı yukarıdaki konsolda ücretsiz test anahtarıyla deneyin.

Hacker News verisini JSON olarak almanın yolları nelerdir?

Hacker News verisini JSON olarak almanın her yolu farklı bir ihtiyaca uyar:

  • Hacker News API: Yazma erişimi, hesap verisi veya Hacker News ile bir anlaşma gerektiğinde daha uygundur.
  • Kendi scraper’ınız: Tam kontrol sizdedir; ancak ayrıştırma, engellenen istekler ve news.ycombinator.com her değiştiğinde gereken onarım da sizin işinizdir. Nadiren değişen bir sayfadan tek seferlik veri almak için daha uygundur.
  • Apify: Çalıştırdığınız Actor’lardan oluşan bir pazar yeri; girdi, çıktı ve fiyatı her Actor belirler. İhtiyacınızı karşılayan hazır bir Actor varsa veya kendi kodunuzu barındırmak istiyorsanız daha uygundur. Karşılaştırma: maviapi vs Apify.
  • RapidAPI: Birçok sağlayıcının eklediği API’lerden oluşan, tek RapidAPI anahtarıyla çağrılan ve API başına fiyatlanan bir merkez. Zaten kullanıyorsanız ve oradaki bir API ihtiyacınızı karşılıyorsa daha uygundur. Kaynak: RapidAPI docs.
  • maviapi: Bu sayfadaki Hacker News API: belgelenmiş 7 uç nokta, yayınlanmış yanıt şeması ve tüm katalog için tek anahtar. Bu veri ürününüzün bir parçasıysa ve scraper bakımı yapmak istemiyorsanız daha uygundur.

news.ycombinator.com sayfa düzenini değiştirirse ne olur?

Kodunuz değişmez. news.ycombinator.com sayfalarını değiştirdiğinde maviapi, Hacker News API hizmetini çalışır durumda tutar; aynı uç noktaları çağırmaya devam eder ve burada belgelenen yapıda JSON alırsınız. Güncel durumunu durum sayfasında, neyin değiştiğini ise değişiklik günlüğünde görebilirsiniz.

Bir güncelleme Hacker News API entegrasyonumu bozar mı?

Hayır. Kullandığınız bir uç noktanın yapısı hiçbir zaman değişmez: yeni alanlar, isteğe bağlı parametreler ve uç noktalar onun yanına eklenir; bir çağrıyı bozacak bir değişiklik yeni bir uç nokta olarak yayınlanır. Tanımadığınız yanıt alanlarını yok sayın ve yenilikler için değişiklik günlüğünü takip edin.

  • Hürriyet API

    Hürriyet'ten en güncel Türkçe haberler: bölümleri (gündem, ekonomi, dünya, spor, ...) birleştiren, en yeniden eskiye…

  • Tripadvisor API

    Tripadvisor'dan seyahat planlama verisi: konum arama, ayrıca konuma (geo_id) göre gezilecek yerler, restoranlar ve…

  • Google Maps API

    maps.google.com'dan yapılandırılmış veri.