Product Hunt GraphQL API
- Endpoint
-
https://api.producthunt.com/v2/api/graphql - Spec
- introspection
- Docs
- https://api.producthunt.com/v2/docs
Authorization: Bearer <credential> Go to the API dashboard, sign in, and create/register an application to obtain a client_id and client_secret. For user-delegated access, configure your app's redirect_uri, send users to GET https://api.producthunt.com/v2/oauth/authorize, then exchange the returned code at POST https://api.producthunt.com/v2/oauth/token. For app-only access, request a token from POST https://api.producthunt.com/v2/oauth/token with grant_type set to client_credentials. By default apps are read-only with public scope; private and write access require requesting those scopes, and write access requires approval via hello@producthunt.com.
Authorization: Bearer <credential> For simple scripts, Product Hunt provides a non-expiring developer_token in the API dashboard. Sign in there and copy the token from your account/application dashboard, then send it as Authorization: Bearer <token> to the GraphQL API.