Posts

posts#index - Request previous day with `days_ago` parameter (Tech category)

Parameters

Name Description
days_ago Parameter for pagination
day Alternate parameter for requesting specific days (Format: day=YYYY-MM-DD)

Request

Route

GET /v1/posts?days_ago=1

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

Body

{
  "posts": [
    {
      "comments_count": 0,
      "day": "2017-09-13",
      "id": 1,
      "name": "Awesome Idea #5",
      "product_state": "default",
      "tagline": "Great new search engine",
      "ios_featured_at": null,
      "category_id": null,
      "created_at": "2017-09-13T06:01:53.662-07:00",
      "current_user": {},
      "discussion_url": "http://www.producthunt.com/posts/awesome-idea-5?utm_campaign=producthunt-api\u0026utm_medium=api\u0026utm_source=Application%3A+Awesome+Oauth+App+%239+%28ID%3A+1%29",
      "exclusive": null,
      "featured": true,
      "maker_inside": false,
      "makers": [],
      "platforms": [],
      "redirect_url": "http://www.producthunt.com/r/490826c25afa9a/1?app_id=1",
      "screenshot_url": {
        "300px": "http://placehold.it/850x850.png",
        "850px": "http://placehold.it/850x850.png"
      },
      "thumbnail": {
        "id": 1,
        "media_type": "image",
        "image_url": "https://ph-files.imgix.net/09ec4134-22c1-4a8b-abfb-043953f906cb?auto=format\u0026fit=crop\u0026h=570\u0026w=430",
        "metadata": {}
      },
      "topics": [],
      "user": {
        "id": 1,
        "created_at": "2017-09-14T06:01:53.666-07:00",
        "name": "Karl User the 31th",
        "username": "producthunter31",
        "headline": "Product Hunter",
        "twitter_username": "hunter31",
        "website_url": "http://awesome.io",
        "profile_url": "http://www.producthunt.com/@producthunter31",
        "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
    },
    {
      "comments_count": 0,
      "day": "2017-09-13",
      "id": 2,
      "name": "Awesome Idea #6",
      "product_state": "default",
      "tagline": "Great new search engine",
      "ios_featured_at": null,
      "category_id": null,
      "created_at": "2017-09-13T06:01:53.662-07:00",
      "current_user": {},
      "discussion_url": "http://www.producthunt.com/posts/awesome-idea-6?utm_campaign=producthunt-api\u0026utm_medium=api\u0026utm_source=Application%3A+Awesome+Oauth+App+%239+%28ID%3A+1%29",
      "exclusive": null,
      "featured": true,
      "maker_inside": false,
      "makers": [],
      "platforms": [],
      "redirect_url": "http://www.producthunt.com/r/33286827f360fe/2?app_id=1",
      "screenshot_url": {
        "300px": "http://placehold.it/850x850.png",
        "850px": "http://placehold.it/850x850.png"
      },
      "thumbnail": {
        "id": 2,
        "media_type": "image",
        "image_url": "https://ph-files.imgix.net/cde836bd-4e9c-4d35-8a2b-6807a8d2dda4?auto=format\u0026fit=crop\u0026h=570\u0026w=430",
        "metadata": {}
      },
      "topics": [],
      "user": {
        "id": 4,
        "created_at": "2017-09-14T06:01:53.748-07:00",
        "name": "Karl User the 34th",
        "username": "producthunter34",
        "headline": "Product Hunter",
        "twitter_username": "hunter34",
        "website_url": "http://awesome.io",
        "profile_url": "http://www.producthunt.com/@producthunter34",
        "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
    },
    {
      "comments_count": 0,
      "day": "2017-09-13",
      "id": 3,
      "name": "Awesome Idea #7",
      "product_state": "default",
      "tagline": "Great new search engine",
      "ios_featured_at": null,
      "category_id": null,
      "created_at": "2017-09-13T06:01:53.662-07:00",
      "current_user": {},
      "discussion_url": "http://www.producthunt.com/posts/awesome-idea-7?utm_campaign=producthunt-api\u0026utm_medium=api\u0026utm_source=Application%3A+Awesome+Oauth+App+%239+%28ID%3A+1%29",
      "exclusive": null,
      "featured": true,
      "maker_inside": false,
      "makers": [],
      "platforms": [],
      "redirect_url": "http://www.producthunt.com/r/9c10d1ab81506a/3?app_id=1",
      "screenshot_url": {
        "300px": "http://placehold.it/850x850.png",
        "850px": "http://placehold.it/850x850.png"
      },
      "thumbnail": {
        "id": 3,
        "media_type": "image",
        "image_url": "https://ph-files.imgix.net/70886602-2356-4922-b00b-ced703a87778?auto=format\u0026fit=crop\u0026h=570\u0026w=430",
        "metadata": {}
      },
      "topics": [],
      "user": {
        "id": 7,
        "created_at": "2017-09-14T06:01:53.841-07:00",
        "name": "Karl User the 37th",
        "username": "producthunter37",
        "headline": "Product Hunter",
        "twitter_username": "hunter37",
        "website_url": "http://awesome.io",
        "profile_url": "http://www.producthunt.com/@producthunter37",
        "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
    },
    {
      "comments_count": 0,
      "day": "2017-09-13",
      "id": 4,
      "name": "Awesome Idea #8",
      "product_state": "default",
      "tagline": "Great new search engine",
      "ios_featured_at": null,
      "category_id": null,
      "created_at": "2017-09-13T06:01:53.662-07:00",
      "current_user": {},
      "discussion_url": "http://www.producthunt.com/posts/awesome-idea-8?utm_campaign=producthunt-api\u0026utm_medium=api\u0026utm_source=Application%3A+Awesome+Oauth+App+%239+%28ID%3A+1%29",
      "exclusive": null,
      "featured": true,
      "maker_inside": false,
      "makers": [],
      "platforms": [],
      "redirect_url": "http://www.producthunt.com/r/7352bbefac8070/4?app_id=1",
      "screenshot_url": {
        "300px": "http://placehold.it/850x850.png",
        "850px": "http://placehold.it/850x850.png"
      },
      "thumbnail": {
        "id": 4,
        "media_type": "image",
        "image_url": "https://ph-files.imgix.net/7c397c7d-1414-4d0e-8965-efb0c12e6b46?auto=format\u0026fit=crop\u0026h=570\u0026w=430",
        "metadata": {}
      },
      "topics": [],
      "user": {
        "id": 10,
        "created_at": "2017-09-14T06:01:53.933-07:00",
        "name": "Karl User the 40th",
        "username": "producthunter40",
        "headline": "Product Hunter",
        "twitter_username": "hunter40",
        "website_url": "http://awesome.io",
        "profile_url": "http://www.producthunt.com/@producthunter40",
        "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
    }
  ]
}