Wikipedia / MediaWiki Reading lists API

Private lists of selected pages

GitHub OpenAPI

Operations 13

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /data/lists/setup Opt in to reading lists · Wikimedia REST Opt in to Use Reading Lists #
Ask an LLM
“How do I enable reading lists for my account?”
“What do I need before I can start using reading lists?”
Tell an agent
Opt in to reading lists using CSRF token {csrf_token}.
Set up reading lists for my account.
POST /data/lists/teardown Opt out of reading lists · Wikimedia REST Opt Out from Using Reading Lists #
Ask an LLM
“How do I stop using reading lists entirely?”
“Does opting out delete all my reading list data?”
Tell an agent destructive · confirm first
Opt out of reading lists using CSRF token {csrf_token}.
Turn reading lists off and delete all my data.
GET /data/lists/ List my reading lists · Wikimedia REST Get All Lists of the Current User #
Ask an LLM
“What reading lists have I created?”
“Can I sort my lists by name or by when they were last updated?”
Tell an agent
List all my reading lists.
List my reading lists sorted by {sort}.
POST /data/lists/ Create a reading list · Wikimedia REST Create a New List for the Current User #
Ask an LLM
“How do I create a new empty reading list?”
“What happens if I try to create a list with a name that already exists?”
Tell an agent
Create a reading list named {name}.
Create a new empty list called {name} described as {description}.
PUT /data/lists/{id} Rename or edit a reading list · Wikimedia REST Update a List #
Ask an LLM
“How do I rename a reading list I already have?”
“Can I change the description of an existing list?”
Tell an agent
Rename reading list {id} to {name}.
Update list {id} with name {name} and description {description}.
DELETE /data/lists/{id} Delete a reading list · Wikimedia REST Delete a List #
Ask an LLM
“How do I delete a reading list?”
“Can I remove a list I no longer use?”
Tell an agent destructive · confirm first
Delete reading list {id}.
Remove my old list {id}.
POST /data/lists/batch Create several reading lists at once · Wikimedia REST Create Multiple New Lists for the Current User #
Ask an LLM
“Can I create multiple reading lists in one request?”
“Is there a batch way to set up several new lists?”
Tell an agent
Create these reading lists in one batch: {batch}.
Set up several new empty lists at once.
GET /data/lists/{id}/entries/ List the pages in a reading list · Wikimedia REST Get All Entries of a Given List #
Ask an LLM
“Which pages are in one of my reading lists?”
“Can I sort the entries of a list by page title?”
Tell an agent
List the entries in reading list {id}.
Show the pages in list {id} sorted by {sort}.
POST /data/lists/{id}/entries/ Add a page to a reading list · Wikimedia REST Create a New List Entry #
Ask an LLM
“How do I add a Wikipedia page to a reading list?”
“What happens if I add a page that is already in the list?”
Tell an agent
Add {title} on {project} to reading list {id}.
Put page {title} from {project} into list {id}.
DELETE /data/lists/{id}/entries/{entry_id} Remove a page from a reading list · Wikimedia REST Delete a List Entry #
Ask an LLM
“How do I take a page out of a reading list?”
“Can I delete one entry from a list?”
Tell an agent destructive · confirm first
Delete entry {entry_id} from reading list {id}.
Remove page {entry_id} from list {id}.
POST /data/lists/{id}/entries/batch Add many pages to a reading list · Wikimedia REST Create Multiple New List Entries #
Ask an LLM
“Can I add several pages to a list in one request?”
“Is there a batch way to populate a reading list?”
Tell an agent
Add these pages to reading list {id} in one batch: {batch}.
Populate list {id} with several new entries at once.
GET /data/lists/pages/{project}/{title} Find which lists contain a page · Wikimedia REST Get Lists of the Current User Which Contain a Given Page #
Ask an LLM
“Which of my reading lists contain a particular Wikipedia page?”
“Can I look up a page and see all my lists that include it?”
Tell an agent
Find the lists that contain {title} on {project}.
Show which of my lists include page {title} from {project}.
GET /data/lists/changes/since/{date} Get recent changes to my reading lists · Wikimedia REST Get Recent Changes to the Lists #
Ask an LLM
“What has changed in my reading lists since a certain date?”
“Can I sync my reading lists with changes made after a given time?”
Tell an agent
Show reading list changes since {date}.
Get my reading list changes since {date}, continuing from {next}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wikipedia:wikipedia-reading-lists-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wikipedia-reading-lists-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: Wikimedia REST Reading lists API
  description: This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats.
  termsOfService: https://wikimediafoundation.org/wiki/Terms_of_Use
  contact:
    name: the Wikimedia Services team
    url: http://mediawiki.org/wiki/Wikimedia_REST_API
  license:
    name: Apache2
    url: http://www.apache.org/licenses/LICENSE-2.0
  x-generated-from: spec-endpoint
  x-source-url: https://en.wikipedia.org/api/rest_v1/?spec
