Social Contact Expand
/api/v2/social_contact_expand
operationId: social_contact_expand
Live: https://gdapi.globaldata.net.au/api/v2/social_contact_expand · Sandbox: https://sandbox-gdapi.globaldata.net.au/api/v2/social_contact_expand
The social_contact_expand method takes a batch of contact identifiers (phone numbers, email
addresses, or social media profile URLs) and, for each one, surfaces additional contact phones
and emails associated with that person.
For each input the endpoint runs two stages:
social_search- a social media check is performed against the supplied identifier. Any phones or emails returned by the social check are included in this block.universe_search- one universe lookup is performed for each phone or email known for the contact: the original input itself (when it is a phone or email), plus any phones or emails returned by the social check. Each lookup that finds related persons in our universe database produces its ownuniverse_searchblock listing the additional phones and emails discovered for those persons.
Result blocks - "no match" means the block is omitted
Each lookup is treated independently and only blocks that actually returned phones or emails
appear in the response. There is no fixed number or order guarantee for the blocks - the
caller should iterate over records and inspect each block's type. Specifically:
- If the social check found nothing but a universe lookup did, only the matching
universe_searchblock(s) are returned (nosocial_searchblock). - If the social check found phones or emails but none of the universe lookups (including the
one for the original input, if applicable) found anything, only the
social_searchblock is returned (nouniverse_searchblocks). - If both stages produced data, the response contains the
social_searchblock and oneuniverse_searchblock per universe lookup that found data. - If nothing matched anywhere,
recordsis an empty array andmessageisNo match.
The per-item message field summarises this overall outcome (Ok if any block has data,
No match otherwise). Suppressed phones and emails are excluded from results.
Supported inputs
Each request item's search value is auto-detected as one of the following:
- Email address - any RFC-compliant email address.
- Phone number - in either E.164 format (e.g.
+61412345678) or Australian local 0NSN format (e.g.0412345678). - Social media profile URL - same supported networks and URL formats as the Social Check endpoint. Profile URLs cannot be searched in the universe database, so a profile-only input will only yield universe matches when the social check returns associated phones or emails.
Invalid inputs (e.g. malformed values) return a per-item Error: Invalid search value message
in the response and are not billed.
Sandbox environment data
The sandbox uses the same simulated dataset as the Social Check endpoint. Universe searches in the sandbox run against the sample Pango database.
Request body
Content type application/json.
Batch of search records to expand.
| Field | Description |
|---|---|
requestsrequired |
array of objects [1..50 items] An array of search records to expand. Maximum 50 records per call. |
requests[]. |
string [max 50 characters] An optional caller-provided identifier for this search. When provided, it is echoed back in the corresponding result item so the caller can match results to inputs. Maximum 50 characters. |
requests[].required |
string [max 200 characters] The contact identifier to expand. May be an email address, a phone number (E.164 or 0NSN format), or a social media profile URL. Maximum 200 characters. |
Responses
Result of the contact expansion.
application/json
| Field | Description |
|---|---|
message |
string A message indicating the result of the request. Will be |
api_reference |
string (uuid) |
results |
array of objects Per-input result items, returned in the same order as the request. |
results[]. |
string or null The caller-provided |
results[]. |
string The original |
results[]. |
string The per-input result.
|
results[]. |
array of objects The discovered records for this input. Each item is either a
|
results[]. |
string The type of search this block represents.
|
results[]. |
string The phone, email or profile URL this block was searched for.
For |
results[]. |
array of strings Email addresses discovered for this search. Lowercased. The original input email (if any) and the universe key being searched are excluded. |
results[]. |
array of strings Phone numbers discovered for this search, in E.164 format. The original input phone (if any) and the universe key being searched are excluded. |