Wikipedia

Get Wikipedia on-this-day entries

Get selected Wikipedia anniversaries, births, deaths, events or holidays for a month and day.

GET/v1/wikipedia/on-this-day
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
4
monthintegerrequiredquery

Month, 1 to 12.

≥ 1 · ≤ 12

dayintegerrequiredquery

Day of the month, 1 to 31.

≥ 1 · ≤ 31

langstringoptionalquery

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

typestringoptionalquery

`selected`, `births`, `deaths`, `events`, `holidays` or `all` (default). Each type can be several MB, and `all` returns every type at once.

one of: selected, births, deaths, events, holidays, all

Response fields
186

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.

datamonth
integer

Month.

dataday
integer

Day.

datatype
string

Which entries were requested.

one of: selected, births, deaths, events, holidays, all

Selected anniversaries, when requested.

dataselected[]text
string

The event, birth, death, holiday or news text.

dataselected[]year
integernullable

Year, when the entry has one.

Linked pages.

dataselected[]pages[]type
stringnullable

Page kind, e.g. `standard`, `disambiguation`, `no-extract` or `mainpage`.

dataselected[]pages[]title
string

Title with underscores.

dataselected[]pages[]displayTitle
stringnullable

Title with display markup.

Namespace reference.

dataselected[]pages[]namespaceid
integer

Namespace id.

dataselected[]pages[]namespacetext
string

Namespace name, empty for main articles.

dataselected[]pages[]wikibaseItem
stringnullable

Wikidata entity id, e.g. `Q937`.

The title in its canonical, normalised and display forms.

dataselected[]pages[]titlescanonical
stringnullable

Canonical title form.

dataselected[]pages[]titlesnormalized
stringnullable

Normalised title form.

dataselected[]pages[]titlesdisplay
stringnullable

Display title form.

dataselected[]pages[]pageId
integernullable

Page id.

An image URL and its natural size.

dataselected[]pages[]thumbnailsource
string

Image URL. The file host may add its own tracking parameters.

dataselected[]pages[]thumbnailwidth
integernullable

Width in pixels.

≥ 0

dataselected[]pages[]thumbnailheight
integernullable

Height in pixels.

≥ 0

An image URL and its natural size.

dataselected[]pages[]originalImagesource
string

Image URL. The file host may add its own tracking parameters.

dataselected[]pages[]originalImagewidth
integernullable

Width in pixels.

≥ 0

dataselected[]pages[]originalImageheight
integernullable

Height in pixels.

≥ 0

dataselected[]pages[]lang
stringnullable

Edition code.

dataselected[]pages[]dir
stringnullable

Writing direction of the edition.

one of: ltr, rtl, null

dataselected[]pages[]revision
stringnullable

Latest revision id.

dataselected[]pages[]tid
stringnullable

Opaque page state marker.

dataselected[]pages[]timestamp
stringnullable

Latest revision time, ISO 8601.

dataselected[]pages[]description
stringnullable

Short description.

dataselected[]pages[]descriptionSource
stringnullable

Where the description comes from.

one of: local, central, null

dataselected[]pages[]contentUrls
object

Desktop and mobile URLs for the page and its actions.

dataselected[]pages[]extract
stringnullable

Plain-text lead.

dataselected[]pages[]extractHtml
stringnullable

Lead as HTML.

dataselected[]pages[]normalizedTitle
stringnullable

Title without underscores.

Births, when requested.

databirths[]text
string

The event, birth, death, holiday or news text.

databirths[]year
integernullable

Year, when the entry has one.

Linked pages.

databirths[]pages[]type
stringnullable

Page kind, e.g. `standard`, `disambiguation`, `no-extract` or `mainpage`.

databirths[]pages[]title
string

Title with underscores.

databirths[]pages[]displayTitle
stringnullable

Title with display markup.

Namespace reference.

databirths[]pages[]namespaceid
integer

Namespace id.

databirths[]pages[]namespacetext
string

Namespace name, empty for main articles.

databirths[]pages[]wikibaseItem
stringnullable

Wikidata entity id, e.g. `Q937`.

The title in its canonical, normalised and display forms.

databirths[]pages[]titlescanonical
stringnullable

Canonical title form.

databirths[]pages[]titlesnormalized
stringnullable

Normalised title form.

databirths[]pages[]titlesdisplay
stringnullable

Display title form.

databirths[]pages[]pageId
integernullable

Page id.

An image URL and its natural size.

databirths[]pages[]thumbnailsource
string

Image URL. The file host may add its own tracking parameters.

databirths[]pages[]thumbnailwidth
integernullable

Width in pixels.

