Users

users#show - Exclude `relationships`

Parameters

Name Description
id required The ID or username of the User you want to fetch
exclude Option to exclude certain values from the request. Options - "relationships"

Request

Route

GET /v1/users/1?exclude[]=relationships

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: "53e82e27fe35d0021b3c6b4c968d722b"
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 3036

Body

{
  "user": {
    "id": 1,
    "created_at": "2017-09-14T06:02:22.337-07:00",
    "name": "Karl User the 430th",
    "username": "l33thaxor",
    "headline": "Product Hunter",
    "twitter_username": "hunter430",
    "website_url": "http://awesome.io",
    "profile_url": "http://www.producthunt.com/@l33thaxor",
    "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"
    },
    "collections_count": 0,
    "followed_topics_count": 0,
    "followers_count": 2,
    "followings_count": 0,
    "header_image_url": null,
    "maker_of_count": 0,
    "posts_count": 0,
    "votes_count": 5
  }
}