Skip to main content
GET
/
v1
/
statistics
/
recent-posts
Get top performing posts
curl --request GET \
  --url https://api.yalg.ai/v1/statistics/recent-posts \
  --header 'x-api-key: <api-key>'
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "content": "Just shipped a new feature that reduces API response time by 40%...",
    "status": "published",
    "publishedAt": "2h ago",
    "engagement": {
      "likes": 24,
      "comments": 8,
      "shares": 3,
      "impressions": 1250
    },
    "anecdotes": [],
    "linkedInUrl": "https://linkedin.com/post/123"
  }
]

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Query Parameters

limit
number

Number of posts to return (default: 5)

Example:

5

Response

Top performing posts retrieved successfully