> **For coding agents and LLMs:** This is one page from the Social Fetch docs (markdown export). For curated orientation and workflow guidance, start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for agent onboarding and crawl rules, use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for the full endpoint list with links to pages like this one, use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt); for one platform's parameters and curls, use [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt); use [`/llms.json`](https://www.socialfetch.dev/llms.json) when you need structured JSON for tool registration.

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/docs/api/v1/wikipedia/feed/get>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/docs/api/v1/wikipedia/feed/get.mdx>

## API base URL and authentication

- **API origin (from OpenAPI `servers`):** `https://api.socialfetch.dev`
- **Authentication:** send `x-api-key: sfk_...` on `/v1/**` and `/v2/**` routes unless the operation is explicitly anonymous (check OpenAPI `security`, the [API reference hub](https://www.socialfetch.dev/docs/api.mdx), [`/llms.txt`](https://www.socialfetch.dev/llms.txt), or [`/llms.json`](https://www.socialfetch.dev/llms.json) for each route).
- **OpenAPI JSON:** <https://www.socialfetch.dev/openapi.json>

## Recommended docs entrypoints (this site)

- [Documentation overview](https://www.socialfetch.dev/docs.mdx) — top-level orientation (markdown).
- [Quickstart](https://www.socialfetch.dev/docs/quickstart.mdx) — authenticate with `x-api-key`, validate auth with `whoami`, and understand the JSON envelope.
- [SDK](https://www.socialfetch.dev/docs/sdk.mdx) — official TypeScript SDK guide, including `SocialFetchClient`, `Result`, and `unwrap()`.
- [Capability matrix](https://www.socialfetch.dev/docs/capability-matrix.mdx) — every operation with identifiers, pagination, outcomes, media download, credits, and its SDK method. Generated from OpenAPI, so use it for route selection instead of scanning individual pages.
- [Recipes](https://www.socialfetch.dev/docs/recipes.mdx) — copyable workflows (brand monitoring, transcripts, Ad Library, creator scoring, Reddit research) with credit callouts and SDK examples.
- [Integrations](https://www.socialfetch.dev/docs/integrations.mdx) — MCP for AI clients, n8n verified node, Apify Store Actors, Make custom app, SDK, and REST API connection paths.
- [MCP product page](https://www.socialfetch.dev/mcp) — hosted MCP overview, OAuth, Skills install.
- [MCP integration](https://www.socialfetch.dev/docs/integrations/mcp.mdx) — hosted `/mcp` server, OAuth, Cursor/VS Code/Claude install snippets, 910 endpoint tools, plus docs_search/docs_read for implementation help.
- [n8n integration](https://www.socialfetch.dev/docs/integrations/n8n.mdx) — install `n8n-nodes-socialfetch`, credentials, and workflow examples.
- [Apify integration](https://www.socialfetch.dev/docs/integrations/apify.mdx) — Store Actors under @social-fetch, PPE billing, dataset export, and quick start.
- [Make integration](https://www.socialfetch.dev/docs/integrations/make.mdx) — custom app modules for Make scenarios, API key credentials, and module catalog.
- [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt) — every documented operation with a direct link to that route's agent-readable markdown page (prefer this over parsing OpenAPI).
- [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt) — per-platform endpoint files generated from OpenAPI (parameters, credits, curls).
- [`/agents.txt`](https://www.socialfetch.dev/agents.txt) — agent crawl/onboarding file with capabilities, auth rules, and allowlist.
- [`/llms.json`](https://www.socialfetch.dev/llms.json) — structured machine-readable operation inventory with parameter names, pagination, outcomes, credits, and SDK mapping.
- [API reference hub](https://www.socialfetch.dev/docs/api.mdx) — human-friendly index of operations with links into generated pages.
- [Errors](https://www.socialfetch.dev/docs/errors.mdx) — shared error envelope and HTTP status guidance.
- [Credits](https://www.socialfetch.dev/docs/credits.mdx) — metering, `402`, and planning batch jobs.
- Outcome semantics such as `found`, `not_found`, and `private` are documented in [Errors](https://www.socialfetch.dev/docs/errors.mdx) and on operation pages when present in the OpenAPI contract.

## Markdown docs convention

- Every docs page has a markdown twin: append **`.mdx`** to the docs pathname (for example `/docs/quickstart` → `/docs/quickstart.mdx`).
- Agents that send `Accept: text/markdown` on `/docs/**` HTML URLs may receive markdown directly (same URL, `Vary: Accept`).
- Published blog posts use the same convention: `/blog/{slug}` → `/blog/{slug}.mdx`, or `Accept: text/markdown` on the HTML URL (`Vary: Accept`).

---
# Get Wikipedia featured feed (https://www.socialfetch.dev/docs/api/v1/wikipedia/feed/get)

## Summary

Get a Wikipedia edition's featured article, most-read articles, picture of the day and on-this-day entries for a day.

**Tags:** `Wikipedia`

## HTTP

- **Method:** GET
- **Path:** `/v1/wikipedia/feed`
- **Base URL:** `https://api.socialfetch.dev`

## Capability summary

- **SDK mapping:** `client.wikipedia.getFeed({ date: "2026-11-02" })`
- **Pagination:** none
- **Business outcome field:** `data.lookupStatus` with values `found`, `not_found`

## Credits

- **Base:** 1 credit per successful lookup.
- **Maximum on success (200):** 1 credit.
- **Failed requests (`lookup_failed`, `503`):** not charged.
- **Authoritative field:** `meta.creditsCharged`.

## Authentication

- **`x-api-key`**: API key (`sfk_...`)

## Parameters

### `lang` (query)

- **Required:** no
- **Constraints:** type `string`; default: `en`
- **Description:** Wikimedia edition code, e.g. `en`, `de`, `ja`, `simple` or `zh-min-nan`. Default: `en`.

### `date` (query)

- **Required:** no
- **Constraints:** type `string`; pattern: `^\d{4}-\d{2}-\d{2}$`
- **Description:** Day, `YYYY-MM-DD`. Default: yesterday, UTC.

## Responses (status codes)

- **200**: Get Wikipedia featured feed
- **400**: Invalid request
- **401**: Missing or invalid API key
- **402**: Insufficient credits
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed.
- **503**: Service temporarily unavailable; safe to retry with backoff.

## Response body (200)

Get Wikipedia featured feed

### Field outline

- **data** (required) — type `object`. Endpoint-specific response payload.
  - **lookupStatus** (required) — type `string`; enum: found, not_found. 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`.
  - **lang** (required) — type `string`. Edition code.
  - **date** (required) — type `string`. Day requested, `YYYY-MM-DD`.
  - **tfa** (required) — type `object`; nullable. Today's featured article.
    - **type** (required) — type `string`; nullable. Page kind, e.g. `standard`, `disambiguation`, `no-extract` or `mainpage`.
    - **title** (required) — type `string`. Title with underscores.
    - **displayTitle** (required) — type `string`; nullable. Title with display markup.
    - **namespace** (required) — type `object`; nullable. Namespace reference.
      - **id** (required) — type `integer`. Namespace id.
      - **text** (required) — type `string`. Namespace name, empty for main articles.
    - **wikibaseItem** (required) — type `string`; nullable. Wikidata entity id, e.g. `Q937`.
    - **titles** (required) — type `object`. The title in its canonical, normalised and display forms.
      - **canonical** (required) — type `string`; nullable. Canonical title form.
      - **normalized** (required) — type `string`; nullable. Normalised title form.
      - **display** (required) — type `string`; nullable. Display title form.
    - **pageId** (required) — type `integer`; nullable. Page id.
    - **thumbnail** (required) — type `object`; nullable. An image URL and its natural size.
      - **source** (required) — type `string`. Image URL. The file host may add its own tracking parameters.
      - **width** (required) — type `integer`; minimum: 0; nullable. Width in pixels.
      - **height** (required) — type `integer`; minimum: 0; nullable. Height in pixels.
    - **originalImage** (required) — type `object`; nullable. An image URL and its natural size.
      - **source** (required) — type `string`. Image URL. The file host may add its own tracking parameters.
      - **width** (required) — type `integer`; minimum: 0; nullable. Width in pixels.
      - **height** (required) — type `integer`; minimum: 0; nullable. Height in pixels.
    - **lang** (required) — type `string`; nullable. Edition code.
    - **dir** (required) — type `string`; enum: ltr, rtl, null; nullable. Writing direction of the edition.
    - **revision** (required) — type `string`; nullable. Latest revision id.
    - **tid** (required) — type `string`; nullable. Opaque page state marker.
    - **timestamp** (required) — type `string`; nullable. Latest revision time, ISO 8601.
    - **description** (required) — type `string`; nullable. Short description.
    - **descriptionSource** (required) — type `string`; enum: local, central, null; nullable. Where the description comes from.
    - **contentUrls** (required) — type `object`. Desktop and mobile URLs for the page and its actions.
    - **extract** (required) — type `string`; nullable. Plain-text lead.
    - **extractHtml** (required) — type `string`; nullable. Lead as HTML.
    - **normalizedTitle** (required) — type `string`; nullable. Title without underscores.
  - **mostRead** (required) — type `object`; nullable. The most-read articles.
    - **date** (required) — type `string`; nullable. The day the list is for, in the form the edition publishes it, for example `2026-11-01Z`.
    - **articles** (required) — type `array`. Most-read articles of the day.
      - _items:_
  - **image** (required) — type `object`; nullable. Picture of the day.
    - **title** (required) — type `string`. File title as the feed writes it; it can differ from `filePage`.
    - **thumbnail** (required) — type `object`; nullable. An image URL and its natural size.
      - **source** (required) — type `string`. Image URL. The file host may add its own tracking parameters.
      - **width** (required) — type `integer`; minimum: 0; nullable. Width in pixels.
      - **height** (required) — type `integer`; minimum: 0; nullable. Height in pixels.
    - **image** (required) — type `object`; nullable. An image URL and its natural size.
      - **source** (required) — type `string`. Image URL. The file host may add its own tracking parameters.
      - **width** (required) — type `integer`; minimum: 0; nullable. Width in pixels.
      - **height** (required) — type `integer`; minimum: 0; nullable. Height in pixels.
    - **filePage** (required) — type `string`; nullable. Canonical file page URL; its title can differ from `title`.
    - **artist** (required) — type `object`; nullable. A media caption.
      - **html** (required) — type `string`; nullable. Caption as HTML.
      - **text** (required) — type `string`; nullable. Caption as plain text.
    - **credit** (required) — type `object`; nullable. A media caption.
      - **html** (required) — type `string`; nullable. Caption as HTML.
      - **text** (required) — type `string`; nullable. Caption as plain text.
    - **license** (required) — type `object`; nullable. Licence of the picture of the day.
      - **type** (required) — type `string`; nullable. Licence type, e.g. `CC0`.
      - **code** (required) — type `string`; nullable. Licence code.
      - **url** (required) — type `string`; nullable. Licence URL.
    - **description** (required) — type `object`; nullable. A media caption.
      - **html** (required) — type `string`; nullable. Caption as HTML.
      - **text** (required) — type `string`; nullable. Caption as plain text.
    - **wbEntityId** (required) — type `string`; nullable. Structured-data entity id.
    - **structured** (required) — type `object`; nullable. Structured data, when present.
  - **onThisDay** (required) — type `array`; nullable. On-this-day entries in the featured feed.
    - _items:_
      - **text** (required) — type `string`. The event, birth, death, holiday or news text.
      - **year** (required) — type `integer`; nullable. Year, when the entry has one.
      - **pages** (required) — type `array`. Linked pages.
        - _items:_
  - **news** (required) — type `array`; nullable. In the news, when the edition has it that day.
    - _items:_
      - **text** (required) — type `string`. The event, birth, death, holiday or news text.
      - **year** (required) — type `integer`; nullable. Year, when the entry has one.
      - **pages** (required) — type `array`. Linked pages.
        - _items:_
  - **empty** (required) — type `boolean`. Whether the answer is a valid empty result rather than missing.
- **meta** (required) — type `object`. Metadata describing the request and billing outcome.
  - **requestId** (required) — type `string`; minLength: 1. Unique request identifier for tracing this API call.
  - **creditsCharged** (required) — type `integer`; minimum: 0. Credits charged for this request.
  - **version** (required) — type `string`; enum: v1. Public API version that served the response.

### Example JSON (found)

```json
{
  "data": {
    "lookupStatus": "found",
    "lang": "en",
    "date": "2026-11-02",
    "tfa": {
      "type": "standard",
      "title": "Sovetsky_Soyuz-class_battleship",
      "displayTitle": "Sovetsky Soyuz-class battleship",
      "namespace": {
        "id": 0,
        "text": ""
      },
      "wikibaseItem": "Q432231",
      "titles": {
        "canonical": "Sovetsky_Soyuz-class_battleship",
        "normalized": "Sovetsky Soyuz-class battleship",
        "display": "<i>Sovetsky Soyuz</i>-class battleship"
      },
      "pageId": 4976693,
      "thumbnail": {
        "source": "https://upload.wikimedia.org/wikipedia/commons/9/97/Soviets…",
        "width": 652,
        "height": 452
      },
      "originalImage": {
        "source": "https://upload.wikimedia.org/wikipedia/commons/9/97/Soviets…",
        "width": 652,
        "height": 452
      },
      "lang": "en",
      "dir": "ltr",
      "revision": "1384162851",
      "tid": "b24ff336-da32-11f1-9834-cec559cb655c",
      "timestamp": "2026-11-06T22:37:50Z",
      "description": "Planned class of Soviet battleships",
      "descriptionSource": "local",
      "contentUrls": {
        "desktop": {
          "page": "https://en.wikipedia.org/wiki/Sovetsky_Soyuz-class_battlesh…",
          "revisions": "https://en.wikipedia.org/wiki/Sovetsky_Soyuz-class_battlesh…",
          "edit": "https://en.wikipedia.org/wiki/Sovetsky_Soyuz-class_battlesh…",
          "talk": "https://en.wikipedia.org/wiki/Talk:Sovetsky_Soyuz-class_bat…"
        },
        "mobile": {
          "page": "https://en.wikipedia.org/wiki/Sovetsky_Soyuz-class_battlesh…",
          "revisions": "https://en.wikipedia.org/wiki/Special:History/Sovetsky_Soyu…",
          "edit": "https://en.wikipedia.org/wiki/Sovetsky_Soyuz-class_battlesh…",
          "talk": "https://en.wikipedia.org/wiki/Talk:Sovetsky_Soyuz-class_bat…"
        }
      },
      "extract": "The Sovetsky Soyuz-class battleships were a class of battle…",
      "extractHtml": "<p>The <b><i>Sovetsky Soyuz</i>-class battleships</b> were …",
      "normalizedTitle": "Sovetsky Soyuz-class battleship"
    },
    "mostRead": {
      "date": "2026-11-01Z",
      "articles": [
        {
          "type": "standard",
          "title": "Haley_Stevens",
          "displayTitle": "Haley Stevens",
          "namespace": {
            "id": 0,
            "text": ""
          },
          "wikibaseItem": "Q58322563",
          "titles": {
            "canonical": "Haley_Stevens",
            "normalized": "Haley Stevens",
            "display": "<span lang=\"en\" dir=\"ltr\"><span class=\"mw-page-title-main\">…"
          },
          "pageId": 58813029,
          "thumbnail": {
            "source": "https://thumb.wikimedia.org/wikipedia/commons/thumb/5/5d/Ha…",
            "width": 330,
            "height": 495
          },
          "originalImage": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/5/5d/Haley_S…",
            "width": 1365,
            "height": 2048
          },
          "lang": "en",
          "dir": "ltr",
          "revision": "1384199516",
          "tid": "349de0e5-da56-11f1-bf8d-9f846c697bba",
          "timestamp": "2026-11-07T02:52:01Z",
          "description": "American politician (born 1983)",
          "descriptionSource": "local",
          "contentUrls": {
            "desktop": {
              "page": "https://en.wikipedia.org/wiki/Haley_Stevens",
              "revisions": "https://en.wikipedia.org/wiki/Haley_Stevens?action=history",
              "edit": "https://en.wikipedia.org/wiki/Haley_Stevens?action=edit",
              "talk": "https://en.wikipedia.org/wiki/Talk:Haley_Stevens"
            },
            "mobile": {
              "page": "https://en.wikipedia.org/wiki/Haley_Stevens",
              "revisions": "https://en.wikipedia.org/wiki/Special:History/Haley_Stevens",
              "edit": "https://en.wikipedia.org/wiki/Haley_Stevens?action=edit",
              "talk": "https://en.wikipedia.org/wiki/Talk:Haley_Stevens"
            }
          },
          "extract": "Haley Maria Stevens is an American politician serving as th…",
          "extractHtml": "<p><b>Haley Maria Stevens</b> is an American politician ser…",
          "normalizedTitle": "Haley Stevens",
          "views": 360148,
          "rank": 4,
          "viewHistory": [
            {
              "date": "2026-10-28Z",
              "views": 4150
            }
          ]
        }
      ]
    },
    "image": {
      "title": "File:Saint-Charles Cemetery 05.jpg",
      "thumbnail": {
        "source": "https://thumb.wikimedia.org/wikipedia/commons/thumb/1/15/Sn…",
        "width": 640,
        "height": 427
      },
      "image": {
        "source": "https://upload.wikimedia.org/wikipedia/commons/1/15/Snow-co…",
        "width": 8256,
        "height": 5504
      },
      "filePage": "https://commons.wikimedia.org/wiki/File:Snow-covered_Saint-…",
      "artist": {
        "html": "<bdi><a href=\"https://www.wikidata.org/wiki/Q115464159\" cla…",
        "text": "Wilfredor"
      },
      "credit": {
        "html": "<span class=\"int-own-work\" lang=\"en\">Own work</span>",
        "text": "Own work"
      },
      "license": {
        "type": "CC0",
        "code": "cc0",
        "url": "http://creativecommons.org/publicdomain/zero/1.0/deed.en"
      },
      "description": {
        "html": "Saint-Charles Cemetery is the largest cemetery in <a rel=\"m…",
        "text": "Saint-Charles Cemetery is the largest cemetery in Quebec Ci…"
      },
      "wbEntityId": "M198412878",
      "structured": {
        "captions": {}
      }
    },
    "onThisDay": [
      {
        "text": "Lewis Hamilton overtook Timo Glock in the final corners of …",
        "year": 2008,
        "pages": [
          {
            "type": "standard",
            "title": "Lewis_Hamilton",
            "displayTitle": "Lewis Hamilton",
            "namespace": {
              "id": 0,
              "text": ""
            },
            "wikibaseItem": "Q9673",
            "titles": {
              "canonical": "Lewis_Hamilton",
              "normalized": "Lewis Hamilton",
              "display": "<span lang=\"en\" dir=\"ltr\"><span class=\"mw-page-title-main\">…"
            },
            "pageId": 675561,
            "thumbnail": {
              "source": "https://thumb.wikimedia.org/wikipedia/commons/thumb/d/d3/Pr…",
              "width": 330,
              "height": 440
            },
            "originalImage": {
              "source": "https://upload.wikimedia.org/wikipedia/commons/d/d3/Prime_M…",
              "width": 1430,
              "height": 1907
            },
            "lang": "en",
            "dir": "ltr",
            "revision": "1384169042",
            "tid": "fd6d050b-da38-11f1-bb77-2313b210523b",
            "timestamp": "2026-11-06T23:22:53Z",
            "description": "British racing driver (born 1985)",
            "descriptionSource": "local",
            "contentUrls": {
              "desktop": {
                "page": "https://en.wikipedia.org/wiki/Lewis_Hamilton",
                "revisions": "https://en.wikipedia.org/wiki/Lewis_Hamilton?action=history",
                "edit": "https://en.wikipedia.org/wiki/Lewis_Hamilton?action=edit",
                "talk": "https://en.wikipedia.org/wiki/Talk:Lewis_Hamilton"
              },
              "mobile": {
                "page": "https://en.wikipedia.org/wiki/Lewis_Hamilton",
                "revisions": "https://en.wikipedia.org/wiki/Special:History/Lewis_Hamilton",
                "edit": "https://en.wikipedia.org/wiki/Lewis_Hamilton?action=edit",
                "talk": "https://en.wikipedia.org/wiki/Talk:Lewis_Hamilton"
              }
            },
            "extract": "Sir Lewis Carl Davidson Hamilton is a British racing driver…",
            "extractHtml": "<p><b>Sir Lewis Carl Davidson Hamilton</b> is a British rac…",
            "normalizedTitle": "Lewis Hamilton"
          }
        ]
      }
    ],
    "news": null,
    "empty": false
  },
  "meta": {
    "requestId": "req_15f143cc-e1c0-4226-9f3b-807616975c88",
    "creditsCharged": 1,
    "version": "v1"
  }
}
```

### Machine-readable error codes

When an error JSON body is returned, it may include one of these `error.code` values (derived from the OpenAPI schemas for this operation; additional codes may exist at runtime):

- `bad_request`

## Error handling & retries

Interpret HTTP status codes using the descriptions below. Do not assume a JSON body unless the OpenAPI schema defines one for that status.

- **400**: Invalid request **Retry:** Fix the request; retrying the same invalid payload will not help.
- **401**: Missing or invalid API key **Retry:** Fix the API key first; retrying without changes will not help.
- **402**: Insufficient credits **Retry:** Do not retry without resolving billing/credits (retrying the same request will not help).
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed. **Retry:** May be transient; a few retries with backoff are reasonable.
- **503**: Service temporarily unavailable; safe to retry with backoff. **Retry:** Usually safe to retry with exponential backoff and jitter.

### Suggested client defaults

- Send the API key using the `x-api-key` header on every request.
- On `503` (and sometimes `502`), retry with backoff; cap retries and surface a clear error to the user.
- On `402`, surface an actionable billing message rather than blind retries.

## Examples

### TypeScript SDK

```typescript
import { SocialFetchClient } from "@socialfetch/sdk";

const client = new SocialFetchClient({
  apiKey: process.env.SOCIALFETCH_API_KEY!,
});

const result = await client.wikipedia.getFeed({
  date: "2026-11-02",
});

if (!result.ok) {
  console.error(result.error);
} else {
  console.log(result.value.data);
}
```

### Node.js

```javascript
const response = await fetch(
  "https://api.socialfetch.dev/v1/wikipedia/feed?date=2026-11-02",
  {
    headers: {
      "x-api-key": "YOUR_API_KEY"
    }
  }
);

const data = await response.json();
console.log(data);
```

### cURL

```bash
curl "https://api.socialfetch.dev/v1/wikipedia/feed?date=2026-11-02" \
  -H "x-api-key: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.get(
    "https://api.socialfetch.dev/v1/wikipedia/feed?date=2026-11-02",
    headers={"x-api-key": "YOUR_API_KEY"},
)
data = response.json()
print(data)
```