servers:
- url: https://en.wikipedia.org/api/rest_v1
  description: English Wikipedia REST v1 endpoint
- url: https://{lang}.wikipedia.org/api/rest_v1
  description: Per-language Wikipedia REST v1 endpoint
  variables:
    lang:
      default: en
      description: Language code (e.g. en, de, fr, es, ja)
tags:
- name: Reading lists
  description: Private lists of selected pages
  externalDocs:
    description: Project documentation
    url: https://www.mediawiki.org/wiki/Reading/Reading_Lists
paths:
  /data/lists/setup:
    post:
      tags:
      - Reading lists
      summary: Wikimedia REST Opt in to Use Reading Lists
      description: 'Must precede other list operations.


        Request must be authenticated with a MediaWiki session cookie.


        Stability: unstable'
      parameters:
      - name: csrf_token
        in: query
        required: true
        schema:
          type: string
          example: f63c343876da566045e6b59c4532450559c828d3+\
        description: The CRSF edit token provided by the MediaWiki API
      responses:
        '200':
          description: Success.
          content:
            application/json; charset=utf-8:
              schema:
                type: object
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: postDataListsSetup
      x-operation-id-source: derived
  /data/lists/teardown:
    post:
      tags:
      - Reading lists
      summary: Wikimedia REST Opt Out from Using Reading Lists
      description: 'Deletes all data. User needs to opt in again before being able to do anything.


        Request must be authenticated with a MediaWiki session cookie.


        Stability: unstable'
      parameters:
      - name: csrf_token
        in: query
        required: true
        schema:
          type: string
          example: f63c343876da566045e6b59c4532450559c828d3+\
        description: The CRSF edit token provided by the MediaWiki API
      responses:
        '200':
          description: Success.
          content:
            application/json; charset=utf-8:
              schema:
                type: object
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: postDataListsTeardown
      x-operation-id-source: derived
  /data/lists/:
    get:
      tags:
      - Reading lists
      summary: Wikimedia REST Get All Lists of the Current User
      description: 'Returns metadata describing the lists of the current user. Might be truncated and include

        a continuation token.


        Request must be authenticated with a MediaWiki session cookie.


        Stability: unstable'
      parameters:
      - name: next
        in: query
        description: Continuation parameter from previous request
        schema:
          type: string
      - name: sort
        in: query
        description: 'Sort order

          - `name`: by name, ascending;

          - `updated`: by last modification date, descending.

          '
        schema:
          type: string
          default: updated
          enum:
          - name
          - updated
      responses:
        '200':
          description: An array of list metadata.
          content:
            application/json; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/Lists/0.1":
              schema:
                type: object
                properties:
                  lists:
                    type: array
                    items:
                      $ref: '#/components/schemas/list_read'
                  next:
                    type: string
                    description: Continuation token.
                  continue-from:
                    type: string
                    format: date-time
                    description: 'Timestamp to sync from, to be used with the `GET /lists/changes/since/{date}`

                      endpoint.

                      '
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: getDataLists
      x-operation-id-source: derived
    post:
      tags:
      - Reading lists
      summary: Wikimedia REST Create a New List for the Current User
      description: 'Creates a new empty list. On name conflict, does nothing and returns the data of an

        existing list.


        Request must be authenticated with a MediaWiki session cookie.


        Stability: unstable


        This endpoint is deprecated and might be removed without warning. Use the batch version

        instead.'
      x-maxsize: 5000
      parameters:
      - name: csrf_token
        in: query
        required: true
        schema:
          type: string
          example: f63c343876da566045e6b59c4532450559c828d3+\
        description: The CRSF edit token provided by the MediaWiki API
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/list_write'
        required: true
      responses:
        '200':
          description: The data for the new list.
          content:
            application/json; charset=utf-8:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                    description: 'List ID.


                      Deprecated, will be removed. Use the full list object.

                      '
                    example: 7
                  list:
                    $ref: '#/components/schemas/list_read'
                required:
                - id
                - list
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: postDataLists
      x-operation-id-source: derived
  /data/lists/{id}:
    put:
      tags:
      - Reading lists
      summary: Wikimedia REST Update a List
      description: 'List must belong to current user and request must be authenticated with

        a MediaWiki session cookie. If the name is changed, the new name must not be in use.


        Stability: unstable'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          example: 42
      - name: csrf_token
        in: query
        required: true
        schema:
          type: string
          example: f63c343876da566045e6b59c4532450559c828d3+\
        description: The CRSF edit token provided by the MediaWiki API
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/list_write'
        required: false
      responses:
        '200':
          description: The updated data for the list.
          content:
            application/json; charset=utf-8:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                    description: 'List ID.


                      Deprecated, will be removed. Use the full list object.

                      '
                    example: 7
                  list:
                    $ref: '#/components/schemas/list_read'
                required:
                - id
                - list
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: putDataListsById
      x-operation-id-source: derived
    delete:
      tags:
      - Reading lists
      summary: Wikimedia REST Delete a List
      description: 'List must belong to current user and request must be authenticated with

        a MediaWiki session cookie.


        Stability: unstable'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          example: 42
      responses:
        '200':
          description: Success.
          content:
            application/json; charset=utf-8:
              schema:
                type: object
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: deleteDataListsById
      x-operation-id-source: derived
  /data/lists/batch:
    post:
      tags:
      - Reading lists
      summary: Wikimedia REST Create Multiple New Lists for the Current User
      description: 'See `POST /lists/`.


        Stability: unstable'
      x-maxsize: 5000
      parameters:
      - name: csrf_token
        in: query
        required: true
        schema:
          type: string
          example: f63c343876da566045e6b59c4532450559c828d3+\
        description: The CRSF edit token provided by the MediaWiki API
      requestBody:
        content:
          '*/*':
            schema:
              title: batch
              required:
              - batch
              type: object
              properties:
                batch:
                  maxItems: 500
                  type: array
                  items:
                    $ref: '#/components/schemas/list_write'
        required: true
      responses:
        '200':
          description: The data for the new lists (in the same order as the inputs).
          content:
            application/json; charset=utf-8:
              schema:
                title: list_create_batch
                type: object
                properties:
                  batch:
                    type: array
                    description: Deprecated, will be removed. Use the full list objects instead.
                    items:
                      title: list_id
                      type: object
                      required:
                      - id
                      properties:
                        id:
                          type: integer
                          description: List ID
                          example: 7
                  lists:
                    type: array
                    items:
                      $ref: '#/components/schemas/list_read'
                required:
                - batch
                - lists
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: postDataListsBatch
      x-operation-id-source: derived
  /data/lists/{id}/entries/:
    get:
      tags:
      - Reading lists
      summary: Wikimedia REST Get All Entries of a Given List
      description: 'Returns pages contained by the given list. Might be truncated and include

        a continuation token.


        List must belong to current user and request must be authenticated with

        a MediaWiki session cookie.


        Stability: unstable'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          example: 42
      - name: next
        in: query
        description: Continuation parameter from previous request
        schema:
          type: string
      - name: sort
        in: query
        description: 'Sort order

          - `name`: by page title, ascending;

          - `updated`: by last modification date, descending.

          '
        schema:
          type: string
          default: updated
          enum:
          - name
          - updated
      responses:
        '200':
          description: An array of list entries.
          content:
            application/json; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/Lists/0.1":
              schema:
                type: object
                properties:
                  entries:
                    type: array
                    items:
                      $ref: '#/components/schemas/list_entry_read'
                  next:
                    type: string
                    description: Continuation token.
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      operationId: getListEntries
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      tags:
      - Reading lists
      summary: Wikimedia REST Create a New List Entry
      description: 'Creates a new list entry in the given list. On conflict, does nothing and returns the

        data of an existing list.


        The list must belong to the current user and the request must be

        authenticated with a MediaWiki session cookie.


        Stability: unstable


        This endpoint is deprecated and might be removed without warning. Use the batch version

        instead.'
      x-maxsize: 100
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          example: 42
      - name: csrf_token
        in: query
        required: true
        schema:
          type: string
          example: f63c343876da566045e6b59c4532450559c828d3+\
        description: The CRSF edit token provided by the MediaWiki API
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/list_entry_write'
        required: true
      responses:
        '200':
          description: The data for the new list entry.
          content:
            application/json; charset=utf-8:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                    description: 'List entry ID


                      Deprecated, will be removed. Use the full entry object instead.

                      '
                    example: 13
                  entry:
                    $ref: '#/components/schemas/list_entry_read'
                required:
                - id
                - entry
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: postDataListsByIdEntries
      x-operation-id-source: derived
  /data/lists/{id}/entries/{entry_id}:
    delete:
      tags:
      - Reading lists
      summary: Wikimedia REST Delete a List Entry
      description: 'Deletes a given list entry.


        The list must belong to the current user and the request must be

        authenticated with a MediaWiki session cookie.


        Stability: unstable'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          example: 42
      - name: entry_id
        in: path
        required: true
        schema:
          type: integer
          example: 64
      responses:
        '200':
          description: Success.
          content:
            application/json; charset=utf-8:
              schema:
                type: object
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: deleteDataListsByIdEntriesByEntryId
      x-operation-id-source: derived
  /data/lists/{id}/entries/batch:
    post:
      tags:
      - Reading lists
      summary: Wikimedia REST Create Multiple New List Entries
      description: 'See `POST /lists/{id}/entries/`.


        Stability: unstable'
      x-maxsize: 100
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          example: 42
      - name: csrf_token
        in: query
        required: true
        schema:
          type: string
          example: f63c343876da566045e6b59c4532450559c828d3+\
        description: The CRSF edit token provided by the MediaWiki API
      requestBody:
        content:
          '*/*':
            schema:
              type: object
              required:
              - batch
              properties:
                batch:
                  title: list_entries
                  type: array
                  maxItems: 500
                  items:
                    $ref: '#/components/schemas/list_entry_write'
        required: true
      responses:
        '200':
          description: The data for the new list entries (in the same order as the inputs).
          content:
            application/json; charset=utf-8:
              schema:
                type: object
                properties:
                  batch:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: List entry ID
                          example: 13
                  entries:
                    type: array
                    items:
                      $ref: '#/components/schemas/list_entry_read'
                required:
                - entries
                - batch
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: postDataListsByIdEntriesBatch
      x-operation-id-source: derived
  /data/lists/pages/{project}/{title}:
    get:
      tags:
      - Reading lists
      summary: Wikimedia REST Get Lists of the Current User Which Contain a Given Page
      description: 'Request must be authenticated with a MediaWiki session cookie.


        Stability: unstable'
      parameters:
      - name: project
        in: path
        schema:
          type: string
          description: Domain of the wiki containing the page.
          example: https://en.wikipedia.org
        required: true
      - name: title
        in: path
        schema:
          type: string
          description: Title of the page containing the page, in database format.
          example: Barack_Obama
        required: true
      - name: next
        in: query
        description: Continuation parameter from previous request
        schema:
          type: string
      responses:
        '200':
          description: An array of list metadata.
          content:
            application/json; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/Lists/0.1":
              schema:
                type: object
                properties:
                  lists:
                    type: array
                    items:
                      $ref: '#/components/schemas/list_read'
                  next:
                    type: string
                    description: Continuation token.
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: getDataListsPagesByProjectByTitle
      x-operation-id-source: derived
  /data/lists/changes/since/{date}:
    get:
      tags:
      - Reading lists
      summary: Wikimedia REST Get Recent Changes to the Lists
      description: 'Returns metadata describing lists and entries which have changed. Might be truncated

        and include a continuation token.


        Request must be authenticated with a MediaWiki session cookie.


        For safe synchronization, the date parameter should be taken from the `continue-from`

        field of a previous `GET /lists/` or `GET /lists/changes/since/{date}` request. This will

        ensure that no changes are skipped, at the cost of sometimes receiving the same change

        multitple times. Clients should handle changes in an idempotent way.


        Stability: unstable'
      parameters:
      - name: date
        in: path
        description: 'Cutoff date (in ISO 8601). To ensure reliable synchronization, the API

          might return changes which are slightly older than the cutoff date.

          '
        schema:
          type: string
          format: date-time
        required: true
      - name: next
        in: query
        description: Continuation parameter from previous request
        schema:
          type: string
      responses:
        '200':
          description: An array of list and entry metadata.
          content:
            application/json; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/Lists/0.1":
              schema:
                type: object
                properties:
                  lists:
                    type: array
                    items:
                      $ref: '#/components/schemas/list_read'
                  next:
                    type: string
                    description: Continuation token.
                  continue-from:
                    type: string
                    format: date-time
                    description: 'Timestamp to sync from, to be used with the `GET /lists/changes/since/{date}`

                      endpoint.

                      '
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/problem'
      x-monitor: false
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      operationId: getDataListsChangesSinceByDate
      x-operation-id-source: derived
