跳到主要内容

博客

撰写博客

信息
  • URL/third-part/blog/v2
  • 方法POST

请求

  • 授权:API 密钥

    在头部添加参数 X-LP-TOKEN

    示例:

    X-LP-TOKEN: 2f68dbbf-519d-4f01-9636-e2421b68f379

  • 请求体参数

    • site_id : 字符串 | 必需
      • 站点 ID
    • is_publish : 布尔值 | 可选 | 默认值: false
      • 是否发布
    • author_id : 字符串 | 可选
      • 作者 id
    • version : 字符串 | 可选 | 默认值: 2
      • 博客写作引擎版本. 建议使用 latest
      • 支持 : 2 , 3 , 4 , 5 , latest
    • config : object | 必需
      • 配置选项
      • 内参数:
        • sitemap : 字符串 | 可选
          • 如果您填写sitemap,QuickCreator 将找到 1-5 个相关文章的链接并将其添加到文章末尾。
        • is_start_external_hyperlink : 布尔值 | 可选 | 默认值: true
          • 是否在文章中自动添加外链
        • is_start_internal_hyperlink : 布尔值 | 可选 | 默认值: true
          • W是否在文章中自动添加内链
        • internal_hyperlink_domain : 字符串 | 可选
          • 文章内链来自指定的domain域名下
          • 支持链接或域名. 举例: https://quickcreator.io/blog or quickcreator.io
        • is_add_main_image : 布尔值 | 可选 | 默认值: true
          • 是否自动添加博客的封面图
        • is_add_h2_images : 布尔值 | 可选 | 默认值: true
          • 是否自动在文章内容中添加图片,开启后,AI会在1到2个合适的H2标题下插入图片
    • params : object | 必需
      • 博客参数
      • 内参数:
        • input_type : 字符串 | 必需
          • 表示p_input的类型
          • 支持
            • Keyword: 根据目标主要关键词撰写博客文章
            • Topic: 根据目标主题撰写博客文章
            • Title: 用目标标题撰写一篇的博客文章
        • p_input : 字符串 | 必需
          • 与 input_type 的类型相对于
          • 例子: input_type=Keyword时,p_input是关键词
        • target_blog_word_count : 字符串 | 可选
          • 设定文章大概生成字数范围
          • 支持 : 800-1000 , 1000-2000 , 2000-3000
        • language_id : 字符串 | 可选 | 默认值: en
          • 设定文章生成语言,采用i18n码代表
          • 支持 : 详情请参阅以下列表
        • is_add_keyword_frequency : 布尔值 | 可选 | 默认值: false
          • 是否除主关键词外添加更多相关关键词
        • is_add_evidence : 布尔值 | 可选 | 默认值: true
          • 是否自动添加实时证据和事实来支持写作
        • additional_knowledge : 字符串 | 可选
          • 额外的补充知识,例如您的品牌或产品介绍。
        • additional_title_prompt : 字符串 | 可选
          • 可以指定生成标题时的额外要求
        • additional_outline_prompt : 字符串 | 可选
          • 可以指定生成大纲时的额外要求
        • additional_section_prompt : 字符串 | 可选
          • 可以指定生成文章内容时的额外要求
语言 ID语言
en英语
zh-CN中文(简体)
zh-TW中文(繁体)
de德语
es西班牙语
fr法语
it意大利语
pt-PT葡萄牙语(葡萄牙)
pt-BR葡萄牙语(巴西)
nl荷兰语
pl波兰语
vi越南语
hi印地语
id印度尼西亚语
ar阿拉伯语
ru俄语
ja日语
tr土耳其语
th泰语
el希腊语
da丹麦语
cs捷克语
bg保加利亚语
ko韩语
hu匈牙利语
lt立陶宛语
ms马来语
no挪威语
ro罗马尼亚语
sv瑞典语
bo藏语

示例

{
"site_id": "xxxxxxxxxxxx",
"is_publish": true,
"config": {
"sitemap": "https://quickcreator.io/quthor_blog/sitemap.xml",
"is_start_external_hyperlink": true,
"is_start_internal_hyperlink": true,
"internal_hyperlink_domain": "quickcreator.io",
"is_add_main_image": true,
"is_add_h2_images": true
},
"params": {
"input_type": "Keyword",
"p_input": "best ai writing tools",
"language_id": "en",
"target_blog_word_count": "800-1000",
"is_add_evidence": true
}
}
  • 示例代码
curl --location --request POST '/third-part/blog/v2' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"site_id": "xxxxxxxxxxxx",
"is_publish": true,
"config": {
"sitemap": "https://quickcreator.io/quthor_blog/sitemap.xml",
"is_start_external_hyperlink": true,
"is_start_internal_hyperlink": true,
"internal_hyperlink_domain": "quickcreator.io",
"is_add_main_image": true,
"is_add_h2_images": true
},
"params": {
"input_type": "Keyword",
"p_input": "best ai writing tools",
"language_id": "en",
"target_blog_word_count": "800-1000",
"is_add_evidence": true
}
}'

响应

  • 状态
HTTP 状态码内容类型
200JSON
  • 示例
{
"code": "200",
"body": {
"blogId": "xxdoewreo",
"jobId": "xxx230203200"
}
}

获取博客

信息
  • URL/third-part/blog/v2/{blogId}
  • 方法GET

请求

  • 授权:API 密钥

    在头部添加参数 X-LP-TOKEN

    示例:

    X-LP-TOKEN: 2f68dbbf-519d-4f01-9636-e2421b68f379

  • 路径参数

    名称位置类型必需描述
    blogId路径string博客接口返回的博客唯一标识符
  • 示例代码

curl --location --request GET '/third-part/blog/v2/' --header 'User-Agent: Apifox/1.0.0 (https://apifox.com)'

响应

  • 状态
HTTP 状态码内容类型
200JSON
  • 示例
{
"status": "string",
"content": {
"markdown": "string",
"slug": "string",
"seo": {
"title": "string",
"description": "string",
"keywords": "string",
"feature_image": "string"
}
}
}