≥ 0

databirths[]pages[]thumbnailheight
integernullable

Height in pixels.

≥ 0

An image URL and its natural size.

databirths[]pages[]originalImagesource
string

Image URL. The file host may add its own tracking parameters.

databirths[]pages[]originalImagewidth
integernullable

Width in pixels.

≥ 0

databirths[]pages[]originalImageheight
integernullable

Height in pixels.

≥ 0

databirths[]pages[]lang
stringnullable

Edition code.

databirths[]pages[]dir
stringnullable

Writing direction of the edition.

one of: ltr, rtl, null

databirths[]pages[]revision
stringnullable

Latest revision id.

databirths[]pages[]tid
stringnullable

Opaque page state marker.

databirths[]pages[]timestamp
stringnullable

Latest revision time, ISO 8601.

databirths[]pages[]description
stringnullable

Short description.

databirths[]pages[]descriptionSource
stringnullable

Where the description comes from.

one of: local, central, null

databirths[]pages[]contentUrls
object

Desktop and mobile URLs for the page and its actions.

databirths[]pages[]extract
stringnullable

Plain-text lead.

databirths[]pages[]extractHtml
stringnullable

Lead as HTML.

databirths[]pages[]normalizedTitle
stringnullable

Title without underscores.

Deaths, when requested.

datadeaths[]text
string

The event, birth, death, holiday or news text.

datadeaths[]year
integernullable

Year, when the entry has one.

Linked pages.

datadeaths[]pages[]type
stringnullable

Page kind, e.g. `standard`, `disambiguation`, `no-extract` or `mainpage`.

datadeaths[]pages[]title
string

Title with underscores.

datadeaths[]pages[]displayTitle
stringnullable

Title with display markup.

Namespace reference.

datadeaths[]pages[]namespaceid
integer

Namespace id.

datadeaths[]pages[]namespacetext
string

Namespace name, empty for main articles.

datadeaths[]pages[]wikibaseItem
stringnullable

Wikidata entity id, e.g. `Q937`.

The title in its canonical, normalised and display forms.

datadeaths[]pages[]titlescanonical
stringnullable

Canonical title form.

datadeaths[]pages[]titlesnormalized
stringnullable

Normalised title form.

datadeaths[]pages[]titlesdisplay
stringnullable

Display title form.

datadeaths[]pages[]pageId
integernullable

Page id.

An image URL and its natural size.

datadeaths[]pages[]thumbnailsource
string

Image URL. The file host may add its own tracking parameters.

datadeaths[]pages[]thumbnailwidth
integernullable

Width in pixels.

≥ 0

datadeaths[]pages[]thumbnailheight
integernullable

Height in pixels.

≥ 0

An image URL and its natural size.

datadeaths[]pages[]originalImagesource
string

Image URL. The file host may add its own tracking parameters.

datadeaths[]pages[]originalImagewidth
integernullable

Width in pixels.

≥ 0

datadeaths[]pages[]originalImageheight
integernullable

Height in pixels.

≥ 0

datadeaths[]pages[]lang
stringnullable

Edition code.

datadeaths[]pages[]dir
stringnullable

Writing direction of the edition.

one of: ltr, rtl, null

datadeaths[]pages[]revision
stringnullable

Latest revision id.

datadeaths[]pages[]tid
stringnullable

Opaque page state marker.

datadeaths[]pages[]timestamp
stringnullable

Latest revision time, ISO 8601.

datadeaths[]pages[]description
stringnullable

Short description.

datadeaths[]pages[]descriptionSource
stringnullable

Where the description comes from.

one of: local, central, null

datadeaths[]pages[]contentUrls
object

Desktop and mobile URLs for the page and its actions.

datadeaths[]pages[]extract
stringnullable

Plain-text lead.

datadeaths[]pages[]extractHtml
stringnullable

Lead as HTML.

datadeaths[]pages[]normalizedTitle
stringnullable

Title without underscores.

Events, when requested.

dataevents[]text
string

The event, birth, death, holiday or news text.

dataevents[]year
integernullable

Year, when the entry has one.

Linked pages.

dataevents[]pages[]type
stringnullable

Page kind, e.g. `standard`, `disambiguation`, `no-extract` or `mainpage`.

dataevents[]pages[]title
string

Title with underscores.

dataevents[]pages[]displayTitle
stringnullable

Title with display markup.

Namespace reference.

dataevents[]pages[]namespaceid
integer

Namespace id.

dataevents[]pages[]namespacetext
string

Namespace name, empty for main articles.

dataevents[]pages[]wikibaseItem
stringnullable

Wikidata entity id, e.g. `Q937`.

