> ## Documentation Index
> Fetch the complete documentation index at: https://docs-m.sajidiftekhar.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Posts

> Returns a list of posts. Supports limiting results via _limit query param.

Overview

* Returns a list of posts from JSONPlaceholder.
* No authentication required; perfect for demos of Mintlify Try it out.

When to use

* Fetch sample content items for demos, prototypes, or to test API flows.

Query parameters

* \_limit (number): Optional. Maximum number of posts to return (1-100). Useful to keep responses short in demos.

Example usage

```api theme={null}
- name: List first 5 posts
  method: GET
  path: /posts
  query:
    _limit: 5
  headers:
    Accept: application/json
```

Response notes

* Status 200: An array of Post objects with fields id, userId, title, and body.
* JSONPlaceholder returns static seeded data; repeated calls return the same list unless filtered.

Tips

* Combine with /comments?postId={id} to show relationships.
* Use \_limit to keep responses compact for readers.


## OpenAPI

````yaml GET /posts
openapi: 3.1.0
info:
  title: JSONPlaceholder Demo API
  description: >-
    Demo OpenAPI spec wired to JSONPlaceholder
    (https://jsonplaceholder.typicode.com) to showcase Mintlify 'Try it out'.
  version: 1.0.0
servers:
  - url: https://jsonplaceholder.typicode.com
security: []
paths:
  /posts:
    get:
      summary: List posts
      description: >-
        Returns a list of posts. Supports limiting results via _limit query
        param.
      parameters:
        - name: _limit
          in: query
          description: Max number of posts to return
          schema:
            type: integer
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: A JSON array of posts
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Post'
components:
  schemas:
    Post:
      type: object
      properties:
        userId:
          type: integer
        id:
          type: integer
        title:
          type: string
        body:
          type: string

````