I'm not sure, that this would be easily possible. I think a better way is using wikidata for that (that's the power of structered data :D). To get the birthday of a person (e.g.) you can use this query:

 

http://www.wikidata.org/w/api.php?action=wbgetclaims&entity=Q9488&property=P569

 

or the bio info (like you want) with property id P21:

 

http://www.wikidata.org/w/api.php?action=wbgetclaims&entity=Q9488&property=P21

 

Hope that helps!

 

Best
Florian

 

 

 

-----Original-Nachricht-----

Betreff: [Mediawiki-api] How to retrieve Bio information of a person in wikipedia using wikipedia web API?

Datum: Thu, 07 May 2015 08:02:29 +0200

Von: Sivashanmugam karthi <sivashanmugam4444@gmail.com>

An: mediawiki-api@lists.wikimedia.org

 

 

 

I am working on retrieving some particular bio details of a person from wikipedia page of that person through wikipedia web API.

I need to retrieve the bio information box of a person.

-------------------------------------------------------------------------------------------- 

-----------------------------------------------------------------------------------------------

I found how to retrieve the content box , introduction paragraph and all. The below URL is used to retrieve the first introduction para of the wiki webpage.

https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles=Sachin_Tendulkar

1)But I am struck with getting the above bio information box through wiki web api.So that i couldextract the specific details i want.

2) Is it possible to get a single information like only the full name of the person or only DOB of the person through a single query (instead of getting the bio whole information and extracting the details from it).