aris
December 27, 2012, 5:15pm
1
Hi,
is there any API for historical dates on web that returns data in xml or
json format. For example, I need to get importants events in history on
todays day and show that events in my app.
Is there any good place to do it?
And if you know for some other useful API, you can also write it.
Thanks in advance
aldm
December 27, 2012, 6:04pm
2
Wikipedia has a nice API that can return values in a variety of formats.
You’ll have to process the wikitext yourself, though.
E.g. to return the text of the article about 27th of December, wrapped
in a JSON structure:
{"continue":{"rvcontinue":"20230131064547|1136616305","continue":"||"},"warnings":{"main":{"*":"Subscribe to the mediawiki-api-announce mailing list at for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application."},"revisions":{"*":"Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."}},"query":{"pages":...
You can view the API reference at MediaWiki API help - Wikipedia ,
read more at API - MediaWiki , and play with it in
your browser at API sandbox - Wikipedia .