BlogArticles

Gets a published blog article by slug.

Changed on

Returns the public article identified by its URL slug, or a not-found response when no published article matches.

get/blog/{slug}

Request

  • Base URL
    https://api.leadping.ai
  • Auth
    none required

Path parameters

slug, string required

The public URL slug of the published article.

Response

The published article matching the supplied slug.

BlogArticleResponse required

Represents a blog article response.

shareOnFacebook, boolean

Whether to create a Facebook post after publication.

shareOnInstagram, boolean

Whether to create a Instagram post after publication.

shareOnX, boolean

Whether to create a X post after publication.

shareOnLinkedIn, boolean

Whether to create a LinkedIn post after publication.

socialPosts, BlogSocialPost[]

Publication attempts and provider post identifiers for each social platform.

imagesProcessing, boolean

Whether saved image references are awaiting Engine processing.

imageProcessingError, string nullable

The latest background image processing failure, when present.

id, string

Unique Leadping identifier of the blog article.

title, string

Public title of the article.

slug, string

URL slug used to retrieve the published article.

excerpt, string

Short plain-language preview of the article.

content, string

Saved article body before server-side rendering.

renderedHtml, string

Server-rendered and sanitized HTML for displaying the article.

category, string nullable

Editorial category assigned to the article, when present.

authorName, string nullable

Public display name of the article author, when provided.

coverImageUrl, string uri nullable

URL of the article's cover image, when available.

coverImageWidth, integer nullable

The processed cover image width in pixels, when known.

coverImageHeight, integer nullable

The processed cover image height in pixels, when known.

publishedAt, string date-time nullable

UTC publication timestamp shown for the article, when set.

lastPublishedAt, string date-time nullable

UTC timestamp when the article last changed from unpublished to published.

unpublishedAt, string date-time nullable

UTC timestamp when the article last changed from published to unpublished.

isPublished, boolean

Whether the article is currently published and available to public readers.

isFeatured, boolean

Whether the article is selected for featured placement.

createdAt, string date-time

UTC timestamp when the article was created.

modifiedAt, string date-time

UTC timestamp when the article was last modified.

seoTitle, string nullable

Optional title used in search-engine metadata.

metaDescription, string nullable

Optional article description used in search-engine metadata.

coverImageAlt, string nullable

Alternative text describing the cover image.

contentUpdatedAt, string date-time nullable

UTC timestamp of the most recent editorial content update.

Changes

    • breaking

      the allOf[#/components/schemas/BlogArticleResponse]/socialPosts/items/allOf[#/components/schemas/BlogSocialPost]/platform response's property type changed from string to no type for status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    5 more changes in this revision