API V1 is deprecated, Check out new API V2 here

Comments and Comment Threads

comments#index - Fetch comments of a user (not nested)

Request

Route

GET /v1/users/10276/comments

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer your_access_token
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/"9fb34c9b71decb2df7a122403affb904"
Last-Modified: Wed, 05 May 2021 11:39:20 GMT
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 12398

Body

{
  "comments": [
    {
      "id": 688,
      "body": "This is like the 64th best comment ever",
      "created_at": "2021-05-05T04:39:20.008-07:00",
      "parent_comment_id": null,
      "user_id": 10276,
      "subject_id": 1539,
      "child_comments_count": 0,
      "url": "http://www.producthunt.com/posts/awesome-idea-130#comment-688",
      "post_id": 1539,
      "subject_type": "Post",
      "sticky": false,
      "votes": 0,
      "post": {
        "comments_count": 1,
        "id": 1539,
        "name": "Awesome Idea #130",
        "product_state": "default",
        "tagline": "Great new search engine",
        "slug": "awesome-idea-130",
        "votes_count": 0,
        "day": "2021-05-05",
        "category_id": null,
        "created_at": "2021-05-05T04:39:19.987-07:00",
        "current_user": {},
        "discussion_url": "http://www.producthunt.com/posts/awesome-idea-130?utm_campaign=producthunt-api\u0026utm_medium=api\u0026utm_source=Application%3A+Awesome+Oauth+App+%2386+%28ID%3A+1276%29",
        "exclusive": null,
        "featured": true,
        "ios_featured_at": false,
        "maker_inside": false,
        "makers": [],
        "platforms": [],
        "redirect_url": "http://www.producthunt.com/r/7d3f65a905befb/1539?app_id=1276",
        "screenshot_url": {
          "300px": "http://placehold.it/850x850.png",
          "850px": "http://placehold.it/850x850.png"
        },
        "thumbnail": {
          "id": 1595,
          "media_type": "image",
          "image_url": "https://ph-files.imgix.net/06253e7f-fbe1-4223-b2de-7c3d83f0e5e1?auto=format\u0026fit=crop\u0026h=570\u0026w=430",
          "metadata": {}
        },
        "topics": [],
        "user": {
          "id": 10283,
          "created_at": "2021-05-05T04:39:19.964-07:00",
          "name": "Karl User the 807th",
          "username": "producthunter803",
          "headline": "Product Hunter",
          "twitter_username": "hunter807",
          "website_url": "http://awesome.io",
          "profile_url": "http://www.producthunt.com/@producthunter803",
          "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"
          }
        }
      },
      "user": {}
    },
    {
      "id": 687,
      "body": "This is like the 63th best comment ever",
      "created_at": "2021-05-05T04:39:19.959-07:00",
      "parent_comment_id": null,
      "user_id": 10276,
      "subject_id": 1538,
      "child_comments_count": 0,
      "url": "http://www.producthunt.com/posts/awesome-idea-129#comment-687",
      "post_id": 1538,
      "subject_type": "Post",
      "sticky": false,
      "votes": 0,
      "post": {
        "comments_count": 1,
        "id": 1538,
        "name": "Awesome Idea #129",
        "product_state": "default",
        "tagline": "Great new search engine",
        "slug": "awesome-idea-129",
        "votes_count": 0,
        "day": "2021-05-05",
        "category_id": null,
        "created_at": "2021-05-05T04:39:19.938-07:00",
        "current_user": {},
        "discussion_url": "http://www.producthunt.com/posts/awesome-idea-129?utm_campaign=producthunt-api\u0026utm_medium=api\u0026utm_source=Application%3A+Awesome+Oauth+App+%2386+%28ID%3A+1276%29",
        "exclusive": null,
        "featured": true,
        "ios_featured_at": false,
        "maker_inside": false,
        "makers": [],
        "platforms": [],
        "redirect_url": "http://www.producthunt.com/r/7e2b280cdb3e21/1538?app_id=1276",
        "screenshot_url": {
          "300px": "http://placehold.it/850x850.png",
          "850px": "http://placehold.it/850x850.png"
        },
        "thumbnail": {
          "id": 1594,
          "media_type": "image",
          "image_url": "https://ph-files.imgix.net/8698d9e3-5b69-49d5-9e3c-29e6d4cc4226?auto=format\u0026fit=crop\u0026h=570\u0026w=430",
          "metadata": {}
        },
        "topics": [],
        "user": {
          "id": 10280,
          "created_at": "2021-05-05T04:39:19.916-07:00",
          "name": "Karl User the 804th",
          "username": "producthunter800",
          "headline": "Product Hunter",
          "twitter_username": "hunter804",
          "website_url": "http://awesome.io",
          "profile_url": "http://www.producthunt.com/@producthunter800",
          "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"
          }
        }
      },
      "user": {}
    },
    {
      "id": 686,
      "body": "This is like the 62th best comment ever",
      "created_at": "2021-05-05T04:39:19.910-07:00",
      "parent_comment_id": null,
      "user_id": 10276,
      "subject_id": 1537,
      "child_comments_count": 0,
      "url": "http://www.producthunt.com/posts/awesome-idea-128#comment-686",
      "post_id": 1537,
      "subject_type": "Post",
      "sticky": false,
      "votes": 0,
      "post": {
        "comments_count": 1,
        "id": 1537,
        "name": "Awesome Idea #128",
        "product_state": "default",
        "tagline": "Great new search engine",
        "slug": "awesome-idea-128",
        "votes_count": 0,
        "day": "2021-05-05",
        "category_id": null,
        "created_at": "2021-05-05T04:39:19.890-07:00",
        "current_user": {},
        "discussion_url": "http://www.producthunt.com/posts/awesome-idea-128?utm_campaign=producthunt-api\u0026utm_medium=api\u0026utm_source=Application%3A+Awesome+Oauth+App+%2386+%28ID%3A+1276%29",
        "exclusive": null,
        "featured": true,
        "ios_featured_at": false,
        "maker_inside": false,
        "makers": [],
        "platforms": [],
        "redirect_url": "http://www.producthunt.com/r/9605043cd760e8/1537?app_id=1276",
        "screenshot_url": {
          "300px": "http://placehold.it/850x850.png",
          "850px": "http://placehold.it/850x850.png"
        },
        "thumbnail": {
          "id": 1593,
          "media_type": "image",
          "image_url": "https://ph-files.imgix.net/eeaa1950-5739-401f-acfc-905780773774?auto=format\u0026fit=crop\u0026h=570\u0026w=430",
          "metadata": {}
        },
        "topics": [],
        "user": {
          "id": 10277,
          "created_at": "2021-05-05T04:39:19.867-07:00",
          "name": "Karl User the 801th",
          "username": "producthunter797",
          "headline": "Product Hunter",
          "twitter_username": "hunter801",
          "website_url": "http://awesome.io",
          "profile_url": "http://www.producthunt.com/@producthunter797",
          "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"
          }
        }
      },
      "user": {}
    }
  ]
}