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?
filter=withbody
gives me an HTML body but it's still amazing if this is the only option.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.