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, Yelp Pages, Better Business Bureau (BBB) profiles, Trustpilot profiles, X profiles, and TikTok profiles.

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}
Example BBB profile
1{
2 "object": "profile",
3 "type": "bbb",
4 "id": "c3d4e5f6-7890-12ab-cdef-3456789012ab",
5 "external_id": null,
6 "url": "https://www.bbb.org/us/ca/san-francisco/profile/manufacturing/acme-manufacturing-1111-123456789",
7 "metadata": {
8 "external_id": "123456789",
9 "name": "Acme Manufacturing",
10 "bbb_rating": "A+",
11 "is_accredited": true,
12 "review_count": 12,
13 "average_review_rating": 4.5
14 },
15 "rating": 4.5,
16 "rating_count": 12
17}

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, linkedin, yelp, bbb, trustpilot, x, and tiktok.
external_idstring | nullThird-party identifier for the profile. Only populated for Google Places profiles; for BBB, X, and TikTok the platform identifier is in metadata.external_id instead.
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. For BBB, this is the average review star rating. For Trustpilot, this is the TrustScore. X and TikTok profiles do not have ratings and return null.
rating_countnumber | nullTotal number of ratings on the profile. For BBB and Trustpilot, this is the total review count. X and TikTok profiles return null.

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. Middesk omits fields with null values, so the fields below appear only when available.

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.

BBB metadata

AttributeTypeDescription
external_idstringBBB business identifier.
namestringBusiness name on the BBB profile.
alternate_namesstring[]Alternate business names listed on the profile.
websitestringWebsite URL listed on the profile.
profile_urlstringCanonical BBB profile URL reported by BBB. May differ from the top-level url, which is the URL Middesk discovered or the customer submitted.
bbb_ratingstringBBB letter grade (for example, A+). Omitted when the business is not rated.
rating_reasonsstring[]Reasons BBB cites for the rating.
is_accreditedbooleanWhether the business is BBB accredited.
review_countnumberTotal number of customer reviews.
average_review_ratingnumberAverage customer review star rating.
complaints_totalnumberTotal complaints filed with BBB.
complaints_closed_past_3_yearsnumberComplaints closed in the past three years.
complaints_closed_past_12_monthsnumberComplaints closed in the past 12 months.
recent_reviewsobject[]Recent customer reviews, each with display_name and preview_text.
addressobjectAddress on the profile, with address_line1, address_line2, city, state, and zip.
formatted_addressstringFull formatted address.
contact_infoobjectContact details, with phone (E.164) and emails (string[]).
business_started_atstringDate the business started.
bbb_file_opened_atstringDate BBB opened its file on the business.
categoriesstring[]Business categories listed on the profile.
primary_categorystringPrimary business category.

Trustpilot metadata

AttributeTypeDescription
namestringBusiness name on the Trustpilot profile.
domainstringTrustpilot identifying domain for the business.
trust_scorenumberTrustpilot TrustScore.
starsnumberStar rating shown on the profile.
rating_countnumberTotal number of reviews.
rating_count_last_12_monthsnumberReviews posted in the past 12 months.
negative_reviews_countnumberNumber of negative reviews.
is_claimedbooleanWhether the business has claimed the profile.
is_closedbooleanWhether the business is listed as closed or temporarily closed.
categoriesobject[]Categories, each with id, name, and primary.
websitestringWebsite URL listed on the profile.
contact_infoobjectContact details, with email, phone, address, city, zip_code, and country.
recent_reviewsobject[]Recent reviews, newest first, each with rating, title, text, posted_at, experienced_at, and reply.
first_review_atstringDate of the oldest review on the first page of reviews.

X metadata

The profile type for X profiles is x.

AttributeTypeDescription
external_idstringX account identifier.
handlestringAccount handle.
namestringDisplay name.
websitestringWebsite URL listed on the profile.
descriptionstringProfile bio.
locationstringLocation listed on the profile.
verifiedbooleanWhether the account is verified.
protectedbooleanWhether the account is protected.
followersnumberFollower count.
followingnumberNumber of accounts the profile follows.
statuses_countnumberNumber of posts.
media_countnumberNumber of media items posted.
created_atstringWhen the account was created.
avatarstringURL of the profile image.
header_imagestringURL of the header image.
recent_tweetsobject[]Recent posts, each with tweet_id, created_at, text, views, favorites, retweets, replies, and entities.

TikTok metadata

AttributeTypeDescription
external_idstringTikTok account identifier.
handlestringAccount handle.
namestringDisplay name.
websitestringWebsite URL listed on the profile.
descriptionstringProfile bio.
verifiedbooleanWhether the account is verified.
protectedbooleanWhether the account is private.
categorystringAccount category listed on the profile.
created_atstringWhen the account was created.
followersnumberFollower count.
likesnumberTotal likes across the account’s videos.
videosnumberNumber of videos posted.

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.