Hello,
I was not aware api.wikipedia are available in cached version !
I tried /rest_v1/ endpoint and it is terribly fast. @Strainu / @Gabriel , what does 'graph' extension do ?
I have few questions for using proxy cache: *1# Is it possible to query a page by page_ID and include redirect?*
/page/title/{title} allow to get metadata by page, including the pageID , but I would like to have final page redirect (e.g. dna return 7956 and I would like to fetch 7955 of redirected 'DNA' ) /page/html/{title} get the article but page_ID / curid is missing in source
I would like to get the two combined.
*2# The rest are experimental:* what could happen if a query fail? Does it raise an error, return 404 page or what else? I am thinking if possible to use api.wikipedia as fallback, and use proxy cache as primary source any ajax example for doing that to handle possible failures?
*3# Does /rest/ endpoint exist also for other languages?*
On Mon, Jan 25, 2016 at 10:13 PM, Gabriel Wicke gwicke@wikimedia.org wrote:
On Mon, Jan 25, 2016 at 11:38 AM, Oliver Keyes okeyes@wikimedia.org wrote:
Will it apply to the pageviews API as well?
It will, but the canonical URL for this has always been https://wikimedia.org/api/rest_v1/?doc, which will continue to work. Are you aware of any pageview users hitting rest.wikimedia.org?
In any case, we'll check the logs for remaining rest.wikimedia.org accesses & make an effort to remind remaining users before decommissioning it.
Gabriel
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api