{"id":1241056,"name":"Jakub Smékal","username":"smejak","avatar_template":"/user_avatar/meta.discourse.org/smejak/{size}/293991_2.png","created_at":"2023-02-17T11:17:20.999Z","cooked":"\u003cp\u003eHi \u003ca class=\"mention\" href=\"/u/rgj\"\u003e@RGJ\u003c/a\u003e, I noticed I’m able to retrieve individual posts if they have been in the list originally retrieved by \u003ccode\u003eposts.json\u003c/code\u003e. I used the code snippet below\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"lang-plaintext\"\u003eurl = \"https://forum.algovera.ai/posts.json\"\n\nusername = \"algovera\"\n\nparams = {'Api-Key': api_key, \"Api-Username\": username}\n\nr = requests.get(url = url, params = params)\n\ndata = r.json()\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eThen I tried changing this call to \u003ccode\u003ehttps://forum.algovera.ai/posts/{id}.json\"\u003c/code\u003e, where the ID was taken from the URL of the particular post I was looking at.\u003c/p\u003e","post_number":3,"post_type":1,"posts_count":5,"updated_at":"2023-02-17T11:17:20.999Z","reply_count":1,"reply_to_post_number":2,"quote_count":0,"incoming_link_count":1,"reads":40,"readers_count":39,"score":18.0,"yours":false,"topic_id":255455,"topic_slug":"cant-retrieve-posts-with-api","display_username":"Jakub Smékal","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"user_title":null,"reply_to_user":{"id":406,"username":"RGJ","name":"Richard - Communiteq","avatar_template":"/user_avatar/meta.discourse.org/rgj/{size}/523185_2.png"},"bookmarked":false,"raw":"Hi @RGJ, I noticed I'm able to retrieve individual posts if they have been in the list originally retrieved by `posts.json`. I used the code snippet below\n\n```\nurl = \"https://forum.algovera.ai/posts.json\"\n\nusername = \"algovera\"\n\nparams = {'Api-Key': api_key, \"Api-Username\": username}\n\nr = requests.get(url = url, params = params)\n\ndata = r.json()\n```\n\nThen I tried changing this call to `https://forum.algovera.ai/posts/{id}.json\"`, where the ID was taken from the URL of the particular post I was looking at.","actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":129457,"hidden":false,"trust_level":0,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/cant-retrieve-posts-with-api/255455/3","locale":"en","is_localized":false,"language":"en","activity_pub_enabled":false,"event":null,"customer_flair_customer":null,"reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null}