Is there anything in the Discourse API that can help you like a post?
Yes, see How to reverse engineer the Discourse API and Discourse API Docs
what is the “post_action_type_id”?
For like it is 2 as you can check via How to reverse engineer the Discourse API
2