Page MenuHomePhabricator

outreach.wikimedia.org is not allowlisted for an mwapi Wikidata query
Closed, ResolvedPublic2 Estimated Story Points

Description

I would like to query links from This Month in GLAM in Outreach wiki. However, the error message to my query states that "Host outreach.wikimedia.org is not allowed". Can the wiki be allowlisted? Where to do that?

Example:

SELECT ?item ?itemLabel WHERE {
  SERVICE wikibase:mwapi {
	 bd:serviceParam wikibase:api "Generator" .
     bd:serviceParam wikibase:endpoint "outreach.wikimedia.org" . #point to the wiki you are searching
     bd:serviceParam mwapi:titles "GLAM/Newsletter/January_2022/Contents/AvoinGLAM_report" . #replace here if no QID
     bd:serviceParam mwapi:generator "links" .
    ?item wikibase:apiOutputItem mwapi:item .
    ?ns wikibase:apiOutput "@ns" .
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  FILTER (?ns = "0"). #showing only articles
}

Event Timeline

Gehel set the point value for this task to 2.May 5 2025, 3:43 PM

Change #1142651 had a related patch set uploaded (by Ebernhardson; author: Ebernhardson):

[wikidata/query/deploy@master] Allowlist outreach.wikimedia.org for mwapi

https://gerrit.wikimedia.org/r/1142651

Change #1143159 had a related patch set uploaded (by Ebernhardson; author: Ebernhardson):

[wikidata/query/rdf@master] Allowlist outreach.wikimedia.org for mwapi

https://gerrit.wikimedia.org/r/1143159

Change #1142651 abandoned by Ebernhardson:

[wikidata/query/deploy@master] Allowlist outreach.wikimedia.org for mwapi

Reason:

wrong repo, corect patch is I736bf13531a

https://gerrit.wikimedia.org/r/1142651

Change #1143159 merged by jenkins-bot:

[wikidata/query/rdf@master] Allowlist outreach.wikimedia.org for mwapi

https://gerrit.wikimedia.org/r/1143159

This is deployed now. Tests show the example query no longer errors out, although it doesn't give any results either. As far as I can tell not getting results is appropriate, the pages returned by the generator don't have a wikibase_item page prop and thus dont get represented here.