Skip to main content

Featured Posts

GET/api/v1/content/posts/featured

Overview

Returns a list of published posts that have been marked as featured. Useful for hero sections, homepage highlights, and sidebar widgets.

Authentication

info

No authentication required - Client is resolved from the X-Content-Domain header, which the Cloudflare Worker sets automatically based on the request domain.

Headers

HeaderTypeRequiredDescription
X-Content-DomainstringYesThe domain used to resolve the client tenant. Automatically set by the CF Worker; set manually for external frontend integrations.

Query Parameters

ParameterTypeDefaultDescription
limitinteger10Maximum number of featured posts to return

Response

The response shape is the same as the List Posts endpoint. Each post object includes id, slug, title, excerpt, cover_image_url, status, published_at, author_name, author_id, author, reading_time, view_count, is_featured, and tags.

postsarray

Array of featured post objects (same shape as List Posts)

totalinteger

Total number of featured posts

pageinteger

Current page (always 1)

page_sizeinteger

Same as the limit parameter

Example Request

curl -s "https://spideriq.ai/api/v1/content/posts/featured?limit=5" \
-H "X-Content-Domain: your-domain.com"

Example Response

{
"posts": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"slug": "how-to-scrape-google-maps",
"title": "How to Scrape Google Maps at Scale",
"excerpt": "A step-by-step guide to extracting business data from Google Maps.",
"cover_image_url": "https://cdn.spideriq.ai/blog/maps-guide-cover.webp",
"status": "published",
"published_at": "2026-03-15T09:00:00Z",
"author_name": "Martin Shein",
"author_id": "f1e2d3c4-b5a6-7890-abcd-ef1234567890",
"author": {
"id": "f1e2d3c4-b5a6-7890-abcd-ef1234567890",
"full_name": "Martin Shein",
"slug": "martin-shein",
"avatar_url": "https://cdn.spideriq.ai/authors/martin.webp"
},
"reading_time": 8,
"view_count": 1243,
"is_featured": true,
"tags": ["google-maps", "scraping", "seo"]
}
],
"total": 1,
"page": 1,
"page_size": 5
}

Status Codes

Status CodeMeaningDescription
200OKFeatured posts returned successfully