Search for tweets with t.co rewritten links

前端 未结 4 1337
孤街浪徒
孤街浪徒 2021-02-05 06:14

Just noticed a spike of visitors following a t.co/LINKHERE a link re-written by twitter. Is there a way to track back to the twitter message that contained the link, if you know

4条回答
  •  日久生厌
    2021-02-05 06:40

    t.co links do show up in search, so if you're curious, you have about a week to find them before they get dropped from the search index.

    For example: http://search.twitter.com/search.json?q=https:%2F%2Ft.co%2FGJMsIcM6

    Returns:

    {
      "completed_in": 0.019,
      "max_id": 178215431251828740,
      "max_id_str": "178215431251828736",
      "page": 1,
      "query": "https%3A%2F%2Ft.co%2FGJMsIcM6",
      "refresh_url": "?since_id=178215431251828736&q=https%3A%2F%2Ft.co%2FGJMsIcM6",
      "results": [
        {
          "created_at": "Fri, 09 Mar 2012 20:27:24 +0000",
          "from_user": "kurrik",
          "from_user_id": 7588892,
          "from_user_id_str": "7588892",
          "from_user_name": "Arne Roomann-Kurrik",
          "geo": null,
          "id": 178215431251828740,
          "id_str": "178215431251828736",
          "iso_language_code": "en",
          "metadata": {
            "result_type": "recent"
          },
          "profile_image_url": "http://a0.twimg.com/profile_images/24229162/arne001_normal.jpg",
          "profile_image_url_https": "https://si0.twimg.com/profile_images/24229162/arne001_normal.jpg",
          "source": "<a href="http://twitter.com/tweetbutton" rel="nofollow">Tweet Button</a>",
          "text": "RT @raffi: “Twitter Catches the 'SPDY' Train” from @wired → http://t.co/suCbWWEl (& they reference my tweet! → https://t.co/GJMsIcM6)",
          "to_user": null,
          "to_user_id": null,
          "to_user_id_str": null,
          "to_user_name": null
        },
        {
          "created_at": "Fri, 09 Mar 2012 20:26:26 +0000",
          "from_user": "raffi",
          "from_user_id": 8285392,
          "from_user_id_str": "8285392",
          "from_user_name": "Raffi Krikorian",
          "geo": null,
          "id": 178215186921033730,
          "id_str": "178215186921033730",
          "iso_language_code": "en",
          "metadata": {
            "result_type": "recent"
          },
          "profile_image_url": "http://a0.twimg.com/profile_images/1270234259/raffi-headshot-casual_normal.png",
          "profile_image_url_https": "https://si0.twimg.com/profile_images/1270234259/raffi-headshot-casual_normal.png",
          "source": "<a href="http://twitter.com/tweetbutton" rel="nofollow">Tweet Button</a>",
          "text": "“Twitter Catches the 'SPDY' Train” from @wired → http://t.co/suCbWWEl (& they reference my tweet! → https://t.co/GJMsIcM6)",
          "to_user": null,
          "to_user_id": null,
          "to_user_id_str": null,
          "to_user_name": null
        }
      ],
      "results_per_page": 15,
      "since_id": 0,
      "since_id_str": "0"
    }
    

    You'll see that search returns retweets as well.

提交回复
热议问题