There was the Pushshift project, which archived all of Reddit's posts and comments in text (JSON) form. You can download the data here: posts, comments.
If you're on Linux, once you have downloaded and extracted the respective file, you could run something like grep -m 1 '"id":"11eoagd"' RS_2023-03 | jq, where 11eoagd is the post ID. It's not pretty, but it works.