# Product Hunt 热榜 API (producthunt.trending)

- Canonical page: [https://everyinfra.com/producthunt-api/trending](https://everyinfra.com/producthunt-api/trending?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "producthunt", "action": "trending", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 40 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=producthunt&action=trending

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| days | integer | no | not declared | trending 的回看天数，默认 1（今天），限制为 1–30；不能视为完整历史榜单导出。 |
| limit | integer (1–40) | no | 20 | 这次调用最多返回的条数，整数，1–40；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| tagline | 产品标语。 |
| description | 简介或描述，通常比 text 短。 |
| url | 该记录在原平台上的可访问链接。 |
| rank | 名次。 |
| vote_count | 获得的投票数（upvotes），PH 上的核心热度指标。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| topics | 所属话题标签。 |
| maker | 产品制作者。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "producthunt",
  "action": "trending",
  "params": {}
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "producthunt",
        "action": "trending",
        "params": {},
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 10. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "producthunt",
  "action": "trending",
  "results": [
    {
      "name": "Chit",
      "tagline": "A printed receipt of your day in Claude Code",
      "description": "Chit reads the Claude Code transcripts already on your disk and prints the day back as a receipt, grouped by project and ready to paste into a standup. A 777 KB Mac app. No Hammerspoon, no Python, no account, and no network code in the binary at all.",
      "url": "https://www.producthunt.com/posts/chit-2",
      "vote_count": 0,
      "comment_count": 4,
      "topics": [
        "Mac",
        "Productivity",
        "Developer Tools"
      ],
      "maker": "Ravindra Sisodia",
      "image_url": "https://ph-files.imgix.net/53ccc9ff-ad92-4070-87ab-e1373aa8abc0.png?auto=format&fit=max&w=200",
      "posted_at": "2026-09-26T00:01:00-07:00",
      "platform": "producthunt"
    },
    {
      "name": "MakerMap",
      "tagline": "A living map of makers and what they’re building",
      "description": "MakerMap is a living map of the maker world. Discover 4,000+ makers and products, search by niche, location, interests or what people are building, explore live profiles, and find people worth meeting. Add yourself and become part of the map.",
      "url": "https://www.producthunt.com/posts/makermap",
      "vote_count": 0,
      "comment_count": 3,
      "topics": [
        "Social Network",
        "Social Media",
        "Maps"
      ],
      "maker": "Martijn Verbove",
      "image_url": "https://ph-files.imgix.net/b57f658d-92d0-4cac-9ff6-bef59fcfa50c.png?auto=format&fit=max&w=200",
      "posted_at": "2026-09-26T00:01:00-07:00",
      "platform": "producthunt"
    }
  ],
  "count": 10,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=producthunt
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
