# List the media library (/en/reference/media/list-media)

OpenAPI operation (components in https://api.tebar.app/v1/openapi.json):

```json
[
  {
    "operationId": "listMedia",
    "tags": [
      "Media"
    ],
    "summary": "List the media library",
    "description": "Ready files, newest first, with how many posts use each.\n\nRequires the read scope.",
    "parameters": [
      {
        "name": "type",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "image",
            "video"
          ]
        }
      },
      {
        "name": "limit",
        "in": "query",
        "required": false,
        "schema": {
          "default": 40,
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      {
        "name": "cursor",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "maxLength": 200
        }
      },
      {
        "$ref": "#/components/parameters/TebarProfile"
      }
    ],
    "responses": {
      "200": {
        "description": "A page of media.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ListMediaResponse"
            }
          }
        }
      },
      "400": {
        "$ref": "#/components/responses/BadRequest"
      },
      "401": {
        "$ref": "#/components/responses/Unauthorized"
      },
      "403": {
        "$ref": "#/components/responses/Forbidden"
      },
      "429": {
        "$ref": "#/components/responses/RateLimited"
      }
    }
  }
]
```