List posts from any platform
posts.listDiscover and filter posts from your sitemap or explicit list to identify URLs eligible for SEO analysis and performance verdicts.
Instructions
Discover posts via an XML sitemap (POSTS_SITEMAP_URL or the sitemap_url arg), a JSON override list (POSTS_LIST), or - if configured - the Ghost Admin API. Pass an explicit urls[] to skip discovery entirely.
Returns metadata: url, title, published_at, age_days, tags. Filter by minimum age or published-after date.
When to use: discover which URLs are eligible for snapshot / verdict / cohort analysis. Works with any CMS that exposes a sitemap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sitemap_url | No | URL of an XML sitemap to enumerate posts. Overrides POSTS_SITEMAP_URL env var. Required if neither POSTS_SITEMAP_URL nor POSTS_LIST is set. | |
| urls | No | Explicit list of post URLs to return directly, bypassing sitemap discovery. | |
| since | No | ISO date - only return posts published after this date. | |
| min_age_days | No | Skip posts younger than this many days. | |
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posts | Yes |