1 # Friendica API entities
4 * [Using the APIs](help/api)
9 <table class="table table-condensed table-striped table-bordered">
14 <th align="center">Nullable</th>
20 <td><code>like</code></td>
21 <td>List of <a href="help/API-Entities#Contact">Contacts</a></td>
22 <td align="center">No</td>
26 <td><code>dislike</code></td>
27 <td>List of <a href="help/API-Entities#Contact">Contacts</a></td>
28 <td align="center">No</td>
32 <td><code>attendyes</code></td>
33 <td>List of <a href="help/API-Entities#Contact">Contacts</a></td>
34 <td align="center">No</td>
38 <td><code>attendno</code></td>
39 <td>List of <a href="help/API-Entities#Contact">Contacts</a></td>
40 <td align="center">No</td>
44 <td><code>attendmaybe</code></td>
45 <td>List of <a href="help/API-Entities#Contact">Contacts</a></td>
46 <td align="center">No</td>
54 <table class="table table-condensed table-striped table-bordered">
59 <th align="center">Nullable</th>
65 <td><code>url</code></td>
67 <td align="center">No</td>
71 <td><code>mimetype</code></td>
73 <td align="center">No</td>
77 <td><code>size</code></td>
78 <td>Integer (bytes)</td>
79 <td align="center">No</td>
87 <table class="table table-condensed table-striped table-bordered">
92 <th align="center">Nullable</th>
98 <td><code>id</code></td>
100 <td align="center">No</td>
104 <td><code>id_str</code></td>
106 <td align="center">No</td>
110 <td><code>name</code></td>
112 <td align="center">No</td>
116 <td><code>screen_name</code></td>
118 <td align="center">No</td>
122 <td><code>location</code></td>
124 <td align="center">No</td>
128 <td><code>description</code></td>
130 <td align="center">No</td>
134 <td><code>profile_image_url</code></td>
135 <td>String (URL)</td>
136 <td align="center">No</td>
140 <td><code>profile_image_url_https</code></td>
141 <td>String (URL)</td>
142 <td align="center">No</td>
146 <td><code>profile_image_url_profile_size</code></td>
147 <td>String (URL)</td>
148 <td align="center">No</td>
152 <td><code>profile_image_url_large</code></td>
153 <td>String (URL)</td>
154 <td align="center">No</td>
158 <td><code>url</code></td>
159 <td>String (URL)</td>
160 <td align="center">No</td>
164 <td><code>protected</code></td>
166 <td align="center">No</td>
170 <td><code>followers_count</code></td>
172 <td align="center">No</td>
176 <td><code>friends_count</code></td>
178 <td align="center">No</td>
182 <td><code>listed_count</code></td>
184 <td align="center">No</td>
188 <td><code>favourites_count</code></td>
190 <td align="center">No</td>
194 <td><code>statuses_count</code></td>
196 <td align="center">No</td>
200 <td><code>created_at</code></td>
201 <td>String (Date)<br/>
202 Ex: Wed May 23 06:01:13 +0000 2007
204 <td align="center">No</td>
208 <td><code>utc_offset</code></td>
210 <td align="center">No</td>
214 <td><code>time_zone</code></td>
216 <td align="center">No</td>
220 <td><code>geo_enabled</code></td>
222 <td align="center">No</td>
226 <td><code>verified</code></td>
228 <td align="center">No</td>
232 <td><code>lang</code></td>
234 <td align="center">No</td>
238 <td><code>contributors_enabled</code></td>
240 <td align="center">No</td>
244 <td><code>is_translator</code></td>
246 <td align="center">No</td>
250 <td><code>is_translation_enabled</code></td>
252 <td align="center">No</td>
256 <td><code>following</code></td>
258 <td align="center">No</td>
262 <td><code>follow_request_sent</code></td>
264 <td align="center">No</td>
268 <td><code>statusnet_blocking</code></td>
270 <td align="center">No</td>
274 <td><code>notifications</code></td>
276 <td align="center">No</td>
280 <td><code>statusnet_profile_url</code></td>
281 <td>String (URL)</td>
282 <td align="center">No</td>
286 <td><code>uid</code></td>
288 <td align="center">No</td>
292 <td><code>cid</code></td>
294 <td align="center">No</td>
298 <td><code>pid</code></td>
300 <td align="center">No</td>
304 <td><code>self</code></td>
306 <td align="center">No</td>
310 <td><code>network</code></td>
312 <td align="center">No</td>
321 <table class="table table-condensed table-striped table-bordered">
326 <th align="center">Nullable</th>
332 <td><code>hashtags</code></td>
333 <td>List of <a href="help/API-Entities#Hashtag">Hashtags</a></td>
334 <td align="center">No</td>
338 <td><code>symbols</code></td>
339 <td>List of <a href="help/API-Entities#Symbol">Symbols</a></td>
340 <td align="center">No</td>
344 <td><code>urls</code></td>
345 <td>List of <a href="help/API-Entities#URL">URLs</a></td>
346 <td align="center">No</td>
350 <td><code>user_mentions</code></td>
351 <td>List of <a href="help/API-Entities#User+Mention">User mentions</a></td>
352 <td align="center">No</td>
356 <td><code>media</code></td>
357 <td>List of <a href="help/API-Entities#Media">Medias</a></td>
358 <td align="center">No</td>
366 <table class="table table-condensed table-striped table-bordered">
377 <td><code>id</code></td>
383 <td><code>uid</code></td>
385 <td>Owner User Id</td>
389 <td><code>cid</code></td>
391 <td>Target Contact Id</td>
395 <td><code>uri</code></td>
397 <td>Item unique URI string</td>
401 <td><code>name</code></td>
402 <td>String (Plaintext)</td>
407 <td><code>desc</code></td>
408 <td>String (HTML)</td>
413 <td><code>start_time</code></td>
414 <td>String (UTC <code>YYYY-MM-DD HH:II:SS)</code>)</td>
419 <td><code>end_time</code></td>
420 <td>String (UTC <code>YYYY-MM-DD HH:II:SS)</code>)</td>
421 <td>Optional (null date is <code>0001-01-01 00:00:00</code></td>
425 <td><code>type</code></td>
426 <td>String (<code>event</code> or <code>birthday</code>)</td>
431 <td><code>nofinish</code></td>
433 <td>Ongoing event</td>
437 <td><code>place</code></td>
439 <td>Optional. Location.</td>
443 <td><code>ignore</code></td>
449 <td><code>allow_cid</code></td>
450 <td>String (angle-brackets escaped integers)</td>
451 <td>Optional. List of allowed contact ids</td>
455 <td><code>allow_gid</code></td>
456 <td>String (angle-brackets escaped integers)</td>
457 <td>Optional. List of allowed group ids</td>
461 <td><code>deny_cid</code></td>
462 <td>String (angle-brackets escaped integers)</td>
463 <td>Optional. List of disallowed contact ids</td>
467 <td><code>deny_gid</code></td>
468 <td>String (angle-brackets escaped integers)</td>
469 <td>Optional. List of disallowed group ids</td>
481 <table class="table table-condensed table-striped table-bordered">
486 <th align="center">Nullable</th>
492 <td><code>text</code></td>
493 <td>String (Plaintext)</td>
494 <td align="center">No</td>
498 <td><code>truncated</code></td>
500 <td align="center">No</td>
504 <td><code>created_at</code></td>
505 <td>String (Date)<br/>
506 Ex: Wed May 23 06:01:13 +0000 2007
508 <td align="center">No</td>
512 <td><code>in_reply_to_status_id</code></td>
514 <td align="center">No</td>
518 <td><code>in_reply_to_status_id_str</code></td>
520 <td align="center">No</td>
524 <td><code>source</code></td>
526 <td align="center">No</td>
530 <td><code>id</code></td>
532 <td align="center">No</td>
536 <td><code>id_str</code></td>
538 <td align="center">No</td>
542 <td><code>in_reply_to_user_id</code></td>
544 <td align="center">No</td>
548 <td><code>in_reply_to_user_id_str</code></td>
550 <td align="center">No</td>
554 <td><code>in_reply_to_screen_name</code></td>
556 <td align="center">No</td>
560 <td><code>geo</code></td>
562 <td align="center">Yes</td>
566 <td><code>favorited</code></td>
568 <td align="center">No</td>
572 <td><code>user</code></td>
573 <td><a href="help/API-Entities#Contact">Contact</a></td>
574 <td align="center">No</td>
578 <td><code>friendica_author</code></td>
579 <td><a href="help/API-Entities#Contact">Contact</a></td>
580 <td align="center">No</td>
584 <td><code>friendica_owner</code></td>
587 <a href="help/API-Entities#Contact">Contact</a></td>
588 <td align="center">No</td>
592 <td><code>friendica_private</code></td>
594 <td align="center">No</td>
598 <td><code>statusnet_html</code></td>
599 <td>String (HTML)</td>
600 <td align="center">No</td>
604 <td><code>statusnet_conversation_id</code></td>
606 <td align="center">No</td>
610 <td><code>external_url</code></td>
611 <td>String (URL)</td>
612 <td align="center">No</td>
616 <td><code>friendica_activities</code></td>
617 <td><a href="help/API-Entities#Activities">Activities</a></td>
618 <td align="center">No</td>
622 <td><code>friendica_title</code></td>
623 <td>String (Plaintext)</td>
624 <td align="center">No</td>
628 <td><code>friendica_html</code></td>
629 <td>String (HTML)</td>
630 <td align="center">No</td>
634 <td><code>attachments</code></td>
635 <td>List of <a href="help/API-Entities#Attachment">Attachments</a></td>
636 <td align="center">Yes</td>
640 <td><code>entities</code></td>
641 <td><a href="help/API-Entities#Entities">Entities</a></td>
642 <td align="center">Yes</td>
650 Identical to [the Twitter Media Object](https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/entities-object#media).
652 <table class="table table-condensed table-striped table-bordered">
657 <th align="center">Nullable</th>
663 <td><code>id</code></td>
665 <td align="center">No</td>
669 <td><code>id_str</code></td>
671 <td align="center">No</td>
675 <td><code>indices</code></td>
676 <td>List of Integer</td>
677 <td align="center">No</td>
681 <td><code>media_url</code></td>
682 <td>String (URL)</td>
683 <td align="center">No</td>
687 <td><code>media_url_https</code></td>
688 <td>String (URL)</td>
689 <td align="center">No</td>
693 <td><code>url</code></td>
694 <td>String (URL)</td>
695 <td align="center">No</td>
699 <td><code>display_url</code></td>
700 <td>String (URL)</td>
701 <td align="center">No</td>
705 <td><code>expanded_url</code></td>
706 <td>String (URL)</td>
707 <td align="center">No</td>
711 <td><code>ext_alt_text</code></td>
713 <td align="center">No</td>
717 <td><code>type</code></td>
719 <td align="center">No</td>
723 <td><code>sizes</code></td>
724 <td><a href="help/API-Entities#Sizes">Sizes</a></td>
725 <td align="center">No</td>
733 <table class="table table-condensed table-striped table-bordered">
744 <td><code>id</code></td>
750 <td><code>hash</code></td>
756 <td><code>type</code></td>
759 <li>1: Inbound follow request</li>
760 <li>2: Outbound follow request confirmation</li>
761 <li>4: Wall-to-wall post</li>
763 <li>16: Private message</li>
764 <li>32: Friend suggestion</li>
766 <li>128: Mention</li>
767 <li>256: Tag added to a post</li>
768 <li>512: Poke (Obsolete)</li>
769 <li>1024: New post</li>
770 <li>16384: System email</li>
771 <li>32768: System event</li>
776 <td><code>name</code></td>
778 <td>Full name of the contact subject</td>
782 <td><code>url</code></td>
783 <td>String (URL)</td>
784 <td>Profile page URL of the contact subject</td>
788 <td><code>photo</code></td>
789 <td>String (URL)</td>
790 <td>Profile photo URL of the contact subject</td>
794 <td><code>date</code></td>
795 <td>String (Date)</td>
796 <td><code>YYYY-MM-DD hh:mm:ss</code> local server time</td>
800 <td><code>msg</code></td>
801 <td>String (BBCode)</td>
806 <td><code>uid</code></td>
808 <td>Owner User Id</td>
812 <td><code>link</code></td>
813 <td>String (URL)</td>
814 <td>Notification URL</td>
818 <td><code>iid</code></td>
824 <td><code>parent</code></td>
826 <td>Parent Item Id</td>
830 <td><code>seen</code></td>
831 <td>Integer (Boolean)</td>
832 <td>Whether the notification was read or not.</td>
836 <td><code>verb</code></td>
837 <td>String (URL)</td>
838 <td>[Activity Streams](http://activitystrea.ms) Verb URL</td>
842 <td><code>seen</code></td>
843 <td>Integer (Boolean)</td>
844 <td>Whether the notification was read or not.</td>
848 <td><code>otype</code></td>
850 <td>Subject type (`item`, `intro` or `mail`)</td>
854 <td><code>name_cache</code></td>
855 <td>String (HTML)</td>
856 <td>Full name of the contact subject</td>
860 <td><code>msg_cache</code></td>
861 <td>String (Plaintext)</td>
862 <td>Plaintext version of the notification text with a placeholder (`{0}`) for the subject contact's name.</td>
866 <td><code>timestamp</code></td>
868 <td>Unix timestamp</td>
872 <td><code>date_rel</code></td>
874 <td>Time since the note was posted, eg "1 hour ago"</td>
879 <td><code>msg_html</code></td>
880 <td>String (HTML)</td>
885 <td><code>msg_plain</code></td>
886 <td>String (Plaintext)</td>
895 <table class="table table-condensed table-striped table-bordered">
906 <td><code>id</code></td>
908 <td>Resource ID (32 hex chars)</td>
912 <td><code>created</code></td>
913 <td>String (Date)</td>
914 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
918 <td><code>edited</code></td>
919 <td>String (Date)</td>
920 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
924 <td><code>title</code></td>
930 <td><code>desc</code></td>
931 <td>String (Plaintext)</td>
932 <td>Picture caption</td>
936 <td><code>album</code></td>
942 <td><code>filename</code></td>
944 <td>Original image filename</td>
948 <td><code>type</code></td>
954 <td><code>height</code></td>
956 <td>Image height in pixels</td>
960 <td><code>width</code></td>
962 <td>Image width in pixels</td>
966 <td><code>profile</code></td>
968 <td>1 if it is a profile photo</td>
972 <td><code>allow_cid</code></td>
973 <td>String (ACL)</td>
974 <td>List of contact ids wrapped in angle brackets allowed to access the photo.</td>
978 <td><code>allow_gid</code></td>
979 <td>String (ACL)</td>
980 <td>List of contact group ids wrapped in angle brackets allowed to access the photo.</td>
984 <td><code>deny_cid</code></td>
985 <td>String (ACL)</td>
986 <td>List of contact ids wrapped in angle brackets forbidden to access the photo.</td>
990 <td><code>deny_gid</code></td>
991 <td>String (ACL)</td>
992 <td>List of contact group ids wrapped in angle brackets forbidden to access the photo.</td>
996 <td><code>link</code></td>
997 <td>Array of Strings (URL)</td>
999 URLs to the different scales indexed by scale number if no specific scale was requested.
1000 Mutually exclusive with <code>data</code> <code>datasize</code>.
1005 <td><code>datasize</code></td>
1008 Picture size in bytes if a single scale was requested.
1009 Mutually exclusive with <code>link</code>.
1014 <td><code>data</code></td>
1017 Base64-encoded image data if a single scale was requested.
1018 Mutually exclusive with <code>link</code>.
1023 <td><code>friendica_activities</code></td>
1024 <td><a href="help/API-Entities#Activities">Activities</a></td>
1029 <td><code>friendica_comments</code></td>
1030 <td>List of <a href="help/API-Entities#Item">Items</a></td>
1035 <td><code>rights_mismatch</code></td>
1037 <td>True if the ACL differs between the picture and the associated item.</td>
1045 <table class="table table-condensed table-striped table-bordered">
1050 <th>Description</th>
1056 <td><code>id</code></td>
1058 <td>Resource ID (32 hex chars)</td>
1062 <td><code>album</code></td>
1068 <td><code>filename</code></td>
1070 <td>Original image filename</td>
1074 <td><code>type</code></td>
1080 <td><code>created</code></td>
1081 <td>String (Date)</td>
1082 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
1086 <td><code>edited</code></td>
1087 <td>String (Date)</td>
1088 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
1092 <td><code>desc</code></td>
1093 <td>String (Plaintext)</td>
1094 <td>Picture caption</td>
1098 <td><code>thumb</code></td>
1099 <td>String (URL)</td>
1100 <td>URL of the smallest scale version of the picture.</td>
1108 <table class="table table-condensed table-striped table-bordered">
1113 <th>Description</th>
1119 <td><code>id</code></td>
1125 <td><code>sender_id</code></td>
1127 <td>Sender Contact Id</td>
1131 <td><code>text</code></td>
1133 <td>Can be HTML or plaintext depending on the API call parameter `getText`.</td>
1137 <td><code>recipient_id</code></td>
1139 <td>Recipient Contact Id</td>
1143 <td><code>created_at</code></td>
1144 <td>String (Date)</td>
1145 <td>Ex: Wed May 23 06:01:13 +0000 2007</td>
1149 <td><code>sender_screen_name</code></td>
1155 <td><code>recipient_screen_name</code></td>
1161 <td><code>sender</code></td>
1162 <td><a href="help/API-Entities#Contact">Contact</a></td>
1167 <td><code>recipient</code></td>
1168 <td><a href="help/API-Entities#Contact">Contact</a></td>
1173 <td><code>title</code></td>
1175 <td>Empty if the API call parameter `getText` is empty or absent.</td>
1179 <td><code>friendica_seen</code></td>
1180 <td>Integer (Boolean)</td>
1181 <td>Whether the private message has been read or not.</td>
1185 <td><code>friendica_parent_uri</code></td>
1195 <table class="table table-condensed table-striped table-bordered">
1200 <th>Description</th>
1206 <td><code>profile_id</code></td>
1212 <td><code>profile_name</code></td>
1218 <td><code>is_default</code></td>
1224 <td><code>hide_friends</code></td>
1226 <td>Whether the user chose to hide their contact list on their profile.</td>
1230 <td><code>profile_photo</code></td>
1231 <td>String (URL)</td>
1232 <td>Largest size profile picture URL.</td>
1236 <td><code>profile_thumb</code></td>
1237 <td>String (URL)</td>
1238 <td>Smallest size profile picture URL.</td>
1242 <td><code>publish</code></td>
1244 <td>Whether the user chose to publish their profile in the local directory.</td>
1248 <td><code>net_publish</code></td>
1250 <td>Whether the user chose to publish their profile in the global directory.</td>
1254 <td><code>description</code></td>
1260 <td><code>date_of_birth</code></td>
1266 <td><code>address</code></td>
1272 <td><code>city</code></td>
1278 <td><code>region</code></td>
1284 <td><code>postal_code</code></td>
1290 <td><code>country</code></td>
1296 <td><code>public_keywords</code></td>
1298 <td>Comma-separated list of words meant to be displayed as hashtags.</td>
1302 <td><code>private_keywords</code></td>
1304 <td>Comma-separated list of words meant to be used for search only.</td>
1308 <td><code>homepage</code></td>
1309 <td>String (URL)</td>
1318 <table class="table table-condensed table-striped table-bordered">
1323 <th align="center">Nullable</th>
1327 <table class="table table-condensed table-striped table-bordered">
1332 <th align="center">Nullable</th>
1338 <td><code>w</code></td>
1340 <td align="center">No</td>
1344 <td><code>h</code></td>
1346 <td align="center">No</td>
1350 <td><code>resize</code></td>
1351 <td>Enum (fit, crop)</td>
1352 <td align="center">Yes</td>
1361 <table class="table table-condensed table-striped table-bordered">
1366 <th align="center">Nullable</th>
1372 <td><code>medium</code></td>
1373 <td><a href="help/API-Entities#Size">Size</a></td>
1374 <td align="center">No</td>
1378 <td><code>large</code></td>
1379 <td><a href="help/API-Entities#Size">Size</a></td>
1380 <td align="center">Yes</td>
1384 <td><code>thumb</code></td>
1385 <td><a href="help/API-Entities#Size">Size</a></td>
1386 <td align="center">Yes</td>
1390 <td><code>small</code></td>
1391 <td><a href="help/API-Entities#Size">Size</a></td>
1392 <td align="center">Yes</td>
1404 <table class="table table-condensed table-striped table-bordered">
1409 <th align="center">Nullable</th>
1415 <td><code>url</code></td>
1416 <td>String (URL)</td>
1417 <td align="center">No</td>
1421 <td><code>expanded_url</code></td>
1422 <td>String (URL)</td>
1423 <td align="center">No</td>
1427 <td><code>display_url</code></td>
1428 <td>String (URL)</td>
1429 <td align="center">No</td>
1433 <td><code>indices</code></td>
1434 <td>List of Integer</td>
1435 <td align="center">No</td>