Q: Can a search input be integrated to request data from an external API?
If I wanted to add a search input to my wordpress website and when a user searches something can this trigger the external api connection to retrieve the results and restructure that data to be presented on the search results page?
Is polling available for external API's?
Leonardo_GatoGraphQL
Mar 28, 2025A: Yes, can you connect via JavaScript, get the results, and output them in whatever format you want. For polling, you can just keep connecting to the server at regular intervals

Verified purchaser
Have you got any documentation on interacting with the search?
Here there is some: https://gatographql.com/tutorial/searching-wordpress-data. To search posts with certain string, check: https://gatographql.com/guides/query/posts. Then to connect to the server and execute the GraphQL query via JS: https://gatographql.com/guides/intro/connecting-to-the-graphql-server-from-a-client