Strukturierte Daten von Y Combinators Hacker News extrahieren. Top Stories, neue Stories, Stellenangebote, Ask-HN-Threads, Show-HN-Projekte, Kommentare und Nutzerprofile scrapen. Rein HTTP-basiert -- kein Chrome, kein Playwright.
# Einen Lauf über die Apify-API starten curl -X POST "https://api.apify.com/v2/acts/santamaria-automations~ycombinator-scraper/runs?token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "mode": "top", "maxResults": 100, "includeComments": true }' # Oder mit KI-Agenten via MCP verwenden: # https://mcp.apify.com?tools=santamaria-automations/ycombinator-scraper
| Merkmal | NanoScrape | HN-API-Wrapper |
|---|---|---|
| Docker-Image | ~12MB | Variiert |
| RAM-Verbrauch | 128MB | Variiert |
| Kosten pro 1k Einträge | $0,50 | $2 - $10 |
| Ausgabeformat | Strukturiertes JSON | Rohes API-Format |
| Kommentare enthalten | Ja (verschachtelt) | Separate Aufrufe |
| Suche | Integriert | Algolia API |
| Feld | Typ | Beispiel |
|---|---|---|
| title | string | Show HN: Ich habe eine neue Datenbank gebaut |
| url | string | https://example.com/article |
| score | number | 342 |
| author | string | pg |
| comment_count | number | 187 |
| created_at | string | 2026-04-23T08:15:00Z |
| type | string | story |
| hn_url | string | https://news.ycombinator.com/item?id=... |
Klicken Sie oben auf Auf Apify öffnen, um ycombinator-scraper im Browser auszuführen – kein Code, keine Installation. In der Apify-Konsole erhalten Sie:
Um diesen Actor aus Ihrem eigenen Code auszuführen, benötigen Sie einen Apify API-Token. In etwa einer Minute erledigt:
Gratiskontingent: Apify schreibt Ihrem Konto 5$ Plattformnutzung pro Monat gut, keine Kreditkarte erforderlich. Genug, um jeden Actor sinnvoll zu testen — bei 0,001$ pro Ergebnis sind das etwa 5.000 Ergebnisse gratis pro Monat.
Führen Sie diesen Actor aus jeder Sprache über die Apify-REST-API aus. Ersetzen Sie YOUR_TOKEN durch Ihren API-Token und passen Sie das JSON-Input an.
curl -X POST "https://api.apify.com/v2/acts/santamaria-automations~ycombinator-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'// npm install apify-client
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('santamaria-automations/ycombinator-scraper').call({});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);# pip install apify-client
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('santamaria-automations/ycombinator-scraper').call(run_input={})
items = list(client.dataset(run['defaultDatasetId']).iterate_items())
print(items)// dotnet add package Apify.Client
using Apify.Client;
var client = new ApifyClient("YOUR_TOKEN");
var run = await client.Actor("santamaria-automations/ycombinator-scraper").CallAsync(new { });
var items = await client.Dataset(run.DefaultDatasetId).ListItemsAsync();// Maven: com.apify:apify-client
import com.apify.client.ApifyClient;
ApifyClient client = new ApifyClient("YOUR_TOKEN");
ActorRun run = client.actor("santamaria-automations/ycombinator-scraper").call(Map.of());
List<Map<String,Object>> items = client.dataset(run.getDefaultDatasetId()).listItems();Dieser Actor ist auf dem Apify MCP-Server verfügbar, sodass Sie ihn von jedem MCP-kompatiblen KI-Client aus steuern können – Claude Desktop, Claude.ai, Cursor, VS Code, LangChain, LlamaIndex oder einem eigenen Agent – ohne Code zu schreiben.
https://mcp.apify.com?tools=santamaria-automations/ycombinator-scraperBeispiel-Prompt nach Verbindung:
"Verwende ycombinator-scraper, um einen Scrape durchzuführen, und liefere mir die Ergebnisse als Tabelle."
Clients mit dynamischer Tool-Discovery (Claude.ai, VS Code) erhalten das vollständige Input-Schema automatisch via add-actor.
Triggern Sie diesen Actor aus Ihrem Automatisierungstool. Alle unten aufgeführten Plattformen können die Apify-API in wenigen Klicks aufrufen — kein Code erforderlich.
@apify/n8n-nodes-apify installieren).santamaria-automations/ycombinator-scraper.https://api.apify.com/v2/acts/santamaria-automations~ycombinator-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN hinzu.application/json.https://api.apify.com/v2/acts/santamaria-automations~ycombinator-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN, Methode POST, Body raw JSON.https://api.apify.com/v2/acts/santamaria-automations~ycombinator-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN.steps.http.$return_value zu.https://api.apify.com/v2/acts/santamaria-automations~ycombinator-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN, Body type JSON.