を見てくださいTweet Entities
。&tweet_entities=1
一部のREST呼び出しの最後にパラメーターを追加できます。JSON応答には、ツイートに起因する、探している追加の属性が含まれます。
IE
urlsエンティティ
ツイートテキストから抽出されたURLの配列。各URLエンティティには、url、display_url、expanded_url、indexesの属性があります。
"text": "Twitter for Mac is now easier and faster, and you can open multiple windows at once http://t.co/0JG5Mcq",
"entities": {
"media": [
],
"urls": [
{
"url": "http://t.co/0JG5Mcq",
"display_url": "blog.twitter.com/2011/05/twitte…",
"expanded_url": "http://blog.twitter.com/2011/05/twitter-for-mac-update.html",
"indices": [
84,
103
]
}
],
"user_mentions": [
],
"hashtags": [
]
}
ハッシュタグエンティティ
ツイートテキストから抽出されたハッシュタグの配列。各ハッシュタグエンティティには、次の属性があります。
text
ハッシュタグテキストインデックス
ハッシュタグが抽出された文字の位置
"text": "Loved #devnestSF"
> "entities": {
> "media": [
> ],
> "urls": [
> ],
> "user_mentions": [
> ],
> "hashtags": [
> "text": "devnestSF"
> "indices": [
> 6,
> 16
> ]
> ]
> }
user_mentionsエンティティ
ツイートテキストから抽出されたTwitterスクリーン名の配列。各ユーザーエンティティには、次の属性があります。
id
ユーザーID(int形式)id_strユーザーID(文字列形式)screen_name
ユーザー画面名name
ユーザーのフルネームインデックス
ユーザーの言及が抽出された文字位置
"text": "@rno Et demi!"
"entities": {
"media": [
],
"urls": [
],
"user_mentions": [
{
"id": 22548447,
"id_str": "22548447",
"screen_name": "rno",
"name": "Arnaud Meunier",
"indices": [
0,
4
]
}
],
"hashtags": [
]
}
このリンクのその他のツイートエンティティ:
https://dev.twitter.com/docs/tweet-entities