--- title: hCard --- diaspora\* uses [hCard][hcard] to provide the profile information. ## hCard ### Request Use the URL provided in the [WebFinger][webfinger] response with rel `http://microformats.org/profile/hcard`. #### Example ~~~ GET /hcard/users/7dba7ca01d64013485eb3131731751e9 Host: example.org ~~~ ### Response The response must be a valid [hCard][hcard] html document, but there are no other requirements to the structure of the document. #### Mandatory Properties The hCard response must contain the following properties: | CSS selector | Type (Length) | Description | | ---------------------------------- | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `.uid` | [GUID][guid] | The GUID of the person. | | `.fn` | [Name][name] (70) | The full name of the person. | | `.given_name` | [Name][name] (32) | The first name of the person. | | `.family_name` | [Name][name] (32) | The last name of the person. | | `.key` | [String][string] (65535) | The public key of the person. The format is a DER-encoded PKCS\#1 key beginning with the text `-----BEGIN PUBLIC KEY-----` and ending with `-----END PUBLIC KEY-----`. | | `.entity_photo .photo[src]` | [URL][url] (255) | The URL to the big avatar (300x300) of the person. | | `.entity_photo_medium .photo[src]` | [URL][url] (255) | The URL to the medium avatar (100x100) of the person. | | `.entity_photo_small .photo[src]` | [URL][url] (255) | The URL to the small avatar (50x50) of the person. | | `.searchable` | [Boolean][boolean] | The flag if the person is searchable by name. | #### Example ~~~ Status: 200 OK Content-Type: text/html; charset=utf-8 ~~~ ~~~html Alice Smith

Alice Smith

User profile

Uid
7dba7ca01d64013485eb3131731751e9
Full_name
Alice Smith
Searchable
true
Key
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEArxic3b0VuKA+Z1uc6OP4
ha/tRGLYvoxrRjfllnp5hfKyKQfhjVA6xDvvBwamLbzZM+ZEY/4vOhLbC/S3FjVe
opkfQaMvg0uXOB7UhcuKqDM6rFHafsl0LjvBw13p/zQoUxELxK9HAnRLCAAlJ+Fk
MNMR37Rw9Z0Am13Zh4jl64Fn6qkoTHQ/NICbGgRpTmRUrc6KpOKQuQQUJpnGFrJB
g/srgPH4Xdd45VzR6vxjbnEp95F2BOmHLBdGgZAhX+NVY2vuPj2yTn6fFpbVxuUi
XXHSgszLHuH1Nssx7o+KS0jPkQp78ZkW2+fB55MESJSSbWwHuXob5ke7VziHyCFh
3up2kZ5eKPNSpgWqZ3L7HeGjhc+ZtBgJhoUO65Dm/1VOsw8I9uSBNyX7XMa13aO/
Ywn53Rv0L+LDS1yBiirwb6qSCjvvayDeaGLOFoSQ2hNIO+goi3FjrVDYJ1+63NzH
IHj7qcitKxISsPnPYCs49inl8TQC26C43YunEuq8zBDEopeeyXAsnKuX+is6mb6W
hzhzJthFLkmyBd2idgxS/tW6XR9yJ9L0VPafvdth9JUjj510g44BSfJYESRh+4uJ
OFxcL+/diwyswWkVbeaNCrrdfz8LTDQcWv8GA6olBOx7RlgVb7k3HonHaQjaI+xv
9S7fSw27PVS8csWZHwkFGukCAwEAAQ==
-----END PUBLIC KEY-----
First_name
Alice
Family_name
Smith
Photo
Photo_medium
Photo_small
~~~ ## Additional information and specifications * [hCard 1.0][hcard] [hcard]: http://microformats.org/wiki/hCard [webfinger]: {{ site.baseurl }}/discovery/webfinger.html [guid]: {{ site.baseurl }}/federation/types.html#guid [name]: {{ site.baseurl }}/federation/types.html#name [string]: {{ site.baseurl }}/federation/types.html#string [url]: {{ site.baseurl }}/federation/types.html#url [boolean]: {{ site.baseurl }}/federation/types.html#boolean