GET users/search

Updated on Wed, 2013-03-27 07:20

Provides a simple, relevance-based search interface to public user accounts on Twitter. Try querying by topical interest, full name, company name, location, or other criteria. Exact match searches are not supported.

Only the first 1,000 matching results are available.

Resource URL

https://api.twitter.com/1.1/users/search.json

Parameters

q required

The search query to run against people search.

Example Values: Twitter%20API

page optional

Specifies the page of results to retrieve.

Example Values: 3

count optional

The number of potential user results to retrieve per page. This value has a maximum of 20.

Example Values: 5

include_entities optional

The entities node will be disincluded from embedded tweet objects when set to false.

Example Values: false

Example Request

GET

https://api.twitter.com/1.1/users/search.json?q=Twitter%20API&page=1&count=3

  1. [
  2.   {
  3.     "profile_sidebar_fill_color": "DDEEF6",
  4.     "profile_background_tile": true,
  5.     "profile_sidebar_border_color": "C0DEED",
  6.     "name": "Twitter API",
  7.     "created_at": "Wed May 23 06:01:13 +0000 2007",
  8.     "profile_image_url": "http://a0.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png",
  9.     "location": "San Francisco, CA",
  10.     "follow_request_sent": false,
  11.     "id_str": "6253282",
  12.     "is_translator": false,
  13.     "profile_link_color": "0084B4",
  14.     "entities": {
  15.       "url": {
  16.         "urls": [
  17.           {
  18.             "expanded_url": null,
  19.             "url": "http://dev.twitter.com",
  20.             "indices": [
  21.               0,
  22.               22
  23.             ],
  24.             "display_url": null
  25.           }
  26.         ]
  27.       },
  28.       "description": {
  29.         "urls": [
  30.  
  31.         ]
  32.       }
  33.     },
  34.     "default_profile": false,
  35.     "contributors_enabled": false,
  36.     "favourites_count": 25,
  37.     "url": "http://dev.twitter.com",
  38.     "profile_banner_url": "https://twimg0-a.akamaihd.net/profile_banners/6253282/1347394302",
  39.     "utc_offset": -28800,
  40.     "profile_image_url_https": "https://twimg0-a.akamaihd.net/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png",
  41.     "id": 6253282,
  42.     "listed_count": 11426,
  43.     "profile_use_background_image": true,
  44.     "lang": "en",
  45.     "profile_text_color": "333333",
  46.     "followers_count": 1562132,
  47.     "protected": false,
  48.     "verified": true,
  49.     "description": "The Real Twitter API. I tweet about API changes, service issues and happily answer questions about Twitter and our API. Don't get an answer? It's on my website.",
  50.     "geo_enabled": true,
  51.     "time_zone": "Pacific Time (US & Canada)",
  52.     "notifications": false,
  53.     "profile_background_image_url_https": "https://twimg0-a.akamaihd.net/profile_background_images/656927849/miyt9dpjz77sc0w3d4vj.png",
  54.     "profile_background_color": "C0DEED",
  55.     "status": {
  56.       "coordinates": null,
  57.       "truncated": false,
  58.       "favorited": false,
  59.       "created_at": "Wed Mar 27 01:19:47 +0000 2013",
  60.       "id_str": "316721175038406658",
  61.       "entities": {
  62.         "urls": [
  63.  
  64.         ],
  65.         "hashtags": [
  66.  
  67.         ],
  68.         "user_mentions": [
  69.           {
  70.             "name": "TwitterDevJP",
  71.             "id_str": "70915829",
  72.             "id": 70915829,
  73.             "indices": [
  74.               106,
  75.               119
  76.             ],
  77.             "screen_name": "TwitterDevJP"
  78.           }
  79.         ]
  80.       },
  81.       "in_reply_to_user_id_str": null,
  82.       "text": "In case you didn't know, we have an official account tweeting about Twitter developer topics in Japanese: @TwitterDevJP",
  83.       "contributors": null,
  84.       "id": 316721175038406658,
  85.       "in_reply_to_status_id_str": null,
  86.       "retweet_count": 19,
  87.       "geo": null,
  88.       "retweeted": false,
  89.       "in_reply_to_user_id": null,
  90.       "source": "web",
  91.       "place": null,
  92.       "in_reply_to_screen_name": null,
  93.       "in_reply_to_status_id": null
  94.     },
  95.     "friends_count": 34,
  96.     "profile_background_image_url": "http://a0.twimg.com/profile_background_images/656927849/miyt9dpjz77sc0w3d4vj.png",
  97.     "default_profile_image": false,
  98.     "statuses_count": 3406,
  99.     "screen_name": "twitterapi",
  100.     "following": true
  101.   },
  102.   {
  103.     "profile_sidebar_fill_color": "DDEEF6",
  104.     "profile_background_tile": true,
  105.     "profile_sidebar_border_color": "C0DEED",
  106.     "name": "Twitter Mobile",
  107.     "created_at": "Tue Apr 10 01:20:52 +0000 2007",
  108.     "profile_image_url": "http://a0.twimg.com/profile_images/2284174879/uqyatg9dtld0rxx9anic_normal.png",
  109.     "location": "San Francisco, CA",
  110.     "is_translator": false,
  111.     "follow_request_sent": false,
  112.     "id_str": "3963481",
  113.     "profile_link_color": "0084B4",
  114.     "entities": {
  115.       "url": {
  116.         "urls": [
  117.           {
  118.             "expanded_url": null,
  119.             "url": "http://twitter.com",
  120.             "indices": [
  121.               0,
  122.               18
  123.             ],
  124.             "display_url": null
  125.           }
  126.         ]
  127.       },
  128.       "description": {
  129.         "urls": [
  130.  
  131.         ]
  132.       }
  133.     },
  134.     "default_profile": false,
  135.     "contributors_enabled": false,
  136.     "favourites_count": 2,
  137.     "url": "http://twitter.com",
  138.     "profile_image_url_https": "https://twimg0-a.akamaihd.net/profile_images/2284174879/uqyatg9dtld0rxx9anic_normal.png",
  139.     "profile_banner_url": "https://twimg0-a.akamaihd.net/profile_banners/3963481/1347394599",
  140.     "utc_offset": -28800,
  141.     "id": 3963481,
  142.     "listed_count": 7303,
  143.     "profile_use_background_image": true,
  144.     "lang": "en",
  145.     "profile_text_color": "333333",
  146.     "followers_count": 2359548,
  147.     "protected": false,
  148.     "verified": true,
  149.     "description": null,
  150.     "geo_enabled": true,
  151.     "time_zone": "Pacific Time (US & Canada)",
  152.     "notifications": false,
  153.     "profile_background_image_url_https": "https://twimg0-a.akamaihd.net/profile_background_images/656932170/urr667rpqtg6l7psohaf.png",
  154.     "profile_background_color": "C0DEED",
  155.     "status": {
  156.       "coordinates": null,
  157.       "truncated": false,
  158.       "favorited": false,
  159.       "created_at": "Wed Mar 20 12:55:51 +0000 2013",
  160.       "id_str": "314359633311588355",
  161.       "in_reply_to_user_id_str": null,
  162.       "entities": {
  163.         "urls": [
  164.  
  165.         ],
  166.         "hashtags": [
  167.  
  168.         ],
  169.         "user_mentions": [
  170.  
  171.         ]
  172.       },
  173.       "text": "Beeline subscribers in Armenia can now send and receive Tweets via SMS. Begin by sending START to 40404. Welcome to Twitter!",
  174.       "contributors": null,
  175.       "id": 314359633311588355,
  176.       "in_reply_to_status_id_str": null,
  177.       "retweet_count": 31,
  178.       "geo": null,
  179.       "retweeted": false,
  180.       "in_reply_to_user_id": null,
  181.       "source": "web",
  182.       "place": null,
  183.       "in_reply_to_screen_name": null,
  184.       "in_reply_to_status_id": null
  185.     },
  186.     "friends_count": 28,
  187.     "profile_background_image_url": "http://a0.twimg.com/profile_background_images/656932170/urr667rpqtg6l7psohaf.png",
  188.     "default_profile_image": false,
  189.     "statuses_count": 338,
  190.     "screen_name": "twittermobile",
  191.     "following": true
  192.   },
  193.   {
  194.     "profile_sidebar_fill_color": "DAECF4",
  195.     "profile_background_tile": false,
  196.     "profile_sidebar_border_color": "C6E2EE",
  197.     "name": "Twitter Engineering",
  198.     "created_at": "Sat Jun 16 00:14:36 +0000 2007",
  199.     "profile_image_url": "http://a0.twimg.com/profile_images/2284174594/apcu4c9tu2zkefnev0jt_normal.png",
  200.     "location": "San Francisco, CA",
  201.     "follow_request_sent": false,
  202.     "is_translator": false,
  203.     "id_str": "6844292",
  204.     "profile_link_color": "1F98C7",
  205.     "entities": {
  206.       "url": {
  207.         "urls": [
  208.           {
  209.             "expanded_url": null,
  210.             "url": "http://engineering.twitter.com",
  211.             "indices": [
  212.               0,
  213.               30
  214.             ],
  215.             "display_url": null
  216.           }
  217.         ]
  218.       },
  219.       "description": {
  220.         "urls": [
  221.  
  222.         ]
  223.       }
  224.     },
  225.     "default_profile": false,
  226.     "contributors_enabled": false,
  227.     "favourites_count": 0,
  228.     "url": "http://engineering.twitter.com",
  229.     "profile_image_url_https": "https://twimg0-a.akamaihd.net/profile_images/2284174594/apcu4c9tu2zkefnev0jt_normal.png",
  230.     "utc_offset": -28800,
  231.     "id": 6844292,
  232.     "listed_count": 2304,
  233.     "profile_use_background_image": true,
  234.     "lang": "en",
  235.     "profile_text_color": "663B12",
  236.     "followers_count": 343156,
  237.     "protected": false,
  238.     "verified": true,
  239.     "description": "The official account for Twitter Engineering.",
  240.     "geo_enabled": true,
  241.     "time_zone": "Pacific Time (US & Canada)",
  242.     "notifications": false,
  243.     "profile_background_image_url_https": "https://twimg0-a.akamaihd.net/images/themes/theme2/bg.gif",
  244.     "profile_background_color": "C6E2EE",
  245.     "status": {
  246.       "coordinates": null,
  247.       "truncated": false,
  248.       "favorited": false,
  249.       "created_at": "Mon Mar 18 17:50:28 +0000 2013",
  250.       "id_str": "313708997167419393",
  251.       "retweeted_status": {
  252.         "coordinates": null,
  253.         "truncated": false,
  254.         "favorited": false,
  255.         "created_at": "Thu Mar 14 10:57:20 +0000 2013",
  256.         "id_str": "312155480858431488",
  257.         "in_reply_to_user_id_str": null,
  258.         "entities": {
  259.           "urls": [
  260.             {
  261.               "expanded_url": "http://tweetdeck.posterous.com/flight-at-tweetdeck",
  262.               "url": "http://t.co/G9sRrGHgJY",
  263.               "indices": [
  264.                 56,
  265.                 78
  266.               ],
  267.               "display_url": "tweetdeck.posterous.com/flight-at-twee…"
  268.             }
  269.           ],
  270.           "hashtags": [
  271.  
  272.           ],
  273.           "user_mentions": [
  274.  
  275.           ]
  276.         },
  277.         "text": "Our use of the Flight JavaScript framework in TweetDeck http://t.co/G9sRrGHgJY",
  278.         "contributors": null,
  279.         "id": 312155480858431488,
  280.         "in_reply_to_status_id_str": null,
  281.         "retweet_count": 100,
  282.         "geo": null,
  283.         "retweeted": false,
  284.         "in_reply_to_user_id": null,
  285.         "possibly_sensitive": false,
  286.         "source": "<a href=\"http://www.tweetdeck.com\" rel=\"nofollow\">TweetDeck</a>",
  287.         "place": null,
  288.         "in_reply_to_screen_name": null,
  289.         "in_reply_to_status_id": null
  290.       },
  291.       "in_reply_to_user_id_str": null,
  292.       "entities": {
  293.         "urls": [
  294.           {
  295.             "expanded_url": "http://tweetdeck.posterous.com/flight-at-tweetdeck",
  296.             "url": "http://t.co/G9sRrGHgJY",
  297.             "indices": [
  298.               71,
  299.               93
  300.             ],
  301.             "display_url": "tweetdeck.posterous.com/flight-at-twee…"
  302.           }
  303.         ],
  304.         "hashtags": [
  305.  
  306.         ],
  307.         "user_mentions": [
  308.           {
  309.             "name": "TweetDeck",
  310.             "id_str": "14803701",
  311.             "id": 14803701,
  312.             "indices": [
  313.               3,
  314.               13
  315.             ],
  316.             "screen_name": "TweetDeck"
  317.           }
  318.         ]
  319.       },
  320.       "text": "RT @TweetDeck: Our use of the Flight JavaScript framework in TweetDeck http://t.co/G9sRrGHgJY",
  321.       "contributors": null,
  322.       "id": 313708997167419393,
  323.       "in_reply_to_status_id_str": null,
  324.       "retweet_count": 100,
  325.       "geo": null,
  326.       "retweeted": false,
  327.       "in_reply_to_user_id": null,
  328.       "possibly_sensitive": false,
  329.       "source": "web",
  330.       "place": null,
  331.       "in_reply_to_screen_name": null,
  332.       "in_reply_to_status_id": null
  333.     },
  334.     "friends_count": 0,
  335.     "profile_background_image_url": "http://a0.twimg.com/images/themes/theme2/bg.gif",
  336.     "default_profile_image": false,
  337.     "statuses_count": 153,
  338.     "screen_name": "TwitterEng",
  339.     "following": true
  340.   }
  341. ]