Home » Php » php – How do you filter WikiVoyage API results by city?

php – How do you filter WikiVoyage API results by city?

Posted by: admin July 12, 2020 Leave a comment

Questions:

I’m currently in the process of trying to use the wikivoyage api. My current api call looks like:

en.wikivoyage.org/w/api.php?action=query&list=search&srwhat=text&srsearch=Pari&format=json

I can’t figure out how to filter my results by city. I can’t figure out which parameter to use. These are the two pieces of documentation I am trying to sift through.

http://en.wikivoyage.org/w/api.php

http://en.wikivoyage.org/wiki/Special%3aApiSandbox

How to&Answers: