Blog Post

Content

Blog articles with titles, content, authors, and tags

Locale
EN
Fields
11
Uses
0
Sign in to use template

Schema fields

id sequence
slug slug
tags array
title sentence
views integer
author name
content paragraph
excerpt sentence
category enum
published boolean
published_at datetime

Schema definition

json
{
  "id": {
    "type": "sequence",
    "options": {
      "start": 1
    }
  },
  "slug": {
    "type": "slug"
  },
  "tags": {
    "type": "array",
    "items": {
      "type": "word"
    },
    "options": {
      "max_items": 5,
      "min_items": 2
    }
  },
  "title": {
    "type": "sentence"
  },
  "views": {
    "type": "integer",
    "options": {
      "max": 50000,
      "min": 0
    }
  },
  "author": {
    "type": "name"
  },
  "content": {
    "type": "paragraph",
    "options": {
      "sentences": 5
    }
  },
  "excerpt": {
    "type": "sentence"
  },
  "category": {
    "type": "enum",
    "options": {
      "values": [
        "Technology",
        "Business",
        "Lifestyle",
        "Travel",
        "Food"
      ]
    }
  },
  "published": {
    "type": "boolean",
    "options": {
      "true_rate": 0.8
    }
  },
  "published_at": {
    "type": "datetime",
    "options": {
      "to": "2026-12-31",
      "from": "2024-01-01"
    }
  }
}

Example API call

terminal
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://api.apiryner.com/v1/layouts/blog-post?count=5&locale=en"