X Twitter Getspacesposts

60 credits/call
ae_x_twitter_getspacesposts

Get posts shared inside a specified Space.

Social
60 credits/call

Pricing

60 credits/call
ConditionCharge
Each call60 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
idstringYesSpace ID。 Space ID.—
expansionsstringNo需要额外展开的关联对象,多个值用逗号分隔。可选值:article.cover_media, article.media_entities, attachments.media_keys, attachments.media_source_tweet, attachments.poll_ids, author_id, edit_history_tweet_ids, entities.mentions.username, geo.place_id, in_reply_to_user_id, entities.note.mentions.username, referenced_tweets.id, referenced_tweets.id.attachments.media_keys, referenced_tweets.id.author_id。 Comma-separated related objects to expand. Allowed values: article.cover_media, article.media_entities, attachments.media_keys, attachments.media_source_tweet, attachments.poll_ids, author_id, edit_history_tweet_ids, entities.mentions.username, geo.place_id, in_reply_to_user_id, entities.note.mentions.username, referenced_tweets.id, referenced_tweets.id.attachments.media_keys, referenced_tweets.id.author_id.—
max_resultsintegerNo可选,1–100,指定本次最多返回的记录数量。省略时采用接口原默认上限100;实际结果可能更少。 Optional, from 1 to 100. Maximum records to return. Omit to use the endpoint default limit of 100; actual results may be fewer.—
poll.fieldsstringNo需要返回的字段,多个字段名用逗号分隔。可选值:duration_minutes, end_datetime, id, options, voting_status。 Comma-separated fields to include in the response. Allowed values: duration_minutes, end_datetime, id, options, voting_status.—
user.fieldsstringNo需要返回的字段,多个字段名用逗号分隔。可选值:affiliation, created_at, description, entities, id, is_identity_verified, location, most_recent_tweet_id, name, parody, pinned_tweet_id, profile_banner_url, profile_image_url, protected, public_metrics, url, username, verified, verified_followers_count, verified_type, withheld。 Comma-separated fields to include in the response. Allowed values: affiliation, created_at, description, entities, id, is_identity_verified, location, most_recent_tweet_id, name, parody, pinned_tweet_id, profile_banner_url, profile_image_url, protected, public_metrics, url, username, verified, verified_followers_count, verified_type, withheld.—
media.fieldsstringNo需要返回的字段,多个字段名用逗号分隔。可选值:alt_text, duration_ms, height, media_key, preview_image_url, public_metrics, type, url, variants, width。 Comma-separated fields to include in the response. Allowed values: alt_text, duration_ms, height, media_key, preview_image_url, public_metrics, type, url, variants, width.—
place.fieldsstringNo需要返回的字段,多个字段名用逗号分隔。可选值:contained_within, country, country_code, full_name, geo, id, name, place_type。 Comma-separated fields to include in the response. Allowed values: contained_within, country, country_code, full_name, geo, id, name, place_type.—
tweet.fieldsstringNo需要返回的字段,多个字段名用逗号分隔。可选值:article, attachments, author_id, card_uri, community_id, context_annotations, conversation_id, created_at, display_text_range, edit_controls, edit_history_tweet_ids, entities, geo, id, in_reply_to_user_id, lang, matched_media_notes, media_metadata, note_tweet, possibly_sensitive, public_metrics, referenced_tweets, reply_settings, scopes, source, suggested_source_links, suggested_source_links_with_counts, text, withheld。 Comma-separated fields to include in the response. Allowed values: article, attachments, author_id, card_uri, community_id, context_annotations, conversation_id, created_at, display_text_range, edit_controls, edit_history_tweet_ids, entities, geo, id, in_reply_to_user_id, lang, matched_media_notes, media_metadata, note_tweet, possibly_sensitive, public_metrics, referenced_tweets, reply_settings, scopes, source, suggested_source_links, suggested_source_links_with_counts, text, withheld.—

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_getspacesposts' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "id": "1jGXgBPpWjdKZ",
    "max_results": 1
  }
}'
Response exampleresponse.json
JSON
{
  "data": [
    {
      "edit_history_tweet_ids": [
        "2109647511321551323"
      ],
      "id": "2109647511321551323",
      "text": "جوالي بدا يعلق من المساحه\nرحت حذفت صور سفره دبي  https://t.co/ZooAizSRCi"
    }
  ],
  "meta": {
    "result_count": 1
  }
}