Jump to content

Wikipedia API with PHP


gr8gatzb

Recommended Posts

I am trying to create something like this:

 

http://dayprime.com/?q=apple

 

The box at the top is taking data (the first paragraph) and a picture from wikipedia based on a keyword.

 

However, when I use the opensearch action in the wikipedia API (http://en.wikipedia.org/w/api.php), it returns just one line and a much smaller picture. Any ideas or code or links to show me how I can take an image and the first paragraph of a wikipedia article?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/190485-wikipedia-api-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.