-4

Possible Duplicate:
Is there a Wikipedia API?

Is there any API or any particular way to load pages to my site. For example if am viewing www.mysite.com/php , its should display a block which contains data from wiki!

Please give a sample example too

Community
  • 1
  • 1
Serjas
  • 2,184
  • 4
  • 21
  • 35

2 Answers2

2

Yes, the documentation for the Wikipedia API shows up very near the top of a Google search for Wikipedia API.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
1

Wikipedia has an API, see:

http://en.wikipedia.org/w/api.php

You can use this for loading contents, though be careful not to simply 'data mine' from Wikipedia as this will score your sites negatively in search engines.

Ollie
  • 544
  • 4
  • 22
  • I just want a block which will show as additional info .. Thanks – Serjas Sep 27 '12 at 10:42
  • can you give a basic sample? for example http://en.wikipedia.org/wiki/Special:ApiSandbox which action returns contents of a particular page? – Serjas Sep 27 '12 at 10:51
  • I imagine you're looking at `prop=extracts` or similar, you need to look at what you need and therefore which part of articles you wish to request. – Ollie Sep 27 '12 at 11:04