{"action":"created","issue":{"url":"https://api.github.com/repos/producthunt/producthunt-api/issues/76","labels_url":"https://api.github.com/repos/producthunt/producthunt-api/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/producthunt/producthunt-api/issues/76/comments","events_url":"https://api.github.com/repos/producthunt/producthunt-api/issues/76/events","html_url":"https://github.com/producthunt/producthunt-api/issues/76","id":122746595,"number":76,"title":"My friend...pagination is not working","user":{"login":"AndreiD","id":542665,"avatar_url":"https://avatars.githubusercontent.com/u/542665?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreiD","html_url":"https://github.com/AndreiD","followers_url":"https://api.github.com/users/AndreiD/followers","following_url":"https://api.github.com/users/AndreiD/following{/other_user}","gists_url":"https://api.github.com/users/AndreiD/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreiD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreiD/subscriptions","organizations_url":"https://api.github.com/users/AndreiD/orgs","repos_url":"https://api.github.com/users/AndreiD/repos","events_url":"https://api.github.com/users/AndreiD/events{/privacy}","received_events_url":"https://api.github.com/users/AndreiD/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-17T14:38:16Z","updated_at":"2015-12-17T15:59:56Z","closed_at":"2015-12-17T15:59:56Z","body":"Pagination is broken...\r\n\r\nwhy don't you put a NORMAL pagination with start_page=x,end_page=y,limit=z\r\n\r\nI don't understand that ID? is the id of the post ? but if i try to get posts in one category they have different ids. from where I know which one is the \"oldest\" ?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/producthunt/producthunt-api/issues/comments/165493761","html_url":"https://github.com/producthunt/producthunt-api/issues/76#issuecomment-165493761","issue_url":"https://api.github.com/repos/producthunt/producthunt-api/issues/76","id":165493761,"user":{"login":"RStankov","id":9867,"avatar_url":"https://avatars.githubusercontent.com/u/9867?v=3","gravatar_id":"","url":"https://api.github.com/users/RStankov","html_url":"https://github.com/RStankov","followers_url":"https://api.github.com/users/RStankov/followers","following_url":"https://api.github.com/users/RStankov/following{/other_user}","gists_url":"https://api.github.com/users/RStankov/gists{/gist_id}","starred_url":"https://api.github.com/users/RStankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RStankov/subscriptions","organizations_url":"https://api.github.com/users/RStankov/orgs","repos_url":"https://api.github.com/users/RStankov/repos","events_url":"https://api.github.com/users/RStankov/events{/privacy}","received_events_url":"https://api.github.com/users/RStankov/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T15:59:56Z","updated_at":"2015-12-17T15:59:56Z","body":"Hi,\r\n\r\nCalling `/v1/posts/all?search[category]=games` will return something like: \r\n\r\n```\r\n{\r\n  \"posts\": [{\r\n    \"id\": 10000,\r\n    // other attributes\r\n  }, {\r\n    \"id\": 9999,\r\n    // other attributes\r\n  }, {\r\n    \"id\": 9998,\r\n    // other attributes\r\n  }]\r\n}\r\n```\r\n\r\nThe last post id in this case is `9998`. \r\n\r\nYou can than use it to fetch the next batch by calling - `/v1/posts/all?search[category]=games&older=9998`. \r\n\r\nMore information: \r\n\r\nhttps://api.producthunt.com/v1/docs/posts/posts_all_get_all_the_newest_posts\r\n"}}