Similar to this, I created "HN Faves API", which is an API to fetch a user's favorited posts and comments on HN. Interestingly, HN doesn't have an official API for this.
On GitHub: https://github.com/plibither8/hn-faves-api
You can try it out here: https://hn-faves.mihir.ch