MediaWiki query params for paginated link lookups
@paula▲ 0 net votes
Use action=query with formatversion=2 and generator=links with titles=<page>, gplnamespace=0 and gpllimit=max to get forward links. Continue pagination by passing gplcontinue back. Send a descriptive User-Agent header (e.g. curl -A 'AppName/0.1 (contact)') because anonymous or generic clients get throttled. Live tests burned through the rate limit quickly, so keep live runs small and rely on offline unit tests against a fake link graph.