{
  "openapi": "3.0.1",
  "info": {
    "title": "Wikipedia Edit History & Editor Activity Exporter",
    "description": "Export complete Wikipedia and Wikimedia edit histories without a key. Get per-revision records with diffs and wikitext, editor contribution feeds, and per-article statistics with top editors, quality assessment and protection logs.",
    "version": "1.0",
    "x-build-id": "wSzHiju35HYXmvWtP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~wikipedia-edit-history-and-editor-activity/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-wikipedia-edit-history-and-editor-activity",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/xyrelith-data~wikipedia-edit-history-and-editor-activity/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-wikipedia-edit-history-and-editor-activity",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/xyrelith-data~wikipedia-edit-history-and-editor-activity/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-wikipedia-edit-history-and-editor-activity",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "pageRevisions",
              "editorContributions",
              "pageSummary",
              "recentChanges"
            ],
            "type": "string",
            "description": "Page edit history lists every revision of the pages you enter. Editor contributions lists one editor's edits across a wiki. Page statistics returns one summary per article. Recent changes is a site-wide feed.",
            "default": "pageRevisions"
          },
          "pageUrls": {
            "title": "Pages",
            "type": "array",
            "description": "Article titles or full Wikimedia URLs. Full URLs set the language and project automatically, so you can mix en.wikipedia.org, de.wikipedia.org and en.wiktionary.org pages in one run. Used by pageRevisions and pageSummary.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoryNames": {
            "title": "Categories to expand",
            "type": "array",
            "description": "Category names such as 'American singer-songwriters' or 'Category:Physics'. Every member page is added to Pages. Used by pageRevisions and pageSummary.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxPagesFromCategory": {
            "title": "Max pages per category",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Upper limit on pages pulled from each category.",
            "default": 50
          },
          "editorUsernames": {
            "title": "Editors",
            "type": "array",
            "description": "Usernames, IP addresses or temporary account names. Used by editorContributions. User: prefixes and user-page URLs are accepted.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language edition",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "pt",
              "ru",
              "ja",
              "zh",
              "ar",
              "fa",
              "pl",
              "nl",
              "tr",
              "ko",
              "uk",
              "he",
              "id",
              "vi",
              "th",
              "sv",
              "cs",
              "hu",
              "ro",
              "da",
              "fi",
              "no",
              "bg",
              "el",
              "sr",
              "hr",
              "sk",
              "sl",
              "et",
              "lv",
              "lt",
              "ca",
              "gl",
              "eu",
              "hi",
              "bn",
              "ta",
              "te",
              "ml",
              "mr",
              "ur",
              "sw",
              "af",
              "ms",
              "simple",
              "other"
            ],
            "type": "string",
            "description": "Common Wikipedia/Wikimedia language editions. Choose Other to use any of the 300+ language codes in Language code override.",
            "default": "en"
          },
          "languageCode": {
            "title": "Language code override",
            "type": "string",
            "description": "Any Wikimedia language code such as be-tarask, zh-classical, nap or pms. Overrides Language edition when set."
          },
          "project": {
            "title": "Wikimedia project",
            "enum": [
              "wikipedia",
              "wiktionary",
              "wikibooks",
              "wikiquote",
              "wikinews",
              "wikisource",
              "wikiversity",
              "wikivoyage",
              "wikimedia",
              "wikidata",
              "mediawiki",
              "meta",
              "species",
              "incubator"
            ],
            "type": "string",
            "description": "Which project to read. Ignored for Commons, Wikidata, MediaWiki, Meta, Wikispecies and Incubator because they are language-neutral. Existing full URLs in Pages still set their own project.",
            "default": "wikipedia"
          },
          "fromDate": {
            "title": "From date",
            "type": "string",
            "description": "Oldest edit to include. Use YYYY-MM-DD or an ISO date-time such as 2025-01-31T12:00:00Z. Leave empty for the beginning of history."
          },
          "toDate": {
            "title": "To date",
            "type": "string",
            "description": "Newest edit to include. A plain date includes the whole day (UTC). Leave empty for now."
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Newest first is best for monitoring. Oldest first walks from the first edit forward.",
            "default": "newest"
          },
          "maxRevisionsPerPage": {
            "title": "Max revisions per page",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many matching revisions per page. The actor pages 500 revisions at a time until it reaches the limit or the page's first edit.",
            "default": 500
          },
          "maxItems": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on dataset records across the whole run.",
            "default": 500
          },
          "excludeBots": {
            "title": "Exclude bots",
            "type": "boolean",
            "description": "Drop edits made by bot accounts.",
            "default": false
          },
          "minorEdits": {
            "title": "Minor edits",
            "enum": [
              "all",
              "only",
              "exclude"
            ],
            "type": "string",
            "description": "Include every edit, only minor edits, or only non-minor edits.",
            "default": "all"
          },
          "onlyAnonymous": {
            "title": "Only anonymous edits",
            "type": "boolean",
            "description": "Keep only edits by IP addresses and temporary accounts.",
            "default": false
          },
          "onlyReverted": {
            "title": "Only reverted edits",
            "type": "boolean",
            "description": "Keep only edits that a later edit reverted, using the wiki's mw-reverted tag.",
            "default": false
          },
          "tagFilter": {
            "title": "Change tag",
            "type": "string",
            "description": "Keep only edits carrying this exact tag, for example mobile edit, visualeditor, mw-reverted or mw-undo."
          },
          "editorFilter": {
            "title": "Editor filter",
            "type": "string",
            "description": "Keep only edits by this exact username. Applies to pageRevisions and recentChanges."
          },
          "namespaceFilter": {
            "title": "Namespaces",
            "type": "string",
            "description": "Namespace IDs separated by commas, for example 0,4,14. Use all for every namespace. Applies to editorContributions and recentChanges.",
            "default": "all"
          },
          "topEditorsLimit": {
            "title": "Top editors to return",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many top editors to rank in each page statistics record.",
            "default": 20
          },
          "includeDiff": {
            "title": "Include added and removed text",
            "type": "boolean",
            "description": "Fetch the diff between each revision and its parent. Adds one compare request per revision, so keep Max revisions low when enabled.",
            "default": false
          },
          "includeWikitext": {
            "title": "Include full wikitext",
            "type": "boolean",
            "description": "Add the complete wikitext of every emitted revision. Can make datasets large.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}