-
Notifications
You must be signed in to change notification settings - Fork 13
Response Field Mapping
TAKEUCHI Hiroaki edited this page Aug 25, 2020
·
7 revisions
Twitter.getTweets <- GET /2/tweets
Response field | TweetsResponse |
---|---|
id | tweets[].id |
text | tweets[].text |
created_at | tweets[].createdAt |
author_id | tweets[].authorId |
conversation_id | - |
in_reply_to_user_id | - |
referenced_tweets.type(retweeted) | tweets[].retweetId |
referenced_tweets.type(quoted) | tweets[].quotedTweetId |
referenced_tweets.type(replied_to) | tweets[].repliedToTweetId |
attachments | - |
attachments.media_keys | - |
attachments.poll_ids | tweets[].pollId |
geo | - |
geo.coordinates.type | - |
geo.coordinates.coordinates | - |
geo.place_id | - |
context_annotations | - |
context_annotations.domain | - |
context_annotations.domain.id | - |
context_annotations.domain.name | - |
context_annotations.domain.description | - |
context_annotations.entity | - |
context_annotations.entity.id | - |
context_annotations.entity.name | - |
context_annotations.entity.description | - |
entities | - |
entities.annotations | - |
entities.annotations.start | - |
entities.annotations.end | - |
entities.annotations.probability | - |
entities.annotations.type | - |
entities.annotations.normalized_text | - |
entities.urls | tweets[].urls |
entities.urls.start | tweets[].urls[].start |
entities.urls.end | tweets[].urls[].end |
entities.urls.url | tweets[].urls[].url |
entities.urls.expanded_url | tweets[].urls[].expandedUrl |
entities.urls.display_url | tweets[].urls[].displayUrl |
entities.urls.unwound_url | tweets[].urls[].unwoundUrl |
entities.hashtags | - |
entities.mentions | - |
entities.cashtags | - |
withheld | - |
public_metrics | tweets[].publicMetrics |
public_metrics.retweet_count | tweets[].publicMetrics.retweetCount |
public_metrics.reply_count | tweets[].publicMetrics.replyCount |
public_metrics.like_count | tweets[].publicMetrics.likeCount |
public_metrics.quote_count | tweets[].publicMetrics.quoteCount |
non_public_metrics | tweets[].nonPublicMetrics |
non_public_metrics.impression_count | tweets[].nonPublicMetrics.impressionCount |
non_public_metrics.url_link_clicks | tweets[].nonPublicMetrics.urlLinkClicks |
non_public_metrics.user_profile_clicks | tweets[].nonPublicMetrics.userProfileClicks |
organic_metrics | tweets[].organicMetrics |
organic_metrics.impression_count | tweets[].organicMetrics.impressionCount |
organic_metrics.url_link_clicks | tweets[].organicMetrics.urlLinkClicks |
organic_metrics.user_profile_clicks | tweets[].organicMetrics.userProfileClicks |
organic_metrics.retweet_count | tweets[].organicMetrics.retweetCount |
organic_metrics.reply_count | tweets[].organicMetrics.replyCount |
organic_metrics.like_count | tweets[].organicMetrics.likeCount |
promoted_metrics | N/A |
possibly_sensitive | tweets[].possiblySensitive |
lang | tweets[].lang |
source | tweets[].source |
includes.tweets | tweetsMap |
includes.users | usersMap |
includes.places | - |
includes.media | - |
includes.polls | pollsMap |
errors | - |
Twitter.getUsers <- GET /2/users
Response field | UsersResponse |
---|---|
id | users[].id |
name | users[].name |
username | users[].username |
created_at | users[].createdAt |
protected | users[].protected |
withheld | - |
location | users[].location |
url | users[].url |
description | users[].description |
verified | users[].verified |
entities.url | users[].urlEntities |
entities.url.start | users[].urlEntities[].start |
entities.url.end | users[].urlEntities[].end |
entities.url.url | users[].urlEntities[].url |
entities.url.expanded_url | users[].urlEntities[].expandedUrl |
entities.url.display_url | users[].urlEntities[].displayUtl |
entities.description | users[].descriptionEntity |
entities.description.urls | - |
entities.description.hashtags | - |
entities.description.mentions | - |
entities.description.cashtags | - |
profile_image_url | users[].profileImageUrl |
public_metrics | users[].publicMetrics |
public_metrics.followers_count | users[].publicMetrics.followersCount |
public_metrics.following_count | users[].publicMetrics.followingCount |
public_metrics.tweet_count | users[].publicMetrics.tweetCount |
public_metrics.listed_count | users[].publicMetrics.listedCount |
pinned_tweet_id | users[].pinnedTweetId |
includes.tweets | tweetsMap |
errors | - |