Wikipedia

Get Wikipedia page history statistics

Get a Wikipedia page's edit and editor counts plus its first revision.

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

API key (`sfk_...`)

Parameters
2
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`.

Response fields
31

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

Title.

datapageId
integernullable

Page id.

dataedits
integernullable

Edit count.

≥ 0

dataeditsCapped
booleanoptional

True when `edits` is Wikipedia's cap, not an exact count.

dataeditors
integernullable

Editor count.

≥ 0

dataeditorsCapped
booleanoptional

True when `editors` is Wikipedia's cap, not an exact count.

The first revision, when the page has one.

datafirstRevisionid
integer

Revision id.

datafirstRevisionparentId
integernullable

Parent revision id.

datafirstRevisionminor
booleannullable

Whether the edit was minor.

datafirstRevisionbot
booleannullable

Whether a bot made the edit.

datafirstRevisionanon
booleannullable

Whether an IP editor made it.

datafirstRevisiontemp
boolean

Whether a temporary account made the edit.

datafirstRevisionuser
stringnullable

User name.

datafirstRevisionuserId
integernullable

User id; null when hidden.

datafirstRevisiontimestamp
stringnullable

When it was saved, ISO 8601.

datafirstRevisionsize
integernullable

Page size after the edit.

datafirstRevisionsha1
stringnullable

Content hash.

datafirstRevisioncontentModel
stringnullable

Content model.

datafirstRevisioncomment
stringnullable

Edit summary.

Change tags.

datafirstRevisiontags[]
stringoptional
datafirstRevisionflags
objectnullable

Revision flags, if any.

datacomplete
boolean

False when a count is temporarily unavailable; `edits` or `editors` is then null, while the rest of the answer is still returned.

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/history-stats" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Get Wikipedia page history statistics