The title in its canonical, normalised and display forms.

dataevents[]pages[]titlescanonical
stringnullable

Canonical title form.

dataevents[]pages[]titlesnormalized
stringnullable

Normalised title form.

dataevents[]pages[]titlesdisplay
stringnullable

Display title form.

dataevents[]pages[]pageId
integernullable

Page id.

An image URL and its natural size.

dataevents[]pages[]thumbnailsource
string

Image URL. The file host may add its own tracking parameters.

dataevents[]pages[]thumbnailwidth
integernullable

Width in pixels.

≥ 0

dataevents[]pages[]thumbnailheight
integernullable

Height in pixels.

≥ 0

An image URL and its natural size.

dataevents[]pages[]originalImagesource
string

Image URL. The file host may add its own tracking parameters.

dataevents[]pages[]originalImagewidth
integernullable

Width in pixels.

≥ 0

dataevents[]pages[]originalImageheight
integernullable

Height in pixels.

≥ 0

dataevents[]pages[]lang
stringnullable

Edition code.

dataevents[]pages[]dir
stringnullable

Writing direction of the edition.

one of: ltr, rtl, null

dataevents[]pages[]revision
stringnullable

Latest revision id.

dataevents[]pages[]tid
stringnullable

Opaque page state marker.

dataevents[]pages[]timestamp
stringnullable

Latest revision time, ISO 8601.

dataevents[]pages[]description
stringnullable

Short description.

dataevents[]pages[]descriptionSource
stringnullable

Where the description comes from.

one of: local, central, null

dataevents[]pages[]contentUrls
object

Desktop and mobile URLs for the page and its actions.

dataevents[]pages[]extract
stringnullable

Plain-text lead.

dataevents[]pages[]extractHtml
stringnullable

Lead as HTML.

dataevents[]pages[]normalizedTitle
stringnullable

Title without underscores.

Holidays, when requested.

dataholidays[]text
string

The event, birth, death, holiday or news text.

dataholidays[]year
integernullable

Year, when the entry has one.

Linked pages.

dataholidays[]pages[]type
stringnullable

Page kind, e.g. `standard`, `disambiguation`, `no-extract` or `mainpage`.

dataholidays[]pages[]title
string

Title with underscores.

dataholidays[]pages[]displayTitle
stringnullable

Title with display markup.

Namespace reference.

dataholidays[]pages[]namespaceid
integer

Namespace id.

dataholidays[]pages[]namespacetext
string

Namespace name, empty for main articles.

dataholidays[]pages[]wikibaseItem
stringnullable

Wikidata entity id, e.g. `Q937`.

The title in its canonical, normalised and display forms.

dataholidays[]pages[]titlescanonical
stringnullable

Canonical title form.

dataholidays[]pages[]titlesnormalized
stringnullable

Normalised title form.

dataholidays[]pages[]titlesdisplay
stringnullable

Display title form.

dataholidays[]pages[]pageId
integernullable

Page id.

An image URL and its natural size.

dataholidays[]pages[]thumbnailsource
string

Image URL. The file host may add its own tracking parameters.

dataholidays[]pages[]thumbnailwidth
integernullable

Width in pixels.

≥ 0

dataholidays[]pages[]thumbnailheight
integernullable

Height in pixels.

≥ 0

An image URL and its natural size.

dataholidays[]pages[]originalImagesource
string

Image URL. The file host may add its own tracking parameters.

dataholidays[]pages[]originalImagewidth
integernullable

Width in pixels.

≥ 0

dataholidays[]pages[]originalImageheight
integernullable

Height in pixels.

≥ 0

dataholidays[]pages[]lang
stringnullable

Edition code.

dataholidays[]pages[]dir
stringnullable

Writing direction of the edition.

one of: ltr, rtl, null

dataholidays[]pages[]revision
stringnullable

Latest revision id.

dataholidays[]pages[]tid
stringnullable

Opaque page state marker.

dataholidays[]pages[]timestamp
stringnullable

Latest revision time, ISO 8601.

dataholidays[]pages[]description
stringnullable

Short description.

dataholidays[]pages[]descriptionSource
stringnullable

Where the description comes from.

one of: local, central, null

dataholidays[]pages[]contentUrls
object

Desktop and mobile URLs for the page and its actions.

dataholidays[]pages[]extract
stringnullable

Plain-text lead.

dataholidays[]pages[]extractHtml
stringnullable

Lead as HTML.

dataholidays[]pages[]normalizedTitle
stringnullable

Title without underscores.

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/on-this-day?month=11&day=2" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Get Wikipedia on-this-day entries