API V1 is deprecated, Check out new API V2 here

OAuth Client Only Authentication

oauth#test - Use the client level token for read api access

You can use the client level access token to access public endpoints that don't need user context.

Request

Route

GET /v1/posts

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer your_access_token-1wuxxvP9kmJSqAW6OyZiNFLISjoyUb5es
Host: api.producthunt.com

Response

Status

200 OK

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Rate-Limit-Limit: 900
X-Rate-Limit-Remaining: 900
X-Rate-Limit-Reset: 900
ETag: W/"e2575cfac27f2b4754b2b9afded1d97d"
Last-Modified: Wed, 05 May 2021 11:39:05 GMT
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 7563

Body

{
  "posts": [
    {
      "comments_count": 0,
      "id": 1411,
      "name": "Awesome Idea #2",
      "product_state": "default",
      "tagline": "Great new search engine",
      "slug": "awesome-idea-2",
      "votes_count": 0,
      "day": "2021-05-05",
      "category_id": null,
      "created_at": "2021-05-05T04:39:05.101-07:00",
      "current_user": {},
      "discussion_url": "http://www.producthunt.com/posts/awesome-idea-2?utm_campaign=producthunt-api\u0026utm_medium=api\u0026utm_source=Application%3A+Awesome+Oauth+App+%235+%28ID%3A+1195%29",
      "exclusive": null,
      "featured": true,
      "ios_featured_at": false,
      "maker_inside": false,
      "makers": [],
      "platforms": [],
      "redirect_url": "http://www.producthunt.com/r/2feb2fef08d474/1411?app_id=1195",
      "screenshot_url": {
        "300px": "http://placehold.it/850x850.png",
        "850px": "http://placehold.it/850x850.png"
      },
      "thumbnail": {
        "id": 1460,
        "media_type": "image",
        "image_url": "https://ph-files.imgix.net/78aaf4c9-df96-4fa1-a7e6-77735b5fc491?auto=format\u0026fit=crop\u0026h=570\u0026w=430",
        "metadata": {}
      },
      "topics": [],
      "user": {
        "id": 9487,
        "created_at": "2021-05-05T04:39:05.078-07:00",
        "name": "Karl User the 11th",
        "username": "producthunter11",
        "headline": "Product Hunter",
        "twitter_username": "hunter11",
        "website_url": "http://awesome.io",
        "profile_url": "http://www.producthunt.com/@producthunter11",
        "image_url": {
          "30px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "32px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "40px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "44px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "48px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "50px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "60px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "64px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "73px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "80px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "88px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "96px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "100px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "110px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "120px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "132px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "146px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "160px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "176px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "220px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "264px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "32px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "40px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "44px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "88px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "32px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "40px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "44px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "88px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "original": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress"
        }
      }
    },
    {
      "comments_count": 0,
      "id": 1410,
      "name": "Awesome Idea #1",
      "product_state": "default",
      "tagline": "Great new search engine",
      "slug": "awesome-idea-1",
      "votes_count": 0,
      "day": "2021-05-05",
      "category_id": null,
      "created_at": "2021-05-05T04:39:05.040-07:00",
      "current_user": {},
      "discussion_url": "http://www.producthunt.com/posts/awesome-idea-1?utm_campaign=producthunt-api\u0026utm_medium=api\u0026utm_source=Application%3A+Awesome+Oauth+App+%235+%28ID%3A+1195%29",
      "exclusive": null,
      "featured": true,
      "ios_featured_at": false,
      "maker_inside": false,
      "makers": [],
      "platforms": [],
      "redirect_url": "http://www.producthunt.com/r/5a93d092d77177/1410?app_id=1195",
      "screenshot_url": {
        "300px": "http://placehold.it/850x850.png",
        "850px": "http://placehold.it/850x850.png"
      },
      "thumbnail": {
        "id": 1459,
        "media_type": "image",
        "image_url": "https://ph-files.imgix.net/5117b228-9e39-4435-93ac-8294cdc79b4c?auto=format\u0026fit=crop\u0026h=570\u0026w=430",
        "metadata": {}
      },
      "topics": [],
      "user": {
        "id": 9484,
        "created_at": "2021-05-05T04:39:04.991-07:00",
        "name": "Karl User the 8th",
        "username": "producthunter8",
        "headline": "Product Hunter",
        "twitter_username": "hunter8",
        "website_url": "http://awesome.io",
        "profile_url": "http://www.producthunt.com/@producthunter8",
        "image_url": {
          "30px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "32px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "40px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "44px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "48px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "50px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "60px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "64px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "73px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "80px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "88px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "96px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "100px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "110px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "120px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "132px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "146px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "160px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "176px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "220px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "264px": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "32px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "40px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "44px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "88px@2X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "32px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "40px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "44px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "88px@3X": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress",
          "original": "https://ph-static.imgix.net/guest-user-avatar.png?auto=format\u0026auto=compress"
        }
      }
    }
  ]
}