2

I tried https://api.stackexchange.com/2.3/users/MY USER ID/timeline?sort=creation&page=1&pagesize=100&site=stackoverflow, then https://api.stackexchange.com/2.3/users/MY USER ID/timeline?sort=creation&page=2&pagesize=100&site=stackoverflow and continued to do the same requests incrementing page numbers until the API got to the last smaller page of data. I got an array called "items" that contained all of my questions, comments, answers, etc... but no body text.

I figured maybe if I requested "questions" individually it would give me the body text and then I could repeat this process for answers and comments. I ran https://api.stackexchange.com/2.3/questions/QUESTION ID 1;QUESTION ID 2;QUESTION ID 3;MORE QUESTION IDS SEPARATED BY SEMI COLONS ETC...?site=stackoverflow and the result still didn't have body text.

So how can I do a query that actually gives me the body text of my questions, answers, and/or comments?

5
  • Do you want the markdown content or do you want the rendered HTML content? Jun 5 at 6:18
  • 2
    Cross site duplicate: meta.stackexchange.com/questions/113204/… Jun 5 at 6:25
  • This comment in the post you liked worked! meta.stackexchange.com/a/175264/1373918. I would prefer markdown and appending filter=withbody gives me an HTML body but it's still amazing if this is the only option. Jun 5 at 7:38
  • 1
    You can make a custom filter to get the markdown body as described in one of the linked answers Jun 5 at 7:46
  • It should also be possible to use SEDE: something like select * from Posts where UserID = <your id>, and then download the CSV of the results. I did that (not sure of the exact details) recently and it works fine. However, the post bodies will be rendered HTML, not Markdown. Jun 9 at 1:23

0

You must log in to answer this question.

Browse other questions tagged .