Skip to main content
GET
/
publisher
/
{publisher_id}
/
post
Post Details by URL
curl --request GET \
  --url https://cds.thepublive.com/publisher/{publisher_id}/post/ \
  --header 'Authorization: Basic <encoded-value>'
{
  "status": "ok",
  "data": {
    "id": 12345,
    "title": "Union Budget 2026 Highlights",
    "slug": "union-budget-2026-highlights",
    "type": "Article",
    "primary_category": {
      "id": 100,
      "name": "Business",
      "slug": "business"
    },
    "content_html": "<p>The Union Budget 2026 was presented today...</p>",
    "absolute_url": "/business/union-budget-2026-highlights-12345"
  },
  "message": ""
}
Returns a single post by matching its legacy or relative URL path. Useful for URL-based routing or migrating from legacy systems.
publisher_id
string
required
Your Publisher ID
legacy_url
string
required
Relative URL path (e.g., /news/my-article-12345)

Example Request

curl -X GET \
  'https://cds.thepublive.com/publisher/123/post/?legacy_url=/business/union-budget-2026-highlights-12345' \
  -H 'Authorization: Basic <BASE64_AUTH_TOKEN>'
Returns the same post object as the Post Details endpoint.
{
  "status": "ok",
  "data": {
    "id": 12345,
    "title": "Union Budget 2026 Highlights",
    "slug": "union-budget-2026-highlights",
    "type": "Article",
    "primary_category": {
      "id": 100,
      "name": "Business",
      "slug": "business"
    },
    "content_html": "<p>The Union Budget 2026 was presented today...</p>",
    "absolute_url": "/business/union-budget-2026-highlights-12345"
  },
  "message": ""
}