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

# Get public posts

> Retrieve all published blog posts

## Response

Returns an array of all public blog posts.

<ResponseField name="data" type="array">
  Array of blog posts

  <Expandable title="post object">
    <ResponseField name="_id" type="string">
      Post ID
    </ResponseField>

    <ResponseField name="title" type="string">
      Post title
    </ResponseField>

    <ResponseField name="slug" type="string">
      URL-friendly slug
    </ResponseField>

    <ResponseField name="summary" type="string">
      Post summary
    </ResponseField>

    <ResponseField name="content" type="string">
      Post content
    </ResponseField>

    <ResponseField name="tags" type="array">
      Array of tags
    </ResponseField>

    <ResponseField name="coverImageUrl" type="string">
      Cover image URL
    </ResponseField>

    <ResponseField name="authorId" type="object">
      Author information

      <Expandable title="properties">
        <ResponseField name="firstName" type="string">
          Author's first name
        </ResponseField>

        <ResponseField name="lastName" type="string">
          Author's last name
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="likesCount" type="number">
      Number of likes
    </ResponseField>

    <ResponseField name="visibility" type="string">
      Post visibility status
    </ResponseField>

    <ResponseField name="createdAt" type="string">
      Creation timestamp
    </ResponseField>

    <ResponseField name="publishedAt" type="string">
      Publication timestamp
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://api-verifier-2.onrender.com/api/blog
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "_id": "65a1b2c3d4e5f6g7h8i9j0k1",
      "title": "Getting Started with MT5 Trading",
      "slug": "getting-started-with-mt5-trading-abc123",
      "summary": "Learn the basics of MT5 trading platform",
      "content": "Full post content here...",
      "tags": ["trading", "mt5", "beginner"],
      "coverImageUrl": "https://example.com/image.jpg",
      "authorId": {
        "firstName": "John",
        "lastName": "Doe"
      },
      "likesCount": 42,
      "visibility": "public",
      "createdAt": "2024-01-10T08:00:00.000Z",
      "publishedAt": "2024-01-12T10:00:00.000Z"
    }
  ]
  ```
</ResponseExample>
