Wikipedia

List Wikipedia page revisions

List a Wikipedia page's revisions with users, sizes and tags; a reversed date window is swapped for the chosen direction.

GET/v1/wikipedia/pages/{title}/revisions
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
7
titlestringrequiredpath

Page title on the chosen edition, e.g. `Albert Einstein`, `C++` or `Talk:Barack Obama`. URL-encode it in the path.

langstringoptionalquery

Wikimedia edition code, e.g. `en`, `de`, `ja`, `simple` or `zh-min-nan`. Default: `en`.

limitintegeroptionalquery

Rows per page, 1 to 500. Default: 50.

≥ 1 · ≤ 500

cursorstringoptionalquery

Cursor from `page.nextCursor` of the previous response. It only works with the same filters.

min 1 chars · max 2048 chars

fromstringoptionalquery

Start of the window as a real `YYYY-MM-DD` day (read as midnight UTC) or a full ISO 8601 date-time with a zone.

tostringoptionalquery

End of the window as a real `YYYY-MM-DD` day (read as midnight UTC) or a full ISO 8601 date-time with a zone.

dirstringoptionalquery

Direction from `from`: `older` (default) or `newer`. A reversed `from`/`to` window is swapped for the chosen direction.

one of: older, newer

Response fields
30

Endpoint-specific response payload.

datalookupStatus
string

Whether the entity, page or data set exists. A missing entity is `not_found`; an existing entity with no rows is `found` with `empty: true`.

one of: found, not_found

datalang
string

Edition code.

datatitle
string

The resolved title.

datapageId
integernullable

Page id.

Revisions in this page of the walk.

datarevisions[]id
integer

Revision id.

datarevisions[]parentId
integernullable

Parent revision id.

datarevisions[]minor
booleannullable

Whether the edit was minor.

datarevisions[]bot
booleannullable

Whether a bot made the edit.

datarevisions[]anon
booleannullable

Whether an IP editor made it.

datarevisions[]temp
boolean

Whether a temporary account made the edit.

datarevisions[]user
stringnullable

User name.

datarevisions[]userId
integernullable

User id; null when hidden.

datarevisions[]timestamp
stringnullable

When it was saved, ISO 8601.

datarevisions[]size
integernullable

Page size after the edit.

datarevisions[]sha1
stringnullable

Content hash.

datarevisions[]contentModel
stringnullable

Content model.

datarevisions[]comment
stringnullable

Edit summary.

Change tags.

datarevisions[]tags[]
stringoptional
datarevisions[]flags
objectnullable

Revision flags, if any.

Pagination state. `nextCursor` is null on the last page.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Cursor to pass in the next request when more pages exist; null on the last page.

dataempty
boolean

Whether the answer is a valid empty result rather than missing.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/wikipedia/pages/Albert%20Einstein/revisions?limit=10" \
  -H "x-api-key: YOUR_API_KEY"

Responses

List Wikipedia page revisions