article
Get a single article by ID
Authentication
Public Access: Accessible with the public API key
Query Structure
{
article(id: ID!) {
seoDescription
seoTitle
seoKeywords
handle
headerImage
author {
# Author fields
}
id
title
content
summary
comments {
# Comment fields
}
commentsCount
blog {
# Blog fields
}
isPublished
commentsAreEnabled
commentsRequireAccount
commentsRequireApproval
accountOwner
url
createdAt
updatedAt
}
}Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
| id | ID | Yes | The ID of the article to retrieve |
Return Type
Article - Represents an article object with content, author, and comment information.
Example
{
article(id: 12345) {
id
title
content
summary
seoTitle
seoDescription
seoKeywords
handle
headerImage
author {
name
}
commentsCount
commentsAreEnabled
isPublished
createdAt
updatedAt
url
}
}