Jump to content

Topic on API talk:Exturlusage

Aw8988 (talkcontribs)

Hello! I would like to get the number of links to a specific domain on Wikipedia (in my particular case the links to institutional repositories on different versions of wikipedia). This work perfectly fine as long as the number of links doesn't exceed 500.

I have seen the `eucontinue` parameter in the documentation but I couldn't figure out how to use it in an (iterative) API request.

Could anybody provide an example (maybe based on `get_exturlusage.py`) of how to use the eucontinue parameter?

Thank you!

Ciencia Al Poder (talkcontribs)

The example in API:Exturlusage#Response returns a "continue" property, which in turn contains "eucontinue" and "continue". You should append/merge both on the next request to continue pagination, until you no longer get a "continue" property in the response.

Reply to "Usage of eucontinue"