Page MenuHomePhabricator

Allow specifying srsort parameter in MWAPI
Closed, ResolvedPublic

Event Timeline

Lucas_Werkmeister_WMDE claimed this task.
Lucas_Werkmeister_WMDE moved this task from Incoming to Docs on the Wikidata-Query-Service board.

It is supported, though:

SELECT * WHERE {
  SERVICE wikibase:mwapi {
      bd:serviceParam wikibase:endpoint "en.wikipedia.org";
                      wikibase:api "Search";
                      mwapi:srsearch "cheese";
                      mwapi:srsort "create_timestamp_asc".
      ?title wikibase:apiOutput mwapi:title.
  }
}
LIMIT 20

Try it!

I’ve updated the documentation to hopefully make this clearer.