Profile object

This page describes the profile object, which represents a business’s social media or third-party platform profile. Profiles are derived from websites or matched from web presence analysis. Possible profile types include Google Places, Facebook Pages, LinkedIn Profiles, Instagram Pages, and Yelp Pages.

Retrieve profiles for a business

You can retrieve the profiles associated with a business using the Retrieve a business endpoint. Profiles are included in the business response.

$curl https://api.middesk.com/v1/businesses/{business_id} \
> -u {API_KEY}:
Example Google profile
1{
2 "object": "profile",
3 "type": "google",
4 "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
5 "external_id": "10000000000000000001",
6 "url": "https://maps.google.com/?cid=10000000000000000001",
7 "metadata": {
8 "full_address": "123 Main St Suite 100, San Francisco, CA 94105",
9 "name": "Acme Manufacturing",
10 "website_urls": ["https://www.acmemanufacturing.com/"],
11 "latitude": 37.78827,
12 "longitude": -122.39997,
13 "phone_number": "(415) 555-0100",
14 "categories": ["Machine shop"],
15 "reviews": [
16 {
17 "rating": 5,
18 "posted_at": "2024-03-15T14:30:00.000Z"
19 }
20 ]
21 },
22 "rating": 5,
23 "rating_count": 1
24}
Example Facebook profile
1{
2 "object": "profile",
3 "type": "facebook",
4 "id": "b2c3d4e5-6789-01ab-cdef-2345678901ab",
5 "external_id": null,
6 "url": "https://facebook.com/acme-manufacturing",
7 "metadata": {
8 "city": "San Francisco",
9 "state": "CA",
10 "name": "Acme Manufacturing",
11 "recent_posts": [],
12 "recent_reviews": []
13 },
14 "rating": null,
15 "rating_count": null
16}

Profile attributes

AttributeTypeDescription
objectstringThe object type. Always profile.
idstring (uuid)The unique identifier for the profile record.
typestringType of profile. Valid values are facebook, google, instagram, yelp, and linkedin.
external_idstring | nullThird-party identifier for the profile.
urlstringCanonical URL for the profile.
statusstringStatus of the profile. Valid values are online, offline, and unknown.
submittedbooleanIndicates whether the profile was submitted by the user (true) or discovered by Middesk (false).
errorstring | nullError message if there were issues fetching or processing the profile.
metadataobjectAdditional metadata sourced from the profile. See Metadata structure for details.
ratingnumber | nullAggregate rating from the profile platform.
rating_countnumber | nullTotal number of ratings on the profile.

Profile status values

StatusDescription
onlineThe profile is accessible and responding normally.
offlineThe profile could not be reached or is not responding.
unknownThe profile status could not be determined.

Metadata structure

The metadata object contains profile-specific information that varies by profile type. Below are the common fields you may encounter:

Google Places metadata

AttributeTypeDescription
namestringBusiness name.
full_addressstringFull formatted address.
phone_numberstringPhone number.
website_urlsstring[]Website URLs associated with the business.
latitudenumberGeographic latitude.
longitudenumberGeographic longitude.
categoriesstring[]Array of business categories.
reviewsobject[]Array of review objects with rating and posted_at.

Facebook metadata

AttributeTypeDescription
namestringPage name.
citystringCity from the page’s location.
statestringState from the page’s location.
recent_postsobject[]Array of recent post objects.
recent_reviewsobject[]Array of recent review objects.

Yelp metadata

AttributeTypeDescription
namestringBusiness name.
price_rangestringPrice level indicator.
is_closedbooleanWhether the business is closed.
is_claimedbooleanWhether the business owner has claimed the listing.
reviewsobject[]Array of review objects.

LinkedIn and Instagram metadata

Metadata structure varies based on the profile type and available information.

Get a demo
Contact your account manager or contact sales to inquire about access.