# Product Hunt API

**URL:** <https://community.activepieces.com/t/product-hunt-api/2787>\
**Category:** Need help\
**Created:** [January 26, 2024, 6:20pm UTC](https://community.activepieces.com/t/product-hunt-api/2787 "2024-01-26T18:20:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![izr\_amine](https://community.activepieces.com/user_avatar/community.activepieces.com/izr_amine/32/1734_2.png) [@izr\_amine](https://community.activepieces.com/u/izr_amine)\
**Post date:** [January 26, 2024, 6:20pm UTC](https://community.activepieces.com/t/product-hunt-api/2787/1 "2024-01-26T18:20:06Z")

</div>

Hello community!

I was wondering how I can use Product Hunt API.

Please can someone guide me on how I can use this API

My goal is to get 10 top-rated results for a specific keyword.

Maybe these two link are helpful:

> **[Product Hunt API Documentation](https://api.producthunt.com/v2/docs)**
>
> Product Hunt is a curation of the best new products, every day. Discover the latest mobile apps, websites, and technology products that everyone's talking about.

> **[Creating the Post Cell Class | Product Hunt API Tutorial](https://makeschool.org/mediabook/oa/tutorials/product-hunt-api-tutorial/create-post-cell-class/)**
>
> Meet Mediabook, a modern Computer Science textbook. Mediabook is built with curriculum from Make School's Bachelor in Applied Computer Science. Welcome to college in the 21st century.

Hope the community members engage with this topic

---

<div class="post-metadata">

**Author:** ![menacestudio](https://community.activepieces.com/user_avatar/community.activepieces.com/menacestudio/32/1817_2.png) [@menacestudio](https://community.activepieces.com/u/menacestudio)\
**Post date:** [January 26, 2024, 8:50pm UTC](https://community.activepieces.com/t/product-hunt-api/2787/2 "2024-01-26T20:50:01Z")

</div>

@izr_amine I don’t think it’s possible since ActivePieces doesn’t currently support GraphQL queries yet. #2 can be done via HTTP request but not #3.

The process involves:

1. Creating a new application in the Product Hunt portal to get client id and secret.
2. Use the client id, and secret via “client\_credentials” grant type to get an access token.
3. Use the access token to make GraphQL query to their API.

 ![image](https://community.activepieces.com/uploads/default/original/2X/2/24c9dbaeb62645328525f861352d11b2e80ff778.png)

---

<div class="post-metadata">

**Author:** ![menacestudio](https://community.activepieces.com/user_avatar/community.activepieces.com/menacestudio/32/1817_2.png) [@menacestudio](https://community.activepieces.com/u/menacestudio)\
**Post date:** [January 26, 2024, 11:18pm UTC](https://community.activepieces.com/t/product-hunt-api/2787/3 "2024-01-26T23:18:47Z")

</div>

@izr_amine actually you can do it in code, if you really want to.

 ![image](https://community.activepieces.com/uploads/default/original/2X/7/7ef429930b373520a7a188a8e3dc43b6eba2e2e7.png)

You can reference their API documentation for available queries:

> **[query](http://api-v2-docs.producthunt.com.s3-website-us-east-1.amazonaws.com/operation/query/)**
>
> query GraphQL documentation

Also, their API explorer is pretty helpful in figuring out the correct queries.  
[https://ph-graph-api-explorer.herokuapp.com/](https://ph-graph-api-explorer.herokuapp.com/)

---

<div class="post-metadata">

**Author:** ![izr\_amine](https://community.activepieces.com/user_avatar/community.activepieces.com/izr_amine/32/1734_2.png) [@izr\_amine](https://community.activepieces.com/u/izr_amine)\
**Post date:** [January 27, 2024, 9:39am UTC](https://community.activepieces.com/t/product-hunt-api/2787/4 "2024-01-27T09:39:32Z")

</div>

Awesome @menacestudio!

That’s what I’m looking for!

Please, can you record a video and share it with us on how to build this flow? it will be powerful and I appreciate your time to do so.

Since I’m not technical I will try, in case I find any problem I hope that you help do the same, as what you do on the screen shoot.

Thank you men!

---

<div class="post-metadata">

**Author:** ![menacestudio](https://community.activepieces.com/user_avatar/community.activepieces.com/menacestudio/32/1817_2.png) [@menacestudio](https://community.activepieces.com/u/menacestudio)\
**Post date:** [January 28, 2024, 9:13am UTC](https://community.activepieces.com/t/product-hunt-api/2787/5 "2024-01-28T09:13:44Z")

</div>

@izr_amine done! [Using GraphQL in ActivePieces](https://hi.switchy.io/Ki-J)

---

<div class="post-metadata">

**Author:** ![system](https://community.activepieces.com/uploads/default/original/1X/f3af8cd75e0cc52ac7f19a3b45663ce0396f5016.png) [@system](https://community.activepieces.com/u/system)\
**Post date:** [January 30, 2024, 12:21pm UTC](https://community.activepieces.com/t/product-hunt-api/2787/6 "2024-01-30T12:21:43Z")

</div>

Closed on January 30, 2024, 12:21pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
