Wikipedia hub

Wikipedia Logs API

Public log events by type, page or time, with parameters and the acting user.

GET /v1/wikipedia/logs

1 credit Failed requests are free

About this endpoint

GET /v1/wikipedia/logs?lang=en&type=delete returns data.events, one row per public log event. Each row has logId, ns, title, pageId, logPage, revId, params, type, action, user, userId, temp, timestamp, comment and tags. temp marks an automatically named temporary account.

type narrows to delete, move, block, protect, newusers, upload, patrol, review, rights, create, merge, thanks or abusefilter. title narrows to one page and since returns events at or after an ISO 8601 time. limit accepts 1 to 500 rows and cursor continues with data.page.nextCursor.

params keeps the event's own fields, such as the deletion reason or the block duration. It is an open object because each log type has its own parameters. A filter that matches nothing is found with empty: true.

Wikipedia Logs API FAQ

Which log types can I filter by?

delete, move, block, protect, newusers, upload, patrol, review, rights, create, merge, thanks and abusefilter. Omit type to read all public log events.

Can I see the deletion reason?

Look in params. Each log type stores its own fields there, and the deletion reason is one of them. comment holds the edit summary attached to the log event.

Does this include every log?

Only public logs are returned. Some actions are not public or are oversighted, so those rows do not appear. An empty filter result means no public event matched.

How is log paging billed?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth. Each paginated page is a separate billed request.