Skip to content
Advertisement

Tag: wikipedia-api

How to get Wikipedia image by title? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I want to get Image from wikipedia by title, for example I have a image title File:Island of Ireland location map Dublin.svg, and I also

How to Login to MediaWiki (Wikipedia) API in Node.js

I’m trying the Wikipedia client login flow depicted in the API:Login docs, but something wrong happens: 1) I correctly get a token raised with the HTTP GET https://en.wikipedia.org/w/api.php?action=query&meta=tokens&type=login&format=json and I get a valid logintoken string. 2.1) I then try the clientlogin like: HTTP POST /w/api.php?action=clientlogin&format=json&lgname=xxxx&lgtoken=xxxx%2B%5C and the POST BODY was But I get an error: If I try to change

Advertisement