wikidata_recent_changes

Pack: wikidata · Endpoint: https://gateway.pipeworx.io/wikidata/mcp

Newest items created or edited on Wikidata right now, from the live MediaWiki recent-changes feed. Answers “which Wikidata item was created most recently”, “what QIDs were created today”, “what changed on Wikidata in the last hour”, “recent edits to Wikidata items”. Returns each change newest-first with its Q-id, revision id, previous revision id, UTC timestamp, editing user, edit comment and byte size, plus a cursor for paging further back.

Parameters

NameTypeRequiredDescription
typestringnoWhich changes to list: “new” for freshly created items (default), “edit” for edits to existing items, “all” for both.
namespacenumbernoWikidata namespace: 0 = items/Q-ids (default), 120 = properties/P-ids, 146 = lexemes.
limitnumbernoMax changes to return (1-50, default 10).
sincestringnoStop at this UTC timestamp, ISO 8601 (e.g. “2026-08-22T00:00:00Z”). Listing runs newest-first back to this point.
userstringnoOnly changes made by this Wikidata username (e.g. “Dsp13”).
cursorstringnoContinue token from a previous call\x27s “cursor” field, to page further back in time.

Example call

Arguments

{
  "type": "new",
  "limit": 3
}

curl

curl -X POST https://gateway.pipeworx.io/wikidata/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"wikidata_recent_changes","arguments":{"type":"new","limit":3}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('wikidata_recent_changes', {
  "type": "new",
  "limit": 3
});

More examples

{
  "type": "edit",
  "limit": 2
}
{
  "type": "all",
  "namespace": 120,
  "limit": 2
}

Response shape

Always returns: found

FieldTypeDescription
foundbooleanWhether any changes matched
reasonstringMachine-readable code when found is false (invalid_type, invalid_since, no_changes_in_window, or a Wikidata API error code)
hintstringHow to get a result when found is false
typestringWhich changes were listed: new, edit or all
namespacenumberWikidata namespace listed (0 items, 120 properties, 146 lexemes)
countnumberNumber of changes returned
most_recentstringQ-id of the most recent change, the first row
most_recent_timestampstringUTC timestamp of that most recent change
changesarrayChanges newest-first
cursorstring | nullContinue token to page further back in time, or null at the end
sourcestringUpstream the rows came from
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean",
      "description": "Whether any changes matched"
    },
    "reason": {
      "type": "string",
      "description": "Machine-readable code when found is false (invalid_type, invalid_since, no_changes_in_window, or a Wikidata API error code)"
    },
    "hint": {
      "type": "string",
      "description": "How to get a result when found is false"
    },
    "type": {
      "type": "string",
      "description": "Which changes were listed: new, edit or all"
    },
    "namespace": {
      "type": "number",
      "description": "Wikidata namespace listed (0 items, 120 properties, 146 lexemes)"
    },
    "count": {
      "type": "number",
      "description": "Number of changes returned"
    },
    "most_recent": {
      "type": "string",
      "description": "Q-id of the most recent change, the first row"
    },
    "most_recent_timestamp": {
      "type": "string",
      "description": "UTC timestamp of that most recent change"
    },
    "changes": {
      "type": "array",
      "description": "Changes newest-first",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Wikidata entity id, e.g. Q141152117"
          },
          "change_type": {
            "type": "string",
            "description": "new or edit"
          },
          "namespace": {
            "type": "number",
            "description": "Namespace of the changed page"
          },
          "pageid": {
            "type": "number",
            "description": "MediaWiki page id"
          },
          "lastrevid": {
            "type": "number",
            "description": "Revision id created by this change"
          },
          "previous_revid": {
            "type": [
              "number",
              "null"
            ],
            "description": "Revision replaced, or null for a newly created item"
          },
          "timestamp": {
            "type": "string",
            "description": "UTC timestamp of the change (ISO 8601)"
          },
          "user": {
            "type": [
              "string",
              "null"
            ],
            "description": "Wikidata username that made the change"
          },
          "comment": {
            "type": [
              "string",
              "null"
            ],
            "description": "Edit summary"
          },
          "size_bytes": {
            "type": [
              "number",
              "null"
            ],
            "description": "Size of the page after the change"
          },
          "size_change_bytes": {
            "type": [
              "number",
              "null"
            ],
            "description": "Byte delta introduced by the change"
          },
          "url": {
            "type": "string",
            "description": "Entity page URL"
          },
          "revision_url": {
            "type": "string",
            "description": "Permalink to this revision"
          }
        },
        "required": [
          "id",
          "change_type",
          "namespace",
          "pageid",
          "lastrevid",
          "previous_revid",
          "timestamp",
          "user",
          "comment",
          "size_bytes",
          "size_change_bytes",
          "url",
          "revision_url"
        ]
      }
    },
    "cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Continue token to page further back in time, or null at the end"
    },
    "source": {
      "type": "string",
      "description": "Upstream the rows came from"
    }
  },
  "required": [
    "found"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "wikidata": {
      "url": "https://gateway.pipeworx.io/wikidata/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 22, 2026