X Twitter Getnews

6 credits/call
ae_x_twitter_getnews

Get details of a news story by News ID.

NewsSocial
6 credits/call

Pricing

6 credits/call
ConditionCharge
Each call6 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
idstringYesNews ID。 News story ID.—
news.fieldsstringNo需要返回的字段,多个字段名用逗号分隔。可选值:category, cluster_posts_results, contexts, disclaimer, hook, id, keywords, name, summary, updated_at。 Comma-separated fields to include in the response. Allowed values: category, cluster_posts_results, contexts, disclaimer, hook, id, keywords, name, summary, updated_at.—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_x_twitter_getnews' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "id": "2109775023183704256"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "data": {
    "category": "News",
    "contexts": {
      "topics": [
        "Space"
      ]
    },
    "disclaimer": "This story is a summary of posts on X and may evolve over time. Grok can make mistakes, verify its outputs.",
    "hook": "A 62-year-old retired NASA engineer joined SpaceX and felt like ankle weights had been lifted off his legs. Ideas that took months at NASA moved from concept to test in hours.",
    "id": "2109775023183704256",
    "name": "Retired NASA Engineer Thrives at SpaceX After Slow Bureaucracy"
  }
}

This example shows part of the response. Copied content is valid JSON.