Returns a [Contact](help/API-Entities#Contact) entity for the provided profile URL.
#### Parameters
-`profileurl`: Profile URL
### GET api/statuses/public_timeline
Returns a list of public [Items](help/API-Entities#Item) posted on this node.
Equivalent of the local community page.
#### Parameters
*`count`: Items per page (default: 20)
*`page`: page number
*`since_id`: minimum id
*`max_id`: maximum id
*`exclude_replies`: don't show replies (default: false)
*`conversation_id`: Shows all statuses of a given conversation.
*`include_entities`: "true" shows entities for pictures and links (Default: false)
#### Unsupported parameters
*`trim_user`
### GET api/statuses/networkpublic_timeline
Returns a list of public [Items](help/API-Entities#Item) this node is aware of.
Equivalent of the global community page.
#### Parameters
*`count`: Items per page (default: 20)
*`page`: page number
*`since_id`: minimum id
*`max_id`: maximum id
*`exclude_replies`: don't show replies (default: false)
*`conversation_id`: Shows all statuses of a given conversation.
*`include_entities`: "true" shows entities for pictures and links (Default: false)
### GET api/statuses/replies
#### Parameters
*`count`: Items per page (default: 20)
*`page`: page number
*`since_id`: minimum id
*`max_id`: maximum id
*`include_entities`: "true" shows entities for pictures and links (Default: false)
#### Unsupported parameters
*`include_rts`
*`trim_user`
*`contributor_details`
---
### GET api/conversation/show
Unofficial Twitter command. It shows all direct answers (excluding the original post) to a given id.
#### Parameters
*`id`: id of the post
*`count`: Items per page (default: 20)
*`page`: page number
*`since_id`: minimum id
*`max_id`: maximum id
*`include_entities`: "true" shows entities for pictures and links (Default: false)
#### Unsupported parameters
*`include_rts`
*`trim_user`
*`contributor_details`
### GET api/statusnet/conversation
Alias of [`api/conversation/show`](#GET+api%2Fconversation%2Fshow).
### GET api/statusnet/config
Returns the public Friendica node configuration.
### GET api/gnusocial/config
Alias of [`api/statusnet/config`](#GET+api%2Fstatusnet%2Fconfig).
### GET api/statusnet/version
Returns a fake static StatusNet protocol version.
### GET api/gnusocial/version
Alias of [`api/statusnet/version`](#GET+api%2Fstatusnet%2Fversion).
---
### POST api/friendica/activity/[verb]
Add or remove an activity from an item.
'verb' can be one of:
*`like`
*`dislike`
*`attendyes`
*`attendno`
*`attendmaybe`
To remove an activity, prepend the verb with "un", eg. "unlike" or "undislike"
Attend verbs disable eachother: that means that if "attendyes" was added to an item, adding "attendno" remove previous "attendyes".
Attend verbs should be used only with event-related items (there is no check at the moment).
#### Parameters
*`id`: item id
#### Return values
On success:
json:
```"ok"```
xml:
```<ok>true</ok>```
On error:
HTTP 400 BadRequest
---
### GET api/direct_messages
Deprecated Twitter received direct message list endpoint.
#### Parameters
*`count`: Items per page (default: 20)
*`page`: page number
*`since_id`: minimum id
*`max_id`: maximum id
*`getText`: Defines the format of the status field. Can be "html" or "plain"
*`include_entities`: "true" shows entities for pictures and links (Default: false)
*`friendica_verbose`: "true" enables different error returns (default: "false")
#### Unsupported parameters
*`skip_status`
### GET api/direct_messages/all
Returns all [Private Messages](help/API-Entities#Private+message).
#### Parameters
*`count`: Items per page (default: 20)
*`page`: page number
*`since_id`: minimum id
*`max_id`: maximum id
*`getText`: Defines the format of the status field. Can be "html" or "plain"
*`friendica_verbose`: "true" enables different error returns (default: "false")
### GET api/direct_messages/conversation
Returns all replies of a single private message conversation. Returns [Private Messages](help/API-Entities#Private+message)
#### Parameters
*`count`: Items per page (default: 20)
*`page`: page number
*`since_id`: minimum id
*`max_id`: maximum id
*`getText`: Defines the format of the status field. Can be "html" or "plain"
*`uri`: URI of the conversation
*`friendica_verbose`: "true" enables different error returns (default: "false")
### GET api/direct_messages/sent
Deprecated Twitter sent direct message list endpoint. Returns [Private Messages](help/API-Entities#Private+message).
#### Parameters
*`count`: Items per page (default: 20)
*`page`: page number
*`since_id`: minimum id
*`max_id`: maximum id
*`getText`: Defines the format of the status field. Can be "html" or "plain"
*`include_entities`: "true" shows entities for pictures and links (Default: false)
*`friendica_verbose`: "true" enables different error returns (default: "false")
### POST/PUT api/direct_messages/new
Deprecated Twitter direct message submission endpoint.
#### Parameters
*`user_id`: id of the user
*`screen_name`: screen name (for technical reasons, this value is not unique!)
*`text`: The message
*`replyto`: ID of the replied direct message
*`title`: Title of the direct message
### POST/DELETE api/direct_messages/destroy
Deprecated Twitter direct message deletion endpoint.
#### Parameters
*`id`: id of the message to be deleted
*`include_entities`: optional, currently not yet implemented
*`friendica_parenturi`: optional, can be used for increased safety to delete only intended messages
*`friendica_verbose`: "true" enables different error returns (default: "false")
#### Return values
On success:
* JSON return as defined for Twitter API not yet implemented
* on friendica_verbose=true: JSON return {"result":"ok","message":"message deleted"}
On error:
HTTP 400 BadRequest
* on friendica_verbose=true: different JSON returns {"result":"error","message":"xyz"}
### GET api/friendica/direct_messages_setseen
#### Parameters
*`id`: id of the message to be updated as seen
#### Return values
On success:
* JSON return `{"result": "ok", "message": "message set to seen"}`
On error:
* different JSON returns `{"result": "error", "message": "xyz"}`
### GET api/friendica/direct_messages_search (GET; AUTH)
Returns [Private Messages](help/API-Entities#Private+message) matching the provided search string.
#### Parameters
*`searchstring`: string for which the API call should search as '%searchstring%' in field 'body' of all messages of the authenticated user (caption ignored)
*`getText` (optional): `plain`|`html` If ommited, the title is prepended to the plaintext body in the `text` attribute of the private message objects.
*`getUserObjects` (optional): `true`|`false` If `false`, the `sender` and `recipient` attributes of the private message object are absent.
#### Return values
Returns only tested with JSON, XML might work as well.
On success:
* JSON return `{"success":"true", "search_results": array of found messages}`
Alias of [`api/friendica/photo/update`](#POST+api%2Ffriendica%2Fphoto%2Fupdate)
### POST api/friendica/photo/update
Saves data for the scales 0-2 to database (see above for scale description).
Call adds non-public entries to items table to enable authenticated contacts to comment/like the photo.
Client should pay attention to the fact that updated access rights are not transferred to the contacts. i.e. public photos remain publicly visible if they have been commented/liked before setting visibility back to a limited group.
Currently it is best to inform user that updating rights is not the right way to do this, and offer a solution to add photo as a new photo with the new rights instead.
#### Parameters
*`photo_id` (optional): if specified the photo with this id will be updated
*`media` (optional): image data as base64, only optional if photo_id is specified (new upload must have media)
*`desc` (optional): description for the photo, updated when photo_id is specified
*`album`: name of the album to be deleted (always necessary)
*`album_new` (optional): can be used to change the album of a single photo if photo_id is specified