Call external API in wordpress based on user input

I want to create a simple wordpress website in which I want to display a search box on a page. On searching a string in text/search box, an external API call should be made based on that string and the data returned by the API should be shown to user.
I have successfully referred code from below URL so far – https://rapidapi.com/blog/integrate-external-api-wordpress/.

Is there any way to get list of all possible filter hooks for all post types?

I would like to code a plugin that injects the custom content to any type of post (post, page, product, any others) but I would like to allow the users to let them select the place of content too. Such as; before/after the title, before/after the content, before/after the comment section, and all other possibilities (e.g. the_content_more_link filter etc).