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>media-id</code></td>
913 <td>String (Integer) </td>
914 <td>ID used for attaching images to a Mastodon Post Status</td>
919 <td><code>created</code></td>
920 <td>String (Date)</td>
921 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
925 <td><code>edited</code></td>
926 <td>String (Date)</td>
927 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
931 <td><code>title</code></td>
937 <td><code>desc</code></td>
938 <td>String (Plaintext)</td>
939 <td>Picture caption</td>
943 <td><code>album</code></td>
949 <td><code>filename</code></td>
951 <td>Original image filename</td>
955 <td><code>type</code></td>
961 <td><code>height</code></td>
963 <td>Image height in pixels</td>
967 <td><code>width</code></td>
969 <td>Image width in pixels</td>
973 <td><code>profile</code></td>
975 <td>1 if it is a profile photo</td>
979 <td><code>allow_cid</code></td>
980 <td>String (ACL)</td>
981 <td>List of contact ids wrapped in angle brackets allowed to access the photo.</td>
985 <td><code>allow_gid</code></td>
986 <td>String (ACL)</td>
987 <td>List of contact group ids wrapped in angle brackets allowed to access the photo.</td>
991 <td><code>deny_cid</code></td>
992 <td>String (ACL)</td>
993 <td>List of contact ids wrapped in angle brackets forbidden to access the photo.</td>
997 <td><code>deny_gid</code></td>
998 <td>String (ACL)</td>
999 <td>List of contact group ids wrapped in angle brackets forbidden to access the photo.</td>
1003 <td><code>link</code></td>
1004 <td>Array of Strings (URL)</td>
1006 URLs to the different scales indexed by scale number if no specific scale was requested.
1007 Mutually exclusive with <code>data</code> <code>datasize</code>.
1012 <td><code>scales</code></td>
1013 <td>Array of Photo Scales</td>
1015 List of the various resized versions of the Photo
1020 <td><code>datasize</code></td>
1023 Picture size in bytes if a single scale was requested.
1024 Mutually exclusive with <code>link</code>.
1029 <td><code>data</code></td>
1032 Base64-encoded image data if a single scale was requested.
1033 Mutually exclusive with <code>link</code>.
1038 <td><code>friendica_activities</code></td>
1039 <td><a href="help/API-Entities#Activities">Activities</a></td>
1044 <td><code>friendica_comments</code></td>
1045 <td>List of <a href="help/API-Entities#Item">Items</a></td>
1050 <td><code>rights_mismatch</code></td>
1052 <td>True if the ACL differs between the picture and the associated item.</td>
1060 <table class="table table-condensed table-striped table-bordered">
1065 <th align="center">Nullable</th>
1071 <td><code>id</code></td>
1072 <td>String (Integer)</td>
1073 <td>Row ID of this photo scale</td>
1077 <td><code>scale</code></td>
1079 <td>Scale number</td>
1083 <td><code>link</code></td>
1084 <td>String (URL)</td>
1085 <td>URL to this scale's image</td>
1089 <td><code>height</code></td>
1091 <td>Image height in pixels</td>
1095 <td><code>width</code></td>
1097 <td>Image width in pixels</td>
1101 <td><code>size</code></td>
1103 <td>Image size in bytes</td>
1112 <table class="table table-condensed table-striped table-bordered">
1117 <th>Description</th>
1123 <td><code>id</code></td>
1125 <td>Resource ID (32 hex chars)</td>
1129 <td><code>album</code></td>
1135 <td><code>filename</code></td>
1137 <td>Original image filename</td>
1141 <td><code>type</code></td>
1147 <td><code>created</code></td>
1148 <td>String (Date)</td>
1149 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
1153 <td><code>edited</code></td>
1154 <td>String (Date)</td>
1155 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
1159 <td><code>desc</code></td>
1160 <td>String (Plaintext)</td>
1161 <td>Picture caption</td>
1165 <td><code>thumb</code></td>
1166 <td>String (URL)</td>
1167 <td>URL of the smallest scale version of the picture.</td>
1176 <table class="table table-condensed table-striped table-bordered">
1181 <th>Description</th>
1187 <td><code>name</code></td>
1189 <td>The name of the photo album</td>
1193 <td><code>created</code></td>
1194 <td>String (Date)</td>
1195 <td>The creation date of the album. Format <code>YYYY-MM-DD HH:MM:SS</code></td>
1199 <td><code>count</code></td>
1201 <td>The number of images in the album</td>
1209 <table class="table table-condensed table-striped table-bordered">
1214 <th>Description</th>
1220 <td><code>id</code></td>
1226 <td><code>sender_id</code></td>
1228 <td>Sender Contact Id</td>
1232 <td><code>text</code></td>
1234 <td>Can be HTML or plaintext depending on the API call parameter `getText`.</td>
1238 <td><code>recipient_id</code></td>
1240 <td>Recipient Contact Id</td>
1244 <td><code>created_at</code></td>
1245 <td>String (Date)</td>
1246 <td>Ex: Wed May 23 06:01:13 +0000 2007</td>
1250 <td><code>sender_screen_name</code></td>
1256 <td><code>recipient_screen_name</code></td>
1262 <td><code>sender</code></td>
1263 <td><a href="help/API-Entities#Contact">Contact</a></td>
1268 <td><code>recipient</code></td>
1269 <td><a href="help/API-Entities#Contact">Contact</a></td>
1274 <td><code>title</code></td>
1276 <td>Empty if the API call parameter `getText` is empty or absent.</td>
1280 <td><code>friendica_seen</code></td>
1281 <td>Integer (Boolean)</td>
1282 <td>Whether the private message has been read or not.</td>
1286 <td><code>friendica_parent_uri</code></td>
1296 <table class="table table-condensed table-striped table-bordered">
1301 <th>Description</th>
1307 <td><code>profile_id</code></td>
1313 <td><code>profile_name</code></td>
1319 <td><code>is_default</code></td>
1325 <td><code>hide_friends</code></td>
1327 <td>Whether the user chose to hide their contact list on their profile.</td>
1331 <td><code>profile_photo</code></td>
1332 <td>String (URL)</td>
1333 <td>Largest size profile picture URL.</td>
1337 <td><code>profile_thumb</code></td>
1338 <td>String (URL)</td>
1339 <td>Smallest size profile picture URL.</td>
1343 <td><code>publish</code></td>
1345 <td>Whether the user chose to publish their profile in the local directory.</td>
1349 <td><code>net_publish</code></td>
1351 <td>Whether the user chose to publish their profile in the global directory.</td>
1355 <td><code>description</code></td>
1361 <td><code>date_of_birth</code></td>
1367 <td><code>address</code></td>
1373 <td><code>city</code></td>
1379 <td><code>region</code></td>
1385 <td><code>postal_code</code></td>
1391 <td><code>country</code></td>
1397 <td><code>public_keywords</code></td>
1399 <td>Comma-separated list of words meant to be displayed as hashtags.</td>
1403 <td><code>private_keywords</code></td>
1405 <td>Comma-separated list of words meant to be used for search only.</td>
1409 <td><code>homepage</code></td>
1410 <td>String (URL)</td>
1419 <table class="table table-condensed table-striped table-bordered">
1424 <th align="center">Nullable</th>
1428 <table class="table table-condensed table-striped table-bordered">
1433 <th align="center">Nullable</th>
1439 <td><code>w</code></td>
1441 <td align="center">No</td>
1445 <td><code>h</code></td>
1447 <td align="center">No</td>
1451 <td><code>resize</code></td>
1452 <td>Enum (fit, crop)</td>
1453 <td align="center">Yes</td>
1462 <table class="table table-condensed table-striped table-bordered">
1467 <th align="center">Nullable</th>
1473 <td><code>medium</code></td>
1474 <td><a href="help/API-Entities#Size">Size</a></td>
1475 <td align="center">No</td>
1479 <td><code>large</code></td>
1480 <td><a href="help/API-Entities#Size">Size</a></td>
1481 <td align="center">Yes</td>
1485 <td><code>thumb</code></td>
1486 <td><a href="help/API-Entities#Size">Size</a></td>
1487 <td align="center">Yes</td>
1491 <td><code>small</code></td>
1492 <td><a href="help/API-Entities#Size">Size</a></td>
1493 <td align="center">Yes</td>
1505 <table class="table table-condensed table-striped table-bordered">
1510 <th align="center">Nullable</th>
1516 <td><code>url</code></td>
1517 <td>String (URL)</td>
1518 <td align="center">No</td>
1522 <td><code>expanded_url</code></td>
1523 <td>String (URL)</td>
1524 <td align="center">No</td>
1528 <td><code>display_url</code></td>
1529 <td>String (URL)</td>
1530 <td align="center">No</td>
1534 <td><code>indices</code></td>
1535 <td>List of Integer</td>
1536 <td align="center">No</td>