POST users/report_spam

Updated on Tue, 2012-11-27 11:34

Report the specified user as a spam account to Twitter. Additionally performs the equivalent of POST blocks/create on behalf of the authenticated user.

Resource URL

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

Parameters

One of these parameters must be provided.

screen_name optional

The ID or screen_name of the user you want to report as a spammer. Helpful for disambiguating when a valid screen name is also a user ID.

Example Values: noradio

user_id optional

The ID of the user you want to report as a spammer. Helpful for disambiguating when a valid user ID is also a valid screen name.

Example Values: 12345

Example Request

POST

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

POST Data

screen_name=themattharris

  1. {
  2.   "name": "Matt Harris",
  3.   "profile_sidebar_border_color": "C0DEED",
  4.   "profile_sidebar_fill_color": "DDEEF6",
  5.   "profile_background_tile": false,
  6.   "profile_image_url": "http://a0.twimg.com/profile_images/554181350/matt_normal.jpg",
  7.   "created_at": "Sat Feb 17 20:49:54 +0000 2007",
  8.   "location": "SFO/LHR/YVR/JAX/IAD",
  9.   "is_translator": false,
  10.   "follow_request_sent": false,
  11.   "id_str": "777925",
  12.   "profile_link_color": "0084B4",
  13.   "entities": {
  14.     "url": {
  15.       "urls": [
  16.         {
  17.           "expanded_url": null,
  18.           "url": "http://www.themattharris.com",
  19.           "indices": [
  20.             0,
  21.             28
  22.           ],
  23.           "display_url": null
  24.         }
  25.       ]
  26.     },
  27.     "description": {
  28.       "urls": [
  29.  
  30.       ]
  31.     }
  32.   },
  33.   "default_profile": true,
  34.   "contributors_enabled": true,
  35.   "url": "http://www.themattharris.com",
  36.   "favourites_count": 213,
  37.   "utc_offset": -28800,
  38.   "id": 777925,
  39.   "profile_image_url_https": "https://si0.twimg.com/profile_images/554181350/matt_normal.jpg",
  40.   "profile_use_background_image": true,
  41.   "listed_count": 303,
  42.   "profile_text_color": "333333",
  43.   "protected": false,
  44.   "lang": "en",
  45.   "followers_count": 7984,
  46.   "time_zone": "Pacific Time (US & Canada)",
  47.   "profile_background_image_url_https": "https://si0.twimg.com/images/themes/theme1/bg.png",
  48.   "verified": false,
  49.   "profile_background_color": "C0DEED",
  50.   "notifications": false,
  51.   "description": "Part of @twitter's Platform Services. Married to @cindyli. Kryptonite hurts me.",
  52.   "geo_enabled": true,
  53.   "statuses_count": 4492,
  54.   "default_profile_image": false,
  55.   "status": {
  56.     "coordinates": null,
  57.     "favorited": false,
  58.     "created_at": "Tue Aug 28 00:11:59 +0000 2012",
  59.     "truncated": false,
  60.     "id_str": "240240276298420224",
  61.     "entities": {
  62.       "urls": [
  63.         {
  64.           "expanded_url": "https://twitter.com/rsarver/status/240224006807117828",
  65.           "url": "https://t.co/DdTXEtcd",
  66.           "indices": [
  67.             71,
  68.             92
  69.           ],
  70.           "display_url": "twitter.com/rsarver/status\u2026"
  71.         },
  72.         {
  73.           "expanded_url": "https://twitter.com/rsarver/status/240223841786404864",
  74.           "url": "https://t.co/Pq8Sj0sl",
  75.           "indices": [
  76.             97,
  77.             118
  78.           ],
  79.           "display_url": "twitter.com/rsarver/status\u2026"
  80.         }
  81.       ],
  82.       "hashtags": [
  83.  
  84.       ],
  85.       "user_mentions": [
  86.         {
  87.           "name": "Heilemann",
  88.           "id_str": "11656",
  89.           "id": 11656,
  90.           "indices": [
  91.             1,
  92.             11
  93.           ],
  94.           "screen_name": "Heilemann"
  95.         },
  96.         {
  97.           "name": "Luke Dorny",
  98.           "id_str": "12587",
  99.           "id": 12587,
  100.           "indices": [
  101.             13,
  102.             24
  103.           ],
  104.           "screen_name": "luxuryluke"
  105.         },
  106.         {
  107.           "name": "Ryan Sarver",
  108.           "id_str": "795649",
  109.           "id": 795649,
  110.           "indices": [
  111.             27,
  112.             35
  113.           ],
  114.           "screen_name": "rsarver"
  115.         },
  116.         {
  117.           "name": "Jeremy Keith",
  118.           "id_str": "11250",
  119.           "id": 11250,
  120.           "indices": [
  121.             61,
  122.             69
  123.           ],
  124.           "screen_name": "adactio"
  125.         }
  126.       ]
  127.     },
  128.     "in_reply_to_user_id_str": "11656",
  129.     "text": ".@Heilemann, @luxuryluke - @rsarver has been clarifying with @adactio: https://t.co/DdTXEtcd and https://t.co/Pq8Sj0sl",
  130.     "contributors": null,
  131.     "retweet_count": 0,
  132.     "id": 240240276298420224,
  133.     "in_reply_to_status_id_str": "240226590703898624",
  134.     "geo": null,
  135.     "retweeted": false,
  136.     "in_reply_to_user_id": 11656,
  137.     "possibly_sensitive": false,
  138.     "place": null,
  139.     "possibly_sensitive_editable": true,
  140.     "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter for  iPhone</a>",
  141.     "in_reply_to_screen_name": "Heilemann",
  142.     "in_reply_to_status_id": 240226590703898624
  143.   },
  144.   "friends_count": 430,
  145.   "profile_background_image_url": "http://a0.twimg.com/images/themes/theme1/bg.png",
  146.   "show_all_inline_media": false,
  147.   "screen_name": "themattharris",
  148.   "following": true
  149. }