Skip to main content
query

Returns a Article resource by ID.

ID!
required

The ID of the Article to return.


Was this section helpful?

Anchor to ArticleArticle
Article

An article that contains content, author information, and metadata. Articles belong to a Blog and can include HTML-formatted body text, summary text, and an associated image. Merchants publish articles to share content, drive traffic, and engage customers.

Articles can be organized with tags and published immediately or scheduled for future publication using the publishedAt timestamp. The API manages comments on articles when the blog's comment policy enables them.

ArticleAuthor

The name of the author of the article.

Blog!
non-null

The blog containing the article.

HTML!
non-null

The text of the article's body, complete with HTML markup.

CommentConnection!
non-null

List of the article's comments.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to created_at
time

Filter by the date and time when the comment was created.

Example:

  • created_at:>'2020-10-21T23:39:20Z'
  • created_at:<now
  • created_at:<=2024
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to published_at
time

Filter by the date and time when the comment was published.

Example:

  • published_at:>'2020-10-21T23:39:20Z'
  • published_at:<now
  • published_at:<=2024
Anchor to published_status
string

Filter by published status

Valid values:

  • any
  • published
  • unpublished

Example:

  • published_status:any
  • published_status:published
  • published_status:unpublished
string
Anchor to updated_at
time

Filter by the date and time when the comment was last updated.

Example:

  • updated_at:>'2020-10-21T23:39:20Z'
  • updated_at:<now
  • updated_at:<=2024

Count

Count of comments. Limited to a maximum of 10000 by default.

Arguments

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to created_at
time

Filter by the date and time when the comment was created.

Example:

  • created_at:>'2020-10-21T23:39:20Z'
  • created_at:<now
  • created_at:<=2024
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to published_at
time

Filter by the date and time when the comment was published.

Example:

  • published_at:>'2020-10-21T23:39:20Z'
  • published_at:<now
  • published_at:<=2024
Anchor to published_status
string

Filter by published status

Valid values:

  • any
  • published
  • unpublished

Example:

  • published_status:any
  • published_status:published
  • published_status:unpublished
string
Anchor to updated_at
time

Filter by the date and time when the comment was last updated.

Example:

  • updated_at:>'2020-10-21T23:39:20Z'
  • updated_at:<now
  • updated_at:<=2024
Int
Default:10000

The upper bound on count value before returning a result. Use null to have no limit.


DateTime!
non-null

The date and time (ISO 8601 format) when the article was created.

String!
non-null

A default cursor that returns the single next record, sorted ascending by ID.

EventConnection!
non-null

The paginated list of events associated with the host subject.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

EventSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

string

The action that occured.

Example:

  • action:create
Anchor to comments
boolean

Whether or not to include comment-events in your search, passing false will exclude comment-events, any other value will include comment-events.

Example:

  • false
  • true
Anchor to created_at
time

Filter by the date and time when the event happened.

Example:

  • created_at:>2020-10-21
  • created_at:<now
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to subject_type
string

The resource type affected by this event. See EventSubjectType for possible values.

Example:

  • PRODUCT_VARIANT
  • PRODUCT
  • COLLECTION

String!
non-null

A unique, human-friendly string for the article that's automatically generated from the article's title. The handle is used in the article's URL.

ID!
non-null

A globally-unique ID.

Image

The image associated with the article.

Boolean!
non-null

Whether or not the article is visible.

Metafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

Arguments

String

The container the metafield belongs to. If omitted, the app-reserved namespace will be used.

String!
required

The key for the metafield.


MetafieldConnection!
non-null

A list of custom fields that a merchant associates with a Shopify resource.

Arguments

String

The metafield namespace to filter by. If omitted, all metafields are returned.

[String!]

List of keys of metafields in the format namespace.key, will be returned in the same format.

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


DateTime

The date and time (ISO 8601 format) when the article became or will become visible. Returns null when the article isn't visible.

HTML

A summary of the article, which can include HTML markup. The summary is used by the online store theme to display the article on other pages, such as the home page or the main blog page.

[String!]!
non-null

A comma-separated list of tags. Tags are additional short descriptors formatted as a string of comma-separated values.

String

The name of the template an article is using if it's using an alternate template. If an article is using the default article.liquid template, then the value returned is null.

String!
non-null

The title of the article.

[Translation!]!
non-null

The published translations associated with the resource.

Arguments

String!
required

Filters translations locale.

ID

Filters translations by market ID. Use this argument to retrieve content specific to a market.


DateTime

The date and time (ISO 8601 format) when the article was last updated.

Anchor to metafieldDefinitionsmetafieldDefinitions
MetafieldDefinitionConnection!
non-nullDeprecated

Arguments

String

Filter metafield definitions by namespace.

MetafieldDefinitionPinnedStatus
Default:ANY

Filter by the definition's pinned status.

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

MetafieldDefinitionSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to created_at
time

Filter by the date and time when the metafield definition was created.

Example:

  • created_at:>2020-10-21T23:39:20Z
  • created_at:<now
  • created_at:<=2024
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
string

Filter by the metafield definition key field.

Example:

  • key:some-key
Anchor to namespace
string

Filter by the metafield definition namespace field.

Example:

  • namespace:some-namespace
Anchor to owner_type
string

Filter by the metafield definition ownerType field.

Example:

  • owner_type:PRODUCT
string

Filter by the metafield definition type field.

Example:

  • type:single_line_text_field
Anchor to updated_at
time

Filter by the date and time when the metafield definition was last updated.

Example:

  • updated_at:>2020-10-21T23:39:20Z
  • updated_at:<now
  • updated_at:<=2024


Was this section helpful?