How can the categories of a wikipedia page be found using only page links?
The API you are looking for is here https://en.wikipedia.org/w/api.php This is a wiki API for multimedia and has a lot of documentation.
As above, you are looking for prop = categories so ... ? format = xml & action = query & prop = categories & title = Google for example
https://en.wikipedia.org/w/api.php?format=xml&action=query&prop=categories&titles=Google
If you want to use this in a program it might be worth taking a look at the following Wikipedia page which has a series of classes and libraries for different languages to handle the Wikipedia API etc
Wikipedia: Creating_a_bot # Programming_languages_and_libraries
source to share
MediaWiki (Wikipedia software) has an API and you can actually make a request to get the page categories. For example, the following returns the categories of Google
an English Wikipedia page :
https://en.wikipedia.org/w/api.php?format=xml&action=query&prop=categories&titles=Google
Please note that not all categories are returned in the same response. You will see an element with a name query-continue
that provides more information on how the next query should be phrased, which will give you more categories.
Literature:
source to share