Skip to content

Response Field Mapping

TAKEUCHI Hiroaki edited this page Jul 29, 2020 · 7 revisions

Twitter.getTweets <- GET /labs/2/tweets

Response field TweetsResponse
id tweets[].id
created_at tweets[].createdAt
text tweets[].text
author_id tweets[].authorId
in_reply_to_user_id -
referenced_tweets -
referenced_tweets.type -
referenced_tweets.id -
referenced_tweets.id.author_id -
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.hashtags.start -
entities.hashtags.end -
entities.hashtags.tag -
entities.mentions -
entities.mentions.start -
entities.mentions.end -
entities.mentions.username -
entities.cashtags -
entities.cashtags.start -
entities.cashtags.end -
entities.cashtags.tag -
withheld -
withheld.copyright -
withheld.country_codes -
withheld.scope -
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 -
non_public_metrics.impression_count -
non_public_metrics.url_link_clicks -
non_public_metrics.user_profile_clicks -
organic_metrics -
organic_metrics.impression_count -
organic_metrics.retweet_count -
organic_metrics.reply_count -
organic_metrics.like_count -
organic_metrics.url_link_clicks -
organic_metrics.user_profile_clicks -
promoted_metrics -
promoted_metrics.impression_count -
promoted_metrics.retweet_count -
promoted_metrics.reply_count -
promoted_metrics.like_count -
promoted_metrics.url_link_clicks -
promoted_metrics.user_profile_clicks -
possibly_sensitive tweets[].possiblySensitive
lang tweets[].lang
source tweets[].source
includes -
includes.tweets tweetsMap
includes.users usersMap
includes.places.id -
includes.places.name -
includes.places.full_name -
includes.places.place_type -
includes.places.country_code -
includes.places.country -
includes.places.contained_within -
includes.places.geo -
includes.places.geo.type -
includes.places.geo.bbox -
includes.places.geo.geometry -
includes.places.geo.coordinates.type -
includes.places.geo.coordinates.coordinates -
includes.places.geo.coordinates.properties -
includes.media -
includes.media.media_key -
includes.media.height -
includes.media.non_public_metrics -
includes.media.non_public_metrics.playback_0_count -
includes.media.non_public_metrics.playback_25_count -
includes.media.non_public_metrics.playback_50_count -
includes.media.non_public_metrics.playback_75_count -
includes.media.non_public_metrics.playback_100_count -
includes.media.public_metrics -
includes.media.public_metrics.view_count -
includes.media.organic_metrics -
includes.media.organic_metrics.playback_0_count -
includes.media.organic_metrics.playback_25_count -
includes.media.organic_metrics.playback_50_count -
includes.media.organic_metrics.playback_75_count -
includes.media.organic_metrics.playback_100_count -
includes.media.organic_metrics.view_count -
includes.media.promoted_metrics -
includes.media.promoted_metrics.playback_0_count -
includes.media.promoted_metrics.playback_25_count -
includes.media.promoted_metrics.playback_50_count -
includes.media.promoted_metrics.playback_75_count -
includes.media.promoted_metrics.playback_100_count -
includes.media.promoted_metrics.view_count -
includes.media.width -
includes.media.preview_image_url -
includes.media.duration_ms -
includes.media.type -
includes.polls pollsMap
includes.polls.id pollsMap[].id
includes.polls.options pollsMap[].options[]
includes.polls.options.position pollsMap[].options[].position
includes.polls.options.label pollsMap[].options[].label
includes.polls.options.votes pollsMap[].options[].votes
includes.polls.options.voting_status pollsMap[].votingStatus
includes.polls.end_datetime pollsMap[].endDatetime
includes.polls.duration_minutes pollsMap[].durationMinutes
errors -

Twitter.getUsers <- GET /labs/2/users

Response field UsersResponse
id users[].id
created_at users[].createdAt
name users[].name
username users[].username
protected users[].protected
withheld -
withheld.country_codes -
withheld.scope -
location users[].location
url users[].url
description users[].description
verified users[].verified
entities -
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.hashtags -
entities.hashtags.start -
entities.hashtags.end -
entities.hashtags.hashtag -
entities.mentions -
entities.mentions.start -
entities.mentions.end -
entities.mentions.username -
entities.cashtags -
entities.cashtags.start -
entities.cashtags.end -
entities.cashtags.cashtag -
entities.description users[].descriptionEntity
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 -
Clone this wiki locally