Memene API

开发文档
开发者控制台
Meme 服务查询获取某领域资讯的结果
Meme 服务

查询获取某领域资讯的结果

GET/v1/meme/memeItemsByDomain/:taskId

接口说明

根据任务 ID 查询资讯获取任务的执行状态和结果。

任务 ID 由 根据新闻领域,获取某领域一个时间段内的资讯 接口返回。如果你还没有 taskId,请先调用该接口提交查询任务。

路径参数:

  • taskId:任务 ID,由提交任务接口返回

返回值:

  • id:任务 ID
  • status:任务状态
    • pending:任务排队中
    • active:任务执行中
    • completed:任务已完成
    • failed:任务失败
  • output:查询结果数据,仅当 status 为 completed 时有值。包含:
    • statusCode:上游响应状态码
    • statusText:状态文本
    • message:消息
    • data:Meme 新闻条目数组
  • error:错误信息,仅当 status 为 failed 时有值
  • createdAt:任务创建时间(ISO 8601 格式)

调用建议:

  • 提交任务后建议每隔 3-5 秒轮询一次
  • 当 status 变为 completedfailed 时停止轮询
  • 任务一般不会超过 5 分钟完成,极端情况下最长 20 分钟超时

授权说明:

  • 此接口无需 API Key 认证(taskId 本身即作为访问凭证)
请求参数
参数类型必填说明
taskIdstring

任务 ID

响应结构
200

Default Response

application/json
字段类型说明
idstring
statusstring
outputobject

查询结果数据,仅当 status 为 completed 时有值

statusCodenumber
statusTextstring
messagestring
dataarray
idnumber
planIdstring
createTimestring

创建时间,ISO 8601 格式

entrystring
detailsContentstring
referenceLinksstring
tagsstring
summaryIdstring
htmlContentstring
resultScorenumber
remakeIndexnumber
authorSourceIdstring
oneSentencestring
briefContentstring
generateIdstring
zScorenumber
isRelatedboolean
briefEntrystring
typestring
languagestring
coverImagestring
articlesobject
[key: string]string
errorstring

错误信息,仅当 status 为 failed 时有值

createdAtstring
示例
json
{
  "id": "task_abc123",
  "status": "completed",
  "output": {
    "statusCode": 200,
    "statusText": "OK",
    "message": "查询成功",
    "data": [
      {
        "id": 42,
        "planId": "plan_2024Q1",
        "createTime": "2024-03-15T08:30:00Z",
        "entry": "OpenAI 发布 GPT-5",
        "detailsContent": "OpenAI 正式发布了 GPT-5...",
        "referenceLinks": "https://openai.com/blog/gpt-5",
        "tags": "AI,LLM,OpenAI",
        "summaryId": "summary_001",
        "htmlContent": null,
        "resultScore": null,
        "remakeIndex": null,
        "authorSourceId": null,
        "oneSentence": "OpenAI 正式发布了 GPT-5 模型",
        "briefContent": "GPT-5 在多项基准测试中大幅超越前代",
        "generateId": null,
        "zScore": 2.1,
        "isRelated": true,
        "briefEntry": null,
        "type": "news",
        "language": "zh",
        "coverImage": null,
        "articles": null
      }
    ]
  },
  "error": null,
  "createdAt": "2025-03-15T08:30:00Z"
}
404

Default Response

application/json
字段类型说明
errorstring
taskIdstring
示例
json
{
  "error": "Task not found",
  "taskId": "task_not_exist"
}