Son güncelleme
Değişiklik günlüğüHacker News API
SağlıklıSalt okunurHacker 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.
/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.
Authorization: Bearer <key> on every request.Parameters
page number, 1 to 17 (30 stories per page).
Response fields
feede.g."front"pagee.g.1counte.g.30stories
ranke.g.1ide.g.50663595titlee.g."The group chat where your AI talks behind your back"urle.g."https://construct22.com/"sitee.g."construct22.com"pointse.g.238authore.g."utiiiD"comment_counte.g.104agee.g."3 hours ago"posted_ate.g."2026-11-27T06:44:34Z"typee.g."story"hn_urle.g."https://news.ycombinator.com/item?id=50663595"next
pe.g."2"pagination
counte.g.30has_moree.g.falsenext_cursorfetched_ate.g."2026-11-27T10:11:48.780Z"agee.g.0curl "https://api.maviapi.com/v1/sites/hackernews/front?p=1" \-H "Authorization: Bearer $MAVI_KEY"
{
"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.
https://mcp.maviapi.com/mcpOr 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 importPaste 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 /frontHacker 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 Ad Tür / konum Zorunlu Açıklama p integer / query Hayır page number, 1 to 17 (30 stories per page). Yanıt alanları Alan Tür Açıklama feed string page integer count integer stories object[] stories[].rank integer stories[].id integer stories[].title string stories[].url string stories[].site string stories[].points integer stories[].author string stories[].comment_count integer stories[].age string stories[].posted_at string stories[].type string stories[].hn_url string next object next.p string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - Ask
GET /askHN 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 Ad Tür / konum Zorunlu Açıklama p integer / query Hayır page number, 1 to 17 (30 stories per page). Yanıt alanları Alan Tür Açıklama feed string page integer count integer stories object[] stories[].rank integer stories[].id integer stories[].title string stories[].url string stories[].site null stories[].points integer stories[].author string stories[].comment_count integer stories[].age string stories[].posted_at string stories[].type string stories[].hn_url string next object next.p string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - Öğ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 Ad Tür / konum Zorunlu Açıklama id integer / path Evet Hacker News item id. Yanıt alanları Alan Tür Açıklama id integer type string title string url string site string text null points integer author string comment_count integer age string posted_at string parent_id null story_id null story_title null poll_options null hn_url string comments_total integer comments object[] comments[].id integer comments[].author string comments[].age string comments[].posted_at string comments[].depth integer comments[].parent_id integer comments[].text string comments[].html string comments[].deleted boolean comments[].replies object[] comments[].replies[].id integer comments[].replies[].author string comments[].replies[].age string comments[].replies[].posted_at string comments[].replies[].depth integer comments[].replies[].parent_id integer comments[].replies[].text string comments[].replies[].html string comments[].replies[].deleted boolean comments[].replies[].replies object[] comments[].replies[].replies[].id integer comments[].replies[].replies[].author string comments[].replies[].replies[].age string comments[].replies[].replies[].posted_at string comments[].replies[].replies[].depth integer comments[].replies[].replies[].parent_id integer comments[].replies[].replies[].text string comments[].replies[].replies[].html string comments[].replies[].replies[].deleted boolean comments[].replies[].replies[].replies object[] comments[].replies[].replies[].replies[].id integer comments[].replies[].replies[].replies[].author string comments[].replies[].replies[].replies[].age string comments[].replies[].replies[].replies[].posted_at string comments[].replies[].replies[].replies[].depth integer comments[].replies[].replies[].replies[].parent_id integer comments[].replies[].replies[].replies[].text string comments[].replies[].replies[].replies[].html string comments[].replies[].replies[].replies[].deleted boolean comments[].replies[].replies[].replies[].replies object[] comments[].replies[].replies[].replies[].replies[].id integer comments[].replies[].replies[].replies[].replies[].author string comments[].replies[].replies[].replies[].replies[].age string comments[].replies[].replies[].replies[].replies[].posted_at string comments[].replies[].replies[].replies[].replies[].depth integer comments[].replies[].replies[].replies[].replies[].parent_id integer comments[].replies[].replies[].replies[].replies[].text string comments[].replies[].replies[].replies[].replies[].html string comments[].replies[].replies[].replies[].replies[].deleted boolean comments[].replies[].replies[].replies[].replies[].replies object[] comments[].replies[].replies[].replies[].replies[].replies[].id integer comments[].replies[].replies[].replies[].replies[].replies[].author string comments[].replies[].replies[].replies[].replies[].replies[].age string comments[].replies[].replies[].replies[].replies[].replies[].posted_at string comments[].replies[].replies[].replies[].replies[].replies[].depth integer comments[].replies[].replies[].replies[].replies[].replies[].parent_id integer comments[].replies[].replies[].replies[].replies[].replies[].text string comments[].replies[].replies[].replies[].replies[].replies[].html string comments[].replies[].replies[].replies[].replies[].replies[].deleted boolean comments[].replies[].replies[].replies[].replies[].replies[].replies string[] thread_source string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null - Akış
GET /feedBir 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 Ad Tür / konum Zorunlu Açıklama type string / query Hayır which story list: front, newest, ask or show. İzin verilen değerler: front, newest, ask, show. comments boolean / query Hayır attach top comments to the first `top` stories. top integer / query Hayır how many stories to enrich with comments (1-5). İzin verilen değerler: 1, 2, 3, 4, 5. comments_per_story integer / query Hayır top-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ı Alan Tür Açıklama feed string with_comments boolean enriched integer count integer stories object[] stories[].rank integer stories[].id integer stories[].title string stories[].url string stories[].site string stories[].points integer stories[].author string stories[].comment_count integer stories[].age string stories[].posted_at string stories[].type string stories[].hn_url string stories[].comments null pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - En yeniler
GET /newestEn 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 Ad Tür / konum Zorunlu Açıklama p integer / query Hayır page number, 1 to 17 (30 stories per page). Yanıt alanları Alan Tür Açıklama feed string page integer count integer stories object[] stories[].rank integer stories[].id integer stories[].title string stories[].url string stories[].site string stories[].points integer stories[].author string stories[].comment_count integer stories[].age string stories[].posted_at string stories[].type string stories[].hn_url string next object next.p string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - Show
GET /showHN 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 Ad Tür / konum Zorunlu Açıklama p integer / query Hayır page number, 1 to 17 (30 stories per page). Yanıt alanları Alan Tür Açıklama feed string page integer count integer stories object[] stories[].rank integer stories[].id integer stories[].title string stories[].url string stories[].site string stories[].points integer stories[].author string stories[].comment_count integer stories[].age string stories[].posted_at string stories[].type string stories[].hn_url string next object next.p string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - En İyiler
GET /bestEn 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 Ad Tür / konum Zorunlu Açıklama p integer / query Hayır page number, 1 to 7 (30 stories per page). Yanıt alanları Alan Tür Açıklama feed string page integer count integer stories object[] stories[].rank integer stories[].id integer stories[].title string stories[].url string stories[].site string stories[].points integer stories[].author string stories[].comment_count integer stories[].age string stories[].posted_at string stories[].type string stories[].hn_url string next object next.p string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer
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.
| Liste | CSV sütunları |
|---|---|
Ön SayfaGET /front | rank, id, title, url, site, points, author, comment_count, age, posted_at, type, hn_url |
AskGET /ask | rank, 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 /feed | rank, id, title, url, site, points, author, comment_count, age, posted_at, type, hn_url, comments |
En yenilerGET /newest | rank, id, title, url, site, points, author, comment_count, age, posted_at, type, hn_url |
ShowGET /show | rank, id, title, url, site, points, author, comment_count, age, posted_at, type, hn_url |
En İyilerGET /best | rank, 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 '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.
İlgili API’ler
- 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.