crawlbaseDocs
Se connecter

Utilisation de l'API

Ajoutez &scraper=producthunt-product à une requête Crawling API. Encodez en URL l'URL cible dans le paramètre url.

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)

Exemple d'URL en entrée

L'URL passée dans le paramètre url (décodée pour plus de lisibilité) :

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

Structure de la réponse

Corps de la réponse JSON. Les types de champs peuvent être null lorsque la page source omet la valeur.

id
string
Identifiant Product Hunt du produit.
name
string
Nom du produit.
tagline
string
Tagline du produit.
slug
string
Slug URL du produit.
url
string
URL canonique Product Hunt du produit.
description
string
Description complète du produit.
upvotes
integer
Nombre d'upvotes sur le produit.
commentsCount
integer
Nombre de commentaires sur le produit.
reviewsCount
integer
Nombre d'avis sur le produit.
reviewsRating
number | null
Note moyenne des avis, ou null lorsqu'il n'y a aucun avis.
featuredAt
string | null
Heure à laquelle le produit a été mis en avant (ISO 8601).
createdAt
string
Heure à laquelle le produit a été créé (ISO 8601).
website
string | null
Site web externe du produit.
thumbnail
string | null
URL de l'image miniature, lorsqu'elle est présente.
topics
array
Topics associés au produit.
makers
array
Noms des makers crédités sur le produit.
makerCount
integer
Nombre de makers crédités sur le produit.

Exemple de réponse

{
  "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
}