Comments and Comment Threads

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

Request

Route

GET /v1/users/329/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: "ef508c782b9dd3a0bde6ad97c80bdb28"
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 12287

Body

{
  "comments" : [
    {
      "id" : 41,
      "body" : "This is like the 71th best comment ever",
      "created_at" : "2017-09-14T06:02:37.173-07:00",
      "parent_comment_id" : null,
      "user_id" : 329,
      "subject_id" : 37,
      "child_comments_count" : 0,
      "url" : "http://www.producthunt.com/posts/awesome-idea-131#comment-41",
      "post_id" : 37,
      "subject_type" : "Post",
      "sticky" : false,
      "votes" : 0,
      "post" : {
        "comments_count" : 0,
        "day" : "2017-09-14",
        "id" : 37,
        "name" : "Awesome Idea #131",
        "product_state" : "default",
        "tagline" : "Great new search engine",
        "ios_featured_at" : null,
        "category_id" : null,
        "created_at" : "2017-09-14T06:02:37.136-07:00",
        "current_user" : {},
        "discussion_url" : "http://www.producthunt.com/posts/awesome-idea-131?utm_campaign=producthunt-api&utm_medium=api&utm_source=Application%3A+Awesome+Oauth+App+%2388+%28ID%3A+38%29",
        "exclusive" : null,
        "featured" : true,
        "maker_inside" : false,
        "makers" : [],
        "platforms" : [],
        "redirect_url" : "http://www.producthunt.com/r/f7a606d83ea18b/37?app_id=38",
        "screenshot_url" : {
          "300px" : "http://placehold.it/850x850.png",
          "850px" : "http://placehold.it/850x850.png"
        },
        "thumbnail" : {
          "id" : 37,
          "media_type" : "image",
          "image_url" : "https://ph-files.imgix.net/1970c45a-87df-4187-b10a-c5f7a1fa6f81?auto=format&fit=crop&h=570&w=430",
          "metadata" : {}
        },
        "topics" : [],
        "user" : {
          "id" : 336,
          "created_at" : "2017-09-14T06:02:37.117-07:00",
          "name" : "Karl User the 818th",
          "username" : "producthunter814",
          "headline" : "Product Hunter",
          "twitter_username" : "hunter818",
          "website_url" : "http://awesome.io",
          "profile_url" : "http://www.producthunt.com/@producthunter814",
          "image_url" : {
            "30px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "32px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "40px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "44px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "48px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "50px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "60px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "64px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "73px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "80px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "88px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "96px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "100px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "110px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "120px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "132px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "146px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "160px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "176px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "220px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "264px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "32px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "40px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "44px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "88px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "32px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "40px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "44px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "88px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "original" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png"
          }
        },
        "votes_count" : 0
      },
      "user" : {}
    },
    {
      "id" : 40,
      "body" : "This is like the 70th best comment ever",
      "created_at" : "2017-09-14T06:02:37.108-07:00",
      "parent_comment_id" : null,
      "user_id" : 329,
      "subject_id" : 36,
      "child_comments_count" : 0,
      "url" : "http://www.producthunt.com/posts/awesome-idea-130#comment-40",
      "post_id" : 36,
      "subject_type" : "Post",
      "sticky" : false,
      "votes" : 0,
      "post" : {
        "comments_count" : 0,
        "day" : "2017-09-14",
        "id" : 36,
        "name" : "Awesome Idea #130",
        "product_state" : "default",
        "tagline" : "Great new search engine",
        "ios_featured_at" : null,
        "category_id" : null,
        "created_at" : "2017-09-14T06:02:37.073-07:00",
        "current_user" : {},
        "discussion_url" : "http://www.producthunt.com/posts/awesome-idea-130?utm_campaign=producthunt-api&utm_medium=api&utm_source=Application%3A+Awesome+Oauth+App+%2388+%28ID%3A+38%29",
        "exclusive" : null,
        "featured" : true,
        "maker_inside" : false,
        "makers" : [],
        "platforms" : [],
        "redirect_url" : "http://www.producthunt.com/r/75632b34bbf27e/36?app_id=38",
        "screenshot_url" : {
          "300px" : "http://placehold.it/850x850.png",
          "850px" : "http://placehold.it/850x850.png"
        },
        "thumbnail" : {
          "id" : 36,
          "media_type" : "image",
          "image_url" : "https://ph-files.imgix.net/d1e8c3a9-8006-452f-ab3e-b3c0cb53a0fb?auto=format&fit=crop&h=570&w=430",
          "metadata" : {}
        },
        "topics" : [],
        "user" : {
          "id" : 333,
          "created_at" : "2017-09-14T06:02:37.055-07:00",
          "name" : "Karl User the 815th",
          "username" : "producthunter811",
          "headline" : "Product Hunter",
          "twitter_username" : "hunter815",
          "website_url" : "http://awesome.io",
          "profile_url" : "http://www.producthunt.com/@producthunter811",
          "image_url" : {
            "30px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "32px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "40px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "44px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "48px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "50px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "60px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "64px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "73px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "80px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "88px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "96px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "100px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "110px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "120px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "132px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "146px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "160px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "176px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "220px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "264px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "32px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "40px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "44px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "88px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "32px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "40px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "44px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "88px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "original" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png"
          }
        },
        "votes_count" : 0
      },
      "user" : {}
    },
    {
      "id" : 39,
      "body" : "This is like the 69th best comment ever",
      "created_at" : "2017-09-14T06:02:37.046-07:00",
      "parent_comment_id" : null,
      "user_id" : 329,
      "subject_id" : 35,
      "child_comments_count" : 0,
      "url" : "http://www.producthunt.com/posts/awesome-idea-129#comment-39",
      "post_id" : 35,
      "subject_type" : "Post",
      "sticky" : false,
      "votes" : 0,
      "post" : {
        "comments_count" : 0,
        "day" : "2017-09-14",
        "id" : 35,
        "name" : "Awesome Idea #129",
        "product_state" : "default",
        "tagline" : "Great new search engine",
        "ios_featured_at" : null,
        "category_id" : null,
        "created_at" : "2017-09-14T06:02:37.004-07:00",
        "current_user" : {},
        "discussion_url" : "http://www.producthunt.com/posts/awesome-idea-129?utm_campaign=producthunt-api&utm_medium=api&utm_source=Application%3A+Awesome+Oauth+App+%2388+%28ID%3A+38%29",
        "exclusive" : null,
        "featured" : true,
        "maker_inside" : false,
        "makers" : [],
        "platforms" : [],
        "redirect_url" : "http://www.producthunt.com/r/89c19a50131ece/35?app_id=38",
        "screenshot_url" : {
          "300px" : "http://placehold.it/850x850.png",
          "850px" : "http://placehold.it/850x850.png"
        },
        "thumbnail" : {
          "id" : 35,
          "media_type" : "image",
          "image_url" : "https://ph-files.imgix.net/4e7b73d1-ad54-48c8-9ac6-9da206bb98a9?auto=format&fit=crop&h=570&w=430",
          "metadata" : {}
        },
        "topics" : [],
        "user" : {
          "id" : 330,
          "created_at" : "2017-09-14T06:02:36.979-07:00",
          "name" : "Karl User the 812th",
          "username" : "producthunter808",
          "headline" : "Product Hunter",
          "twitter_username" : "hunter812",
          "website_url" : "http://awesome.io",
          "profile_url" : "http://www.producthunt.com/@producthunter808",
          "image_url" : {
            "30px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "32px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "40px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "44px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "48px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
            "50px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "60px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "64px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "73px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "80px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "88px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "96px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "100px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "110px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "120px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "132px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "146px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "160px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "176px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "220px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "264px" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "32px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png",
            "40px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "44px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "88px@2X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "32px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "40px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "44px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "88px@3X" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png",
            "original" : "https://abs.twimg.com/sticky/default_profile_images/default_profile_4.png"
          }
        },
        "votes_count" : 0
      },
      "user" : {}
    }
  ]
}