The link is correct. The purpose of that control is to provide a URL to the doc page with all the parameters prefilled. This is what most users expect and is similar to how that link control works on the rest of Stack Exchange.
To get a direct link to the API, click on the link next to the Run button:
This has a URL like:
From the docs:
Searches a site for any questions which fit the given criteria.
The searches on the API aren't guaranteed to exactly replicate the current on-site search, so this behaviour is expected. This may change in some future release of the API, but the current behaviour is closer to the old on-site search approach, which only ever ...