### Example: Fetch site info and revisions Source: https://wiki.plati.online/api.php?action=help&modules=query&submodules=1 This example demonstrates how to fetch site information and revisions for a specific page using the query module. ```APIDOC api.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20Page&rvprop=user|comment&continue= [open in sandbox] ``` -------------------------------- ### Get Info for 4 Pages Starting with 'T' Source: https://wiki.plati.online/api.php?action=help&modules=query%2Ballpages This example retrieves basic information for up to 4 pages whose titles start with 'T'. It utilizes the generator functionality to fetch pages and then requests their info. ```api api.php?action=query&generator=allpages&gaplimit=4&gapfrom=T&prop=info ``` -------------------------------- ### Start Login Process Source: https://wiki.plati.online/api.php?action=help&modules=clientlogin Initiates the login process for a user by providing credentials and a return URL. A 'login' token is required. ```api api.php?action=clientlogin&username=Example&password=ExamplePassword&loginreturnurl=http://example.org/&logintoken=123ABC ``` -------------------------------- ### Get pages containing redirects using generator Source: https://wiki.plati.online/api.php?action=help&modules=query%2Ballredirects This example uses the `allredirects` module as a generator to retrieve pages that contain redirects, starting from redirects with titles beginning with 'B'. ```APIDOC ## GET api.php?action=query&generator=allredirects ### Description Uses the `allredirects` module as a generator to retrieve pages that contain redirects, starting from a specified redirect title. ### Method GET ### Endpoint /api.php ### Query Parameters - **action** (string) - Required - Must be "query". - **generator** (string) - Required - Must be "allredirects". - **garfrom** (string) - Optional - The title of the redirect to start enumerating from. ### Request Example ``` api.php?action=query&generator=allredirects&garfrom=B ``` ``` -------------------------------- ### Start User Account Creation Source: https://wiki.plati.online/index.php/Special%3AApiHelp/createaccount Initiates the user account creation process by providing username, password, return URL, and a createaccount token. This is the first step in creating a new user account via the API. ```api api.php?action=createaccount&username=Example&password=ExamplePassword&retype=ExamplePassword&createreturnurl=http://example.org/&createtoken=123ABC ``` -------------------------------- ### Get all target pages using generator Source: https://wiki.plati.online/api.php?action=help&modules=query%2Ballredirects This example uses the `allredirects` module as a generator to retrieve all target pages, marking missing ones, starting from redirects with titles beginning with 'B'. ```APIDOC ## GET api.php?action=query&generator=allredirects ### Description Uses the `allredirects` module as a generator to retrieve all target pages, marking missing ones, starting from a specified redirect title. ### Method GET ### Endpoint /api.php ### Query Parameters - **action** (string) - Required - Must be "query". - **generator** (string) - Required - Must be "allredirects". - **garunique** (boolean) - Optional - If set, only show distinct target pages. - **garfrom** (string) - Optional - The title of the redirect to start enumerating from. ### Request Example ``` api.php?action=query&generator=allredirects&garunique=&garfrom=B ``` ```