WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a solution or a way to consume an external web service API (could be JSON or SOAP) to be able populate/update a wordpress blog ? For example using wikipedia api to pull content that wikipedia.com has on the topic the post is about. I tried searching this topic alot online and all i found was how to create a API out of already exisitng posts in wordpress.

Any suggestions or ideas ?

share|improve this question

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.

share|improve this answer
thanks for suggestion @Wyck , however the "Transint API" is just for caching data in wordpress, is their a method or function to be able to publish/post the data as the wordpress post ? – eddywebs Nov 4 '11 at 17:16
The transient API is typically used for external API's since the data is dynamic, one of the reason API's exist in the first place is because the data is itself transient. As for saving it as a post, have a look at some action filters, codex.wordpress.org/Plugin_API/Action_Reference – Wyck Nov 4 '11 at 20:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.