2
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ツイート種別によるデータの違いをざっくりまとめ

Last updated at Posted at 2017-04-24

Twitter 公式ドキュメント

Tweets — Twitter Developers
https://dev.twitter.com/overview/api/tweets

ツイート種別によるデータの違い

種別 in_reply_to_
screen_name
in_reply_to_
status_id
user_
mentions
retweeted_
status
text
1.単純なツイート なし なし なし なし 内容
2.返信ツイート あり あり あり なし 内容
3.リプライ あり なし あり なし 内容
4.メンション なし なし あり なし 内容
5.リツイート なし なし あり あり RT @xxx:
元ツイートの内容
6.リツイート
(コメントあり)
なし なし なし なし 内容 +
元ツイートのURL

各ツイートの実際のデータ

1.単純なツイート

{
  "created_at": "Mon Apr 24 16:46:59 +0000 2017",
  "hashtags": [],
  "id": 856550045507739600,
  "id_str": "856550045507739651",
  "lang": "ja",
  "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
  "text": "テスト:全速前進ヨーソロー!",
  "urls": [],
  "user": {
    "created_at": "Thu Mar 23 12:41:04 +0000 2017",
    "description": "曜ちゃん好き / ことりちゃん好き / よう(ちか|りこ|よし)好き / ことぱな好き / スクフェス Rank 16x",
    "favourites_count": 1357,
    "followers_count": 459,
    "friends_count": 709,
    "id": 844891746928537600,
    "lang": "ja",
    "listed_count": 4,
    "name": "🐽 You 🐟",
    "profile_background_color": "000000",
    "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
    "profile_banner_url": "https://pbs.twimg.com/profile_banners/844891746928537601/1492611694",
    "profile_image_url": "http://pbs.twimg.com/profile_images/847907193663795200/VNYNQ_JG_normal.jpg",
    "profile_link_color": "91D2FA",
    "profile_sidebar_fill_color": "000000",
    "profile_text_color": "000000",
    "screen_name": "yousorojp",
    "statuses_count": 1116,
    "time_zone": "Tokyo",
    "url": "https://t.co/6cMAnneoVC",
    "utc_offset": 32400
  },
  "user_mentions": []
}
  • "in_reply_to_xxx" 等は設定されない
  • "user_menthons" は設定されない

2.特定のツイートに対する返信ツイート

{
  "created_at": "Mon Apr 24 17:02:50 +0000 2017",
  "hashtags": [],
  "id": 856554033183457300,
  "id_str": "856554033183457280",
  "in_reply_to_screen_name": "xxxx",
  "in_reply_to_status_id": 856550556428402700,
  "in_reply_to_user_id": 77957154898209xxxx,
  "lang": "ja",
  "media": [
    {
      "display_url": "pic.twitter.com/cgYDVGqEEZ",
      "expanded_url": "https://twitter.com/yousorojp/status/856554033183457280/photo/1",
      "id": 856553777809182700,
      "media_url": "http://pbs.twimg.com/media/C-MXH2lV0AASfiA.jpg",
      "media_url_https": "https://pbs.twimg.com/media/C-MXH2lV0AASfiA.jpg",
      "sizes": {
        "large": {
          "h": 560,
          "resize": "fit",
          "w": 1146
        },
        "medium": {
          "h": 560,
          "resize": "fit",
          "w": 1146
        },
        "small": {
          "h": 332,
          "resize": "fit",
          "w": 680
        },
        "thumb": {
          "h": 150,
          "resize": "crop",
          "w": 150
        }
      },
      "type": "photo",
      "url": "https://t.co/cgYDVGqEEZ"
    }
  ],
  "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
  "text": "@xxxx おや( ˘ω˘ )スヤァ… https://t.co/cgYDVGqEEZ",
  "urls": [],
  "user": {
    "created_at": "Thu Mar 23 12:41:04 +0000 2017",
    "description": "曜ちゃん好き / ことりちゃん好き / よう(ちか|りこ|よし)好き / ことぱな好き / スクフェス Rank 16x",
    "favourites_count": 1357,
    "followers_count": 459,
    "friends_count": 709,
    "id": 844891746928537600,
    "lang": "ja",
    "listed_count": 4,
    "name": "🐽 You 🐟",
    "profile_background_color": "000000",
    "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
    "profile_banner_url": "https://pbs.twimg.com/profile_banners/844891746928537601/1492611694",
    "profile_image_url": "http://pbs.twimg.com/profile_images/847907193663795200/VNYNQ_JG_normal.jpg",
    "profile_link_color": "91D2FA",
    "profile_sidebar_fill_color": "000000",
    "profile_text_color": "000000",
    "screen_name": "yousorojp",
    "statuses_count": 1117,
    "time_zone": "Tokyo",
    "url": "https://t.co/6cMAnneoVC",
    "utc_offset": 32400
  },
  "user_mentions": [
    {
      "id": 77957154898209xxxx,
      "name": "名前",
      "screen_name": "xxxx"
    }
  ]
}
  • "in_reply_to_xxx" 等に返信元ツイートの情報が設定

  • screen_name

  • status_id

  • user_id

  • "user_menthons" に返信相手情報が設定

