On Mon, Jan 9, 2017 at 7:43 AM, Erik Bernhardson <[email protected]
> wrote:

> Unfortunately URL isn't one of the currently returned field in the search
> API. Currently you can simply append the returned title to the /wiki/
> prefix of the same domain to generate a URL.  The basic API is:
>
> https://en.wikipedia.org/w/api.php?action=query&list=
> search&srsearch=symfony
>
> I'll add a ticket later to make an optional parameter to return the fully
> qualified URL. Being explicit couldn't be bad.
>

You can get the URL via generators, at the cost of not getting the snippet
and other search-specific data:

https://en.wikipedia.org/w/api.php?action=query&generator=search&gsrsearch=symfony&prop=info&inprop=url
_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to