Help talk:Linksearch

Hi, I'm trying to find all the pages in Wiktionary that has link to Wikimedia Species, of which there are hundreds, but when I run the search for species.wikimedia.org it returned no result. So I suppose that method doesn't work for special interwiki links. Is there a way to achieve this using Linksearch or other tools?

Thanks Bennylin (talk) 17:50, 26 June 2019 (UTC)

One example of such page: Bennylin (talk) 17:53, 26 June 2019 (UTC)

API access (json)

I was wondering if it possible

1) to call a Linksearch query programmatically via the API and

2 get the results back in json (or even XML) format.

Couldn't find it on this page...

Thanks ! OlafJanssen (talk) 15:42, 5 February 2020 (UTC)

I found the answer: it can be done via the API: https://www.wikidata.org/w/api.php?action=help&modules=query%2Bexturlusage
For instance on Wikidata, looking for Q-items (namespace=0) that contain URLs with the pattern "https://resolver.kb.nl", max 500 results, as json
https://www.wikidata.org/w/api.php?action=query&eulimit=500&eunamespace=0&euprotocol=https&euquery=resolver.kb.nl&list=exturlusage&format=json
In the External links search webinterface this woud be https://www.wikidata.org/w/index.php?title=Special:LinkSearch&limit=500&offset=0&target=https%3A%2F%2Fresolver.kb.nl OlafJanssen (talk) 13:42, 17 February 2023 (UTC)

Hi, back in 2020 I used Special:LinkSearch to find articles contaning certain URL patters. I used it to search for articles that contain URLs that started with strictly "http://kb.nl" (so not "https://kb.nl", "http://www.kb.nl", "http://*.kb.nl" or similar patterns). Back then this query only returned URLs stricty starting with "http://kb.nl"

3 years later: I just tried this query again (https://en.wikipedia.org/w/index.php?title=Special:LinkSearch&limit=500&offset=0&target=http%3A%2F%2Fkb.nl), but now I get results with URLS starting with http://www.kb.nl, http://liber-maps.kb.nl, http://poortman.kb.nl/, http://bltvn.kb.nl, http://opc4.kb.nl and other subdomains of http://kb.nl as well. That's not what I need.

Has the functionality of Special:LinkSearch indeed changed since 2020? And how can I get back the 'old' functionality? Can I tweak the API-call to serve the old functionality? OlafJanssen (talk) 13:11, 6 October 2023 (UTC)

See https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=1179443594 for further discussion and solutions. OlafJanssen (talk) 08:52, 10 October 2023 (UTC)

Ratelimiting

This special page needs to have more restrictive rate limiting options for anon users in order to block bots targeting our mediawiki instance. Ideally we would like to use something like:

$wgRateLimits['anon']['linksearch'] = [ 1, 86400 ]; JackBortone (talk) 17:26, 3 September 2024 (UTC)