Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

Extension:AllSites

From Gamepedia Help Wiki
Jump to: navigation, search
AllSites
Version 1.3.1
Author(s)  • Tim Aldridge and Curse Inc©
Extension link GitLab
Description
Stats and list of all sites that are part of the Hydra wiki farm.

The AllSites extension provides information about all Gamepedia wikis through an API call or special page.

API documentation[edit | edit source]

action=allsites[edit | edit source]

Get stats and information about sites hosted on the wiki farm. There are several ways to control the amount of data returned.

  • Use lastModified to constrain the data by date.
  • Use siteKey to constrain the data to a specific wiki.
  • Use filter to control the data points returned. This can be combined with lastModified or siteKey.

do[edit | edit source]

All Sites query to perform. This defaults to getSiteStats if no do param is provided.

This is a placeholder for API expansion. There are no additional options at the time of this writing.

lastModified[edit | edit source]

Only return wikis modified after the date and time specified (unix timestamp).

siteKey[edit | edit source]

Only return data for the specified site. This is the key provided for each wiki as md5_key in the data for each wiki.

filter[edit | edit source]

Filter data points using a special syntax to represent array structure. Specify array keys separated by commas (,) and pipes (|) to indicate the array level.

For example, filter=totals,wikis|ss_total_wikis,wiki_name,wiki_domain,wiki_category,wiki_tags would return data in this structure:

  • data
    • totals
      • ss_total_wikis: total number of wikis in the farm
    • wikis
      • an array containing one object for each wiki returned, each with the following properties:
        • wiki_name
        • wiki_domain
        • wiki_category
        • wiki_tags

Maximum number of values is 50 (500 for bots).

Available statistics[edit | edit source]

  • wiki_name - Proper cased wiki name. Note: Not available on non-Hydra wikis.
  • wiki_domain - Live domain name of the site. Local development domain names will never be shown.
  • wiki_category - Note: Not available on non-Hydra wikis.
  • portal_master - If this wiki is a portal site to other wikis. Note: Not available on non-Hydra wikis.
  • portal_wiki - If this wiki is part of a portal wiki site. Note: Not available on non-Hydra wikis.
  • ss_total_views - Total page views.
  • ss_total_edits - Total historical edits.
  • ss_good_articles - Number of articles, not including images, templates, or otherwise.
  • ss_total_pages - All pages including images, templates, and otherwise.
  • ss_users - Total number of users.
  • ss_active_users - Total active users.
  • ss_admins - Number of admins.
  • ss_images - Total images.
  • ss_jobs - Note: Only available on non-Hydra wikis.

See also[edit | edit source]

External links[edit | edit source]