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 JSON response
1[
2 {
3 "object": "profile",
4 "id": "efbae2ce-bbe9-416b-bee4-e17f2547dbc0",
5 "type": "facebook",
6 "external_id": "asocialprofile",
7 "url": "https://www.facebook.com/asocialprofile",
8 "status": "online",
9 "submitted": false,
10 "error": null,
11 "metadata": {
12 "name": "Example Business",
13 "rating": 4.5,
14 "rating_count": 120,
15 "followers": 5000
16 }
17 }
18]

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_idstringThird-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.

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.
formatted_addressstringFull address.
formatted_phone_numberstringPhone number.
websitestringWebsite URL.
geometry.locationobjectGeographic coordinates with lat and lng properties.
typesarrayArray of business categories.
price_rangestringPrice level indicator.
ratingnumberAverage rating.
user_ratings_totalnumberTotal number of ratings.
reviewsarrayArray of review objects with author_name, author_url, rating, text, and time.
engagement_metricsobjectEngagement statistics (if available).

Facebook metadata

AttributeTypeDescription
namestringPage name.
locationobjectObject with city, state, latitude, and longitude properties.
category_listarrayArray of page categories.
ratingnumberAverage rating.
rating_countnumberNumber of ratings.
followersnumberFollower count.
likesnumberPage likes.
were_herenumberCheck-in count.
postsarrayArray of recent post objects.
reviewsarrayArray of review objects.
engagement_metricsobjectEngagement statistics (if available).

Yelp metadata

AttributeTypeDescription
namestringBusiness name.
price_rangestringPrice level indicator.
is_closedbooleanWhether the business is closed.
is_claimedbooleanWhether the business owner has claimed the listing.
ratingnumberAverage rating.
rating_countnumberNumber of reviews.
reviewsarrayArray of review objects.
engagement_metricsobjectEngagement statistics (if available).

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.