components:
  schemas:
    list_entry_write:
      type: object
      properties:
        project:
          type: string
          description: Domain of the wiki containing the page.
          example: https://en.wikipedia.org
        title:
          type: string
          description: Title of the page containing the page, in database format.
          example: Barack_Obama
      required:
      - project
      - title
    problem:
      required:
      - type
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        detail:
          type: string
        instance:
          type: string
    list_read:
      title: list
      type: object
      properties:
        id:
          type: integer
          example: 42
        name:
          type: string
          example: Planets
        description:
          type: string
          example: Planets of the Solar System
        created:
          type: string
          format: date-time
          description: Creation date (in ISO 8601)
        updated:
          type: string
          format: date-time
          description: Last modification date (in ISO 8601)
      required:
      - id
      - name
      - created
      - updated
    list_entry_read:
      title: list_entry
      type: object
      properties:
        id:
          type: integer
          example: 64
        project:
          type: string
          description: Domain of the wiki containing the page.
          example: https://en.wikipedia.org
        title:
          type: string
          description: Title of the page containing the page, in database format.
          example: Barack_Obama
        created:
          type: string
          format: date-time
          description: Creation date (in ISO 8601)
        updated:
          type: string
          format: date-time
          description: Last modification date (in ISO 8601)
    list_write:
      title: list
      type: object
      properties:
        name:
          type: string
          example: Planets
        description:
          type: string
          example: Planets of the Solar System
      required:
      - name
x-host-basePath: /api/rest_v1
x-default-params: {}
x-provenance:
  method: harvested
  publisher: Wikipedia / MediaWiki
  source: https://en.wikipedia.org/api/rest_v1/?spec
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)