1 | initial version |
Yes, the Wikipedia API provides an endpoint for querying a page by its URL. The endpoint is called "action=parse" and accepts the "page" parameter with the URL-encoded name of the page as its value.
For example, to query the Wikipedia page for "Washington Monument" using its URL, you can use the following API request:
https://en.wikipedia.org/w/api.php?action=parse&page=Washington_Monument
This will return a JSON object with the parsed content of the page, including its title, sections, and HTML content.