X Twitter Getpostsreposts
60 credits/call
ae_x_twitter_getpostsreposts
Get repost objects for a specified post ID.
60 credits/call
Pricing
60 credits/call
| Condition | Charge |
|---|---|
| Each call | 60 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
id | string | Yes | 推文ID,填写数字字符串。 Numeric post ID. | — |
expansions | string | No | 需要额外展开的关联对象,多个值用逗号分隔。可选值: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_results | integer | No | 可选,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.fields | string | No | 需要返回的字段,多个字段名用逗号分隔。可选值: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.fields | string | No | 需要返回的字段,多个字段名用逗号分隔。可选值: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.fields | string | No | 需要返回的字段,多个字段名用逗号分隔。可选值: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.fields | string | No | 需要返回的字段,多个字段名用逗号分隔。可选值: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.fields | string | No | 需要返回的字段,多个字段名用逗号分隔。可选值: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. | — |
pagination_token | string | No | 上一页返回的分页标记。首次查询不填;不能自行编造。 Pagination token returned by the previous page. Omit for the first page; do not invent a token. | — |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_x_twitter_getpostsreposts' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"id": "1346889436626259968",
"max_results": 100
}
}'Response exampleresponse.json
{
"data": [
{
"edit_history_tweet_ids": [
"1912943795416736146"
],
"id": "1912943795416736146",
"text": "RT @XDevelopers: Learn how to use the user Tweet timeline and user mention timeline endpoints in the Twitter API v2 to explore Tweets and m…"
}
],
"meta": {
"next_token": "7140dibdnow9c7btw3w2oqo6lhpdjff9whzrpoh7ir5tl",
"result_count": 15
}
}This example shows part of the response. Copied content is valid JSON.





