<< Back to Twitter API Documentation
report_spam
The user specified in the id is blocked by the authenticated user and reported as a spammer.
URL:
http://api.twitter.com/1/report_spam.format
Formats:
xml, json
HTTP Method:
POST
Requires Authentication (about authentication):
true
API rate limited (about rate limiting):
A user is allotted a fixed number of spam reports an hour.
Parameters:
One of the following is required:
- id. Optional. The ID or screen_name of the user you want to report as a spammer.
- 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.
- 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.
Response (about return values):
200 response: reported user payload
<?xml version="1.0" encoding="UTF-8"?>
<user>
<id>82228249</id>
<name>Example Spammer</name>
<screen_name>examplespammer</screen_name>
<location></location>
<description></description>
<profile_image_url>http://s.twimg.com/a/1255464717/images/default_profile_5_normal.png</profile_image_url>
<url></url>
<protected>false</protected>
<followers_count>0</followers_count>
<profile_background_color>9ae4e8</profile_background_color>
<profile_text_color>000000</profile_text_color>
<profile_link_color>0000ff</profile_link_color>
<profile_sidebar_fill_color>e0ff92</profile_sidebar_fill_color>
<profile_sidebar_border_color>87bc44</profile_sidebar_border_color>
<friends_count>0</friends_count>
<created_at>Wed Oct 14 00:02:48 +0000 2009</created_at>
<favourites_count>0</favourites_count>
<utc_offset></utc_offset>
<time_zone></time_zone>
<profile_background_image_url>http://s.twimg.com/a/1255464717/images/themes/theme1/bg.png</profile_background_image_url>
<profile_background_tile>false</profile_background_tile>
<statuses_count>1</statuses_count>
<notifications></notifications>
<geo_enabled>false</geo_enabled>
<verified>false</verified>
<following></following>
<status>
<created_at>Wed Oct 14 00:03:07 +0000 2009</created_at>
<id>4848508228</id>
<text>I am an example spam account!</text>
<source>web</source>
<truncated>false</truncated>
<in_reply_to_status_id></in_reply_to_status_id>
<in_reply_to_user_id></in_reply_to_user_id>
<favorited>false</favorited>
<in_reply_to_screen_name></in_reply_to_screen_name>
<geo/>
</status>
</user>
4XX response: error message
Usage examples:
cURL (about cURL):
curl -u username:password -d "screen_name=examplespammer" http://api.twitter.com/1/report_spam.xml
Do you have an example to share in the language of your choice? Please share!
<< Back to Twitter API Documentation
Comments (0)
You don't have permission to comment on this page.