Page MenuHomePhabricator

Allow host for MediaWiki API queries
Open, Needs TriagePublic1 Estimated Story Points


Running the following query gives the error "Host is not allowed"

select ?item {
  service wikibase:mwapi {
    bd:serviceParam wikibase:endpoint "" .
    bd:serviceParam wikibase:api "Generator" .
    bd:serviceParam mwapi:generator "search" .
    bd:serviceParam mwapi:gsrsearch "test" .
    ?item wikibase:apiOutputItem mwapi:item .
} limit 10


Event Timeline

Context: T261125: Allow domain from wdqs mwapi service was resolved by allowing calls to “any site that could be a sitelink”, but couldn’t be used for sitelinks at that time; it only became supported earlier today (T138332).