3.リプライ

{
  "created_at": "Mon Apr 24 17:15:41 +0000 2017",
  "hashtags": [],
  "id": 856557267860070400,
  "id_str": "856557267860070400",
  "in_reply_to_screen_name": "NozomiTarot",
  "in_reply_to_user_id": 850737222588420100,
  "lang": "ja",
  "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
  "text": "@NozomiTarot  テストリプ",
  "urls": [],
  "user": {
    "created_at": "Thu Mar 23 12:41:04 +0000 2017",
    "description": "曜ちゃん好き / ことりちゃん好き / よう(ちか|りこ|よし)好き / ことぱな好き / スクフェス Rank 16x",
    "favourites_count": 1358,
    "followers_count": 459,
    "friends_count": 709,
    "id": 844891746928537600,
    "lang": "ja",
    "listed_count": 4,
    "name": "🐽 You 🐟",
    "profile_background_color": "000000",
    "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
    "profile_banner_url": "https://pbs.twimg.com/profile_banners/844891746928537601/1492611694",
    "profile_image_url": "http://pbs.twimg.com/profile_images/847907193663795200/VNYNQ_JG_normal.jpg",
    "profile_link_color": "91D2FA",
    "profile_sidebar_fill_color": "000000",
    "profile_text_color": "000000",
    "screen_name": "yousorojp",
    "statuses_count": 1118,
    "time_zone": "Tokyo",
    "url": "https://t.co/6cMAnneoVC",
    "utc_offset": 32400
  },
  "user_mentions": [
    {
      "id": 850737222588420100,
      "name": "東條 希 (占いBot)",
      "screen_name": "NozomiTarot"
    }
  ]
}
  • "in_reply_to_xxx" 等に返信元ツイートの情報が設定
  • screen_name
  • user_id
  • "in_reply_to_status_id" は設定されない
  • "user_menthons" に返信相手情報が設定

4.メンション

{
  "created_at": "Mon Apr 24 17:17:33 +0000 2017",
  "hashtags": [],
  "id": 856557737383051300,
  "id_str": "856557737383051264",
  "lang": "ja",
  "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
  "text": "テスト:メンション &gt; @NozomiTarot",
  "urls": [],
  "user": {
    "created_at": "Thu Mar 23 12:41:04 +0000 2017",
    "description": "曜ちゃん好き / ことりちゃん好き / よう(ちか|りこ|よし)好き / ことぱな好き / スクフェス Rank 16x",
    "favourites_count": 1358,
    "followers_count": 459,
    "friends_count": 709,
    "id": 844891746928537600,
    "lang": "ja",
    "listed_count": 4,
    "name": "🐽 You 🐟",
    "profile_background_color": "000000",
    "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
    "profile_banner_url": "https://pbs.twimg.com/profile_banners/844891746928537601/1492611694",
    "profile_image_url": "http://pbs.twimg.com/profile_images/847907193663795200/VNYNQ_JG_normal.jpg",
    "profile_link_color": "91D2FA",
    "profile_sidebar_fill_color": "000000",
    "profile_text_color": "000000",
    "screen_name": "yousorojp",
    "statuses_count": 1119,
    "time_zone": "Tokyo",
    "url": "https://t.co/6cMAnneoVC",
    "utc_offset": 32400
  },
  "user_mentions": [
    {
      "id": 850737222588420100,
      "name": "東條 希 (占いBot)",
      "screen_name": "NozomiTarot"
    }
  ]
}
  • "in_reply_to_xxx" 等は設定されない
  • "user_menthons" に返信相手情報が設定

5.リツイート

{
  "created_at": "Mon Apr 24 18:10:29 +0000 2017",
  "hashtags": [
    {
      "text": "スクフェス"
    }
  ],
  "id": 856571057402036200,
  "id_str": "856571057402036227",
  "lang": "ja",
  "retweet_count": 202,
  "retweeted_status": {
    "created_at": "Mon Apr 24 09:00:01 +0000 2017",
    "favorite_count": 741,
    "hashtags": [
      {
        "text": "スクフェス"
      }
    ],
    "id": 856432531238862800,
    "id_str": "856432531238862849",
    "lang": "ja",
    "retweet_count": 202,
    "source": "<a href=\"https://about.twitter.com/products/tweetdeck\" rel=\"nofollow\">TweetDeck</a>",
    "text": "【4/26(水)まで】μ'sの1年生限定勧誘が日替わりで開催中!リニューアルした限定勧誘では、出現率アップ対象が、メンバー毎での勧誘が登場します(3種類)!!本日はスマイル限定勧誘!詳細はゲーム内でご確認ください♪ #スクフェス… https://t.co/C4fi2KlD8l",
    "truncated": true,
    "urls": [
      {
        "expanded_url": "https://twitter.com/i/web/status/856432531238862849",
        "url": "https://t.co/C4fi2KlD8l"
      }
    ],
    "user": {
      "created_at": "Fri Apr 12 14:16:50 +0000 2013",
      "default_profile": true,
      "description": "スマートフォン向けリズムアクション&アドベンチャーゲーム『ラブライブ!スクールアイドルフェスティバル』の公式アカウントです。アプリに関するご質問・ご要望はユーザーサポート【info-lovelive@klab.com】宛てにご連絡ください。ツイッターでは個別のお返事をしておりません。",
      "followers_count": 481665,
      "friends_count": 3,
      "geo_enabled": true,
      "id": 1346933186,
      "lang": "ja",
      "listed_count": 7793,
      "name": "【公式】ラブライブ!スクフェス事務局",
      "profile_background_color": "C0DEED",
      "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
      "profile_image_url": "http://pbs.twimg.com/profile_images/3519444353/8b039a130fd789078f04ab067b1010c1_normal.png",
      "profile_link_color": "1DA1F2",
      "profile_sidebar_fill_color": "DDEEF6",
      "profile_text_color": "333333",
      "screen_name": "lovelive_SIF",
      "statuses_count": 3086,
      "time_zone": "Tokyo",
      "url": "http://t.co/rG31j0pwfD",
      "utc_offset": 32400
    },
    "user_mentions": []
  },
  "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
  "text": "RT @lovelive_SIF: 【4/26(水)まで】μ'sの1年生限定勧誘が日替わりで開催中!リニューアルした限定勧誘では、出現率アップ対象が、メンバー毎での勧誘が登場します(3種類)!!本日はスマイル限定勧誘!詳細はゲーム内でご確認ください♪ #スクフェス #lovel…",
  "urls": [],
  "user": {
    "created_at": "Thu Mar 23 12:41:04 +0000 2017",
    "description": "曜ちゃん好き / ことりちゃん好き / よう(ちか|りこ|よし)好き / ことぱな好き / スクフェス Rank 16x",
    "favourites_count": 1358,
    "followers_count": 458,
    "friends_count": 709,
    "id": 844891746928537600,
    "lang": "ja",
    "listed_count": 4,
    "name": "🐽 You 🐟",
    "profile_background_color": "000000",
    "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
    "profile_banner_url": "https://pbs.twimg.com/profile_banners/844891746928537601/1492611694",
    "profile_image_url": "http://pbs.twimg.com/profile_images/847907193663795200/VNYNQ_JG_normal.jpg",
    "profile_link_color": "91D2FA",
    "profile_sidebar_fill_color": "000000",
    "profile_text_color": "000000",
    "screen_name": "yousorojp",
    "statuses_count": 1121,
    "time_zone": "Tokyo",
    "url": "https://t.co/6cMAnneoVC",
    "utc_offset": 32400
  },
  "user_mentions": [
    {
      "id": 1346933186,
      "name": "【公式】ラブライブ!スクフェス事務局",
      "screen_name": "lovelive_SIF"
    }
  ]
}

6.リツイート(コメントあり)

{
  "created_at": "Mon Apr 24 18:13:48 +0000 2017",
  "hashtags": [],
  "id": 856571893586944000,
  "id_str": "856571893586944000",
  "lang": "ja",
  "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
  "text": "アホ毛mgmg https://t.co/iaoUgHcETL",
  "urls": [
    {
      "expanded_url": "https://twitter.com/smile_chika_b/status/856570497127108616",
      "url": "https://t.co/iaoUgHcETL"
    }
  ],
  "user": {
    "created_at": "Thu Mar 23 12:41:04 +0000 2017",
    "description": "曜ちゃん好き / ことりちゃん好き / よう(ちか|りこ|よし)好き / ことぱな好き / スクフェス Rank 16x",
    "favourites_count": 1358,
    "followers_count": 458,
    "friends_count": 709,
    "id": 844891746928537600,
    "lang": "ja",
    "listed_count": 4,
    "name": "🐽 You 🐟",
    "profile_background_color": "000000",
    "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
    "profile_banner_url": "https://pbs.twimg.com/profile_banners/844891746928537601/1492611694",
    "profile_image_url": "http://pbs.twimg.com/profile_images/847907193663795200/VNYNQ_JG_normal.jpg",
    "profile_link_color": "91D2FA",
    "profile_sidebar_fill_color": "000000",
    "profile_text_color": "000000",
    "screen_name": "yousorojp",
    "statuses_count": 1122,
    "time_zone": "Tokyo",
    "url": "https://t.co/6cMAnneoVC",
    "utc_offset": 32400
  },
  "user_mentions": []
}
2
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?