Twitter API#
Overview#
Friendica provides the following endpoints defined in the official Twitter API reference.
Authentication is the same as described in Using the APIs.
Entities#
These endpoints use the Friendica API entities.
Different behaviour#
screen_name
: The nickname in Friendica is only unique in each network but not for all networks. The users are searched in the following priority: Friendica, StatusNet/GNU Social, Diaspora, pump.io, Twitter. If no contact was found by this way, then the first contact is taken.include_entities
: Default is "false". If set to "true" then the plain text is formatted so that links are having descriptions.
Friendica-specific return values#
cid
: Contact id of the user (important for "contact_allow" and "contact_deny")network
: network of the user
Unsupported parameters#
cursor
trim_user
contributor_details
place_id
display_coordinates
include_rts
: To-Doinclude_my_retweet
: Retweets in Friendica are implemented in a different way
Implemented endpoints#
- POST api/oauth/access_token
- Unsupported parameters:
x_auth_password
x_auth_username
x_auth_mode
- Unsupported parameters:
-
- Unsupported parameter:
x_auth_access_type
- Unsupported parameter:
-
GET api/account/verify_credentials
- Unsupported parameter:
include_email
- Unsupported parameter:
- POST api/account/update_profile
- Unsupported parameters:
url
location
profile_link_color
include_entities
skip_status
- Unsupported parameters:
-
POST api/account/update_profile_image
- Additional parameter:
profile_id
(optional): Numerical id of the profile for which the image should be used, default is changing the default profile.
- Additional parameter:
-
- Unsupported parameter:
display_coordinates
- Unsupported parameter:
-
- Additional return value:
image.friendica_preview_url
: image preview url
- Additional return value:
- GET api/users/search
- Unsupported parameters:
page
count
include_entities
- Unsupported parameters:
-
- Unsupported parameters:
screen_name
include_entities
- Unsupported parameters:
-
- Unsupported parameters:
geocode
lang
locale
result_type
until
include_entities
- Unsupported parameters:
-
GET api/statuses/home_timeline
- Alias:
GET api/statuses/friends_timeline
- Alias:
- GET api/statuses/user_timeline
- GET api/statuses/mentions (deprecated)
- GET api/statuses/show/:id
- POST api/statuses/retweet/:id
- POST api/statuses/destroy/:id
-
GET api/statuses/followers (deprecated)
- Alias:
GET api/statuses/friends
- Alias:
-
GET api/favorites (deprecated)
- Unsupported parameters:
user_id
: Favorites aren't returned for other users than selfscreen_name
: Favorites aren't returned for other users than self
- Unsupported parameters:
- POST api/favorites/create
- GET api/lists/ownerships
- Unsupported parameters:
slug
owner_screen_name
owner_id
include_entities
- Unsupported parameters:
- GET api/lists/statuses
- Unsupported parameters:
screen_name
count
- Unsupported parameters:
- GET api/lists/subscriptions
- POST api/lists/update
- Unsupported parameters:
slug
name
mode
description
owner_screen_name
owner_id
- Unsupported parameters:
- POST api/lists/create
- Unsupported parameters:
mode
description
- Unsupported parameters:
-
- Unsupported parameters:
owner_screen_name
owner_id
slug
- Unsupported parameters:
-
- Unsupported parameters
stringify_ids
- Unsupported parameters
- GET api/followers/list
- GET api/friends/ids
-
- Additional parameters:
since_id
: You can use thenext_cursor
value to load the next page.max_id
: You can use the inverse of theprevious_cursor
value to load the previous page.
- Unsupported parameter:
skip_status
: No status is returned even if it isn't set to true.
- Caveats:
cursor
trumpssince_id
trumpsmax_id
if any combination is provided.user_id
must be the ID of a contact associated with a local user account.screen_name
must be associated with a local user account.screen_name
trumpsuser_id
if both are provided (undocumented Twitter behavior).- Will succeed but return an empty array for users hiding their contact lists.
- Additional parameters:
Non-implemented endpoints#
- GET oauth/authenticate
- GET oauth/authorize
- POST oauth/invalidate_token
- POST oauth2/invalidate_token
- GET lists/members/show
- GET lists/memberships
- GET lists/show
- GET lists/subscribers
- GET lists/subscribers/show
- POST lists/members/create
- POST lists/members/create_all
- POST lists/members/destroy
- POST lists/members/destroy_all
- POST lists/subscribers/create
- GET friendships/no_retweets/ids
- GET friendships/outgoing
- GET friendships/show
- GET users/suggestions (deprecated)
- GET users/suggestions/:slug (deprecated)
- GET users/suggestions/:slug/members (deprecated)
- POST friendships/create
- GET saved_searches/show/:id
- GET users/profile_banner
- POST account/remove_profile_banner
- POST account/settings
- POST account/update_profile_background_image (deprecated)
- POST account/update_profile_banner
- POST saved_searches/create
- GET mutes/users/ids
- GET mutes/users/list
- POST blocks/create
- POST blocks/destroy
- POST mutes/users/create
- POST mutes/users/destroy
- GET collections/list
- GET collections/show
- POST collections/create
- POST collections/destroy
- POST collections/entries/add
- POST collections/entries/curate
- POST collections/entries/move
- POST collections/entries/remove
- GET statuses/lookup
- GET statuses/oembed
- GET statuses/retweeters/ids
- GET statuses/retweets/:id
- GET statuses/retweets_of_me
- GET custom_profiles/:id
- GET custom_profiles/list
- GET direct_messages/events/list
- GET direct_messages/events/show
- POST direct_messages/events/new (message_create)
- POST direct_messages/indicate_typing
- DELETE direct_messages/welcome_messages/rules/destroy
- PUT direct_messages/welcome_messages/update
- GET direct_messages/welcome_messages/list
- GET direct_messages/welcome_messages/rules/list
- GET direct_messages/welcome_messages/rules/show
- GET direct_messages/welcome_messages/show
- POST direct_messages/welcome_messages/new
- POST media/subtitles/create
- POST media/subtitles/delete
- POST media/upload (APPEND)
- POST media/upload (FINALIZE)
- GET trends/closest
- GET geo/reverse_geocode
- GET geo/search