Launched January 30, 2024
Product Hunt API

Product Hunt API

Open source Node.js Scraper for Product Hunt API

FreeAPIOpen Source13,514 impressions#5 of its week

Product Hunt API V2 Node.js Library enables easy integration with the Product Hunt Graphql V2 API in Node.js apps. Use the secret API key securely on the server side. Explore the full API documentation for various functionsn.

Node.js library for accessing the Product Hunt GraphQL V2 API from server-side applications.

for
Node.js developers needing server-side Product Hunt data.
pricing
open source
license
MIT
Miguelo981/node-producthunt-api 13 1TypeScriptupdated 3 years ago
works withNode.jsTypeScriptAxiosESModulesCommonJS

Key features

6 features of Product Hunt API
  • Server-side only — Uses secret API keys safely on the backend, preventing exposure in browsers.
  • OAuth & dev token support — Configure with either a dev token or OAuth client credentials.
  • Typed requests — Provides TypeScript typings for all GraphQL queries.
  • Custom request options — Pass custom Axios options like timeout or extra headers per request.
  • CommonJS & ESModules — Import the library using require or ES module syntax.
  • Error handling helpers — Catch API errors with try…catch and inspect response or message details.

Use cases

  • Fetch the latest Product Hunt posts sorted by votes for a dashboard.
  • Retrieve posts for a specific topic such as web3 to display in a newsletter.
  • Integrate Product Hunt data into a server-side recommendation engine.

Product Hunt API vs alternatives

Product Hunt APIDaytonaFluent CINode File RouterSideko
Best forServer-side Product Hunt API integrationQuick dev environment provisioningTypeScript CI/CD pipelinesNode.js routingImage processing
PricingOpen sourceFreeFreeFreeSubscription
DevHunt upvotes933915812381
LaunchedJan 2024May 2024Jan 2024Jan 2023Jan 2024

Product Hunt API FAQ

Can I use the library in client-side code?+

No, it is intended for server-side use only because it requires a secret API key.

How do I provide authentication?+

Supply either a dev token via `apiKey` or OAuth credentials (`clientId`, `clientSecret`, `grantType`).

Does the library support TypeScript?+

Yes, it includes TypeScript typings for all exported functions.

Can I customize HTTP request settings?+

Yes, each API call accepts an optional Axios options object for timeout, headers, etc.

How are errors returned?+

Errors are thrown and can be caught; details are available in `error.response` or `error.message`.

Summarized by DevHunt from npmjs.com · Sep 27, 2026. Details may change; check the official site.