---
title: "Article"
description: "Article"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/objects/article'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/objects/article.md'
---
# Article

Article

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`Article`

## Fields

* `author`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  博客文章作者

* `blog`

  [Blog](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/objects/blog.md)

  关联的博客集对象

* `comments`

  [CommentConnection](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/comment-connection.md)

  评论

* `content`

  [HTML](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/html.md)

  博客的正文，不带有HTML标记

* `digest`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  文章摘要，不带有HTML标记

* `handle`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  博客文章的handle

* `id`

  [ID!](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/id.md)

  博客文章id

* `image`

  [Image](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/image.md)

  封面图

* `onlineStoreUrl`

  [URL](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/url.md)

  访问该资源的店铺地址

* `publishedAt`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/date.md)

  发布时间

* `seo`

  [SEO](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/seo.md)

  SEO

* `tags`

  [[String]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  博客文章关联的标签

* `title`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  博客文章标题

## Schema Definition

```graphql
type Article { 
	author: String
	blog: Blog
	comments: CommentConnection
	content: HTML
	digest: String
	handle: String
	id: ID!
	image: Image
	onlineStoreUrl: URL
	publishedAt: Date
	seo: SEO
	tags: [String]
	title: String 
}
```

## Field from

* [ArticleEdge](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/objects/article-edge.md).node

  节点

* [Blog](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/objects/blog.md).articleByHandle

  通过handle获取博客文章

* [Query](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/queries/article.md).article

  通过文章ID查询文章

* [Query](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/queries/proxy-node-article.md).proxyNodeArticle

  当前接口即将下线，新增接入将无法直接使用。如需申请使用权限，请通过工单系统联系平台。

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

