Skip to main content
GET
/
blog_posts
List blog posts
curl --request GET \
  --url https://api.crevio.co/v1/blog_posts \
  --header 'Authorization: <api-key>'
{
  "items": [
    {
      "id": 123,
      "title": "<string>",
      "slug": "<string>",
      "content": "<string>",
      "status": "draft",
      "indexable": true,
      "excerpt": "<string>",
      "url": "<string>",
      "publishedAt": "2023-11-07T05:31:56Z",
      "scheduledAt": "2023-11-07T05:31:56Z",
      "prefixId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "category": {
        "id": 123,
        "name": "<string>",
        "slug": "<string>",
        "description": "<string>",
        "blogPostsCount": 123,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      },
      "seo": {
        "title": "<string>",
        "description": "<string>",
        "keywords": "<string>"
      },
      "featuredImage": {
        "id": 123,
        "sourceType": "<string>",
        "url": "<string>",
        "provider": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "file": {
          "filename": "<string>",
          "contentType": "<string>",
          "byteSize": 123,
          "createdAt": "2023-11-07T05:31:56Z",
          "signedId": "<string>",
          "src": "<string>",
          "srcSet": "<string>"
        },
        "contentType": "<string>",
        "embedHtml": "<string>"
      },
      "socialMediaImage": {
        "id": 123,
        "sourceType": "<string>",
        "url": "<string>",
        "provider": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "file": {
          "filename": "<string>",
          "contentType": "<string>",
          "byteSize": 123,
          "createdAt": "2023-11-07T05:31:56Z",
          "signedId": "<string>",
          "src": "<string>",
          "srcSet": "<string>"
        },
        "contentType": "<string>",
        "embedHtml": "<string>"
      }
    }
  ],
  "pagination": {
    "count": 123,
    "from": 123,
    "in": 123,
    "last": 123,
    "limit": 123,
    "next": 123,
    "previous": 123,
    "offset": 123,
    "page": 123,
    "pages": 123,
    "to": 123
  }
}

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Query Parameters

category_id
string

Filter by category slug

page
integer
default:1

Page number (1-based)

Required range: x >= 1
limit
integer
default:20

Items per page

Required range: 1 <= x <= 100

Response

Paginated list of blog posts

items
object[]
pagination
object