API talk:Iwlinks/Flow

About this board

https://en.wikipedia.org/w/api.php?action=query&titles=Data%20science&prop=iwlinks

6
PeterHeuz (talkcontribs)

Why does this not return any interwiki links though the Wikipedia page obviously has a lot of them?

RobinHood70 (talkcontribs)

I'm not seeing any interwiki links on that page. What are you seeing? Try links, extlinks, or langlinks and see if they have what you're looking for.

PeterHeuz (talkcontribs)

Thanks for your quick reply!

I mean this page: https://en.wikipedia.org/wiki/Data_science . To my understanding there are a lot of interwiki links. When I use extlinks it works perfectly. So that should be a valid value for the titles parameter.

RobinHood70 (talkcontribs)

Unless I've missed something, there are no interwiki links on that page apart from the language links (which are their own thing and aren't considered interwiki links for the purposes of the API). Just to be sure we're using the same terminology:

Regular wiki link = [[Template:link]] (links to the current wiki)

Interwiki link = [[wikt:Template:link]] (links to a different wiki - wiktionary in this example)

Language link = [[fr:Template:link]] (links to a different language variant of the wiki - the French wikipedia in this example)

External link = [http://google.com] (links to an external site - Google in this example)

If you're seeing actual interwiki links on that page, can you please highlight what they are? Also, be aware that if they're generated by a template, I don't believe Iwlinks would pick them up.

PeterHeuz (talkcontribs)

Thanks for the reply!

Indeed, I was thinking of interwiki links as links to other wikipedia articles. Our tutor gave us this task and she meant links to other wikipedia articles.

So, there is no parameter to grab those all together without other links, is there? I would therefore use the links property and just remove the extlinks from those.

RobinHood70 (talkcontribs)
Reply to "https://en.wikipedia.org/w/api.php?action=query&titles=Data%20science&prop=iwlinks"
There are no older topics
Return to "Iwlinks/Flow" page.