younifyd
Menu

article

Returns an Article by its ID. Each article belongs to a Blog and includes content in both plain text and HTML formats, ArticleAuthor information, Comment objects, tags, and SEO data.

Use it in a workflow

  1. Add a step and choose the Shopify Storefront connector.
  2. Pick the article action (under Article).
  3. Fill in the fields below, then reference the result from later steps as {{article.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query Article($id: ID!) {
  article(id: $id) {
    author {
      bio
      email
      firstName
      lastName
      name
    }
    authorV2 {
      bio
      email
      firstName
      lastName
      name
    }
    blog {
      authors {
        bio
        email
        firstName
        lastName
        name
      }
      handle
      id
      onlineStoreUrl
      seo {
        description
        title
      }
      title
    }
    contentHtml
    excerptHtml
    handle
    id
    image {
      altText
      height
      id
      originalSrc
      src
      thumbhash
      width
    }
    onlineStoreUrl
    publishedAt
    seo {
      description
      title
    }
    tags
    title
    trackingParameters
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

idstringrequired

The ID of the `Article`.

json
{
  "id": "string"
}

Response

Read the result with {{article.response.data.data.article}}. If the API returns errors, the step fails and they are at {{article.response.data.errors}}.

authorobject
biostring
emailstring
firstNamestring
lastNamestring
namestring
authorV2object
biostring
emailstring
firstNamestring
lastNamestring
namestring
blogobject
authorsarray<object>
handlestring
idstring
onlineStoreUrlstring
seoobject2 fields
titlestring
contentHtmlstring
excerptHtmlstring
handlestring
idstring
imageobject
altTextstring
heightnumber
idstring
originalSrcstring
srcstring
thumbhashstring
widthnumber
onlineStoreUrlstring
publishedAtstring
seoobject
descriptionstring
titlestring
tagsarray<string>
titlestring
trackingParametersstring

Need more? See the Shopify Storefront guide for connection setup and behaviour shared by every action.

Was this page helpful?
article — Shopify Storefront — Documentation