Consuming an external API to publish/post to wordpress

You can use the HTTP API in combination with the Transient API, and of course you would most likely need to parse what you want. As for what to do with the data you will have to provide a more specific example, there are many actions, functions, and conditional parameters.