crawlbaseDocs
Anmelden

API-Nutzung

Fügen Sie &scraper=producthunt-product zu einem Crawling API-Request hinzu. URL-kodieren Sie die Ziel-URL im url-Parameter.

curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
  --data-urlencode 'url=https://www.producthunt.com/products/acme-analytics' \
  --data-urlencode 'scraper=producthunt-product' -G
from crawlbase import CrawlingAPI

api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
    'https://www.producthunt.com/products/acme-analytics',
    {'scraper': 'producthunt-product'}
)

import json
data = json.loads(res['body'])
const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });

const res = await api.get(
  'https://www.producthunt.com/products/acme-analytics',
  { scraper: 'producthunt-product' }
);
const data = JSON.parse(res.body);
require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')

res = api.get('https://www.producthunt.com/products/acme-analytics', scraper: 'producthunt-product')
data = JSON.parse(res.body)

Beispiel-Eingabe-URL

Die im url-Parameter übergebene URL (zur besseren Lesbarkeit URL-dekodiert):

https://www.producthunt.com/products/acme-analytics

Response-Struktur

JSON-Response-Body. Feldtypen können null sein, wenn die Quellseite den Wert nicht enthält.

id
string
Product Hunt-Kennung des Produkts.
name
string
Produktname.
tagline
string
Produkt-Tagline.
slug
string
URL-Slug des Produkts.
url
string
Kanonische Product Hunt-URL des Produkts.
description
string
Vollständige Produktbeschreibung.
upvotes
integer
Anzahl der Upvotes für das Produkt.
commentsCount
integer
Anzahl der Kommentare zum Produkt.
reviewsCount
integer
Anzahl der Bewertungen des Produkts.
reviewsRating
number | null
Durchschnittliche Bewertung oder null, wenn keine Bewertungen vorliegen.
featuredAt
string | null
Zeitpunkt, zu dem das Produkt vorgestellt wurde (ISO 8601).
createdAt
string
Zeitpunkt, zu dem das Produkt erstellt wurde (ISO 8601).
website
string | null
Externe Website des Produkts.
thumbnail
string | null
URL des Vorschaubilds, sofern vorhanden.
topics
array
Topics, mit denen das Produkt getaggt ist.
makers
array
Namen der beim Produkt genannten Maker.
makerCount
integer
Anzahl der beim Produkt genannten Maker.

Beispiel-Response

{
  "id": "612345",
  "name": "Acme Analytics",
  "tagline": "Product analytics that ships itself",
  "slug": "acme-analytics",
  "url": "https://www.producthunt.com/products/acme-analytics",
  "description": "Acme Analytics is a self-serve product analytics platform that auto-instruments your app and surfaces the metrics that matter without a data team.",
  "upvotes": 842,
  "commentsCount": 74,
  "reviewsCount": 128,
  "reviewsRating": 4.8,
  "featuredAt": "2026-07-14T07:01:00Z",
  "createdAt": "2026-07-14T07:01:00Z",
  "website": "https://acme-analytics.com",
  "thumbnail": "https://ph-files.imgix.net/acme-thumb.png",
  "topics": ["Analytics", "SaaS", "Developer Tools"],
  "makers": ["Jane Doe", "Sam Rivera", "Priya Patel"],
  "makerCount": 3
}