Product Hunt API — Authentication — FetchLayer Docs
Documentation menu
FetchLayer FetchLayer API

Authentication

All requests use your FetchLayer API key as a Bearer token. No Product Hunt account, OAuth application, or developer token is required.

Sending requests

bash
curl -X POST https://api.fetchlayer.dev/producthunt/search-products \
  -H "Authorization: Bearer ss-your-key" \
  -H "Content-Type: application/json" \
  -d '{"query":"ai note taking","limit":30}'

Keep your key secret

Only use API keys in server-side code and rotate a key immediately if it is exposed.

Downloading images

The image download endpoint is a GET, and carries the same Bearer header. Because the key travels in a header rather than the URL, an image URL cannot be shared without also sharing the key.

bash
curl -X GET "https://api.fetchlayer.dev/producthunt/media?url=https%3A%2F%2Fph-files.imgix.net%2F...png&filename=granola-logo.png" \
  -H "Authorization: Bearer ss-your-key" \
  --output granola-logo.png

Authentication errors

A missing or invalid key returns HTTP 401.

json
{
  "error": "Invalid API key"
}