Searches the contacts of the connected Google account by name, email or phone and returns their details.
curl -X POST "https://api.primaryapi.com/v1/run/google-contacts.search" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"ada","limit":5}'{
"output": {
"found": true,
"data": {
"nextCursor": null,
"contacts": [
{
"name": "Ada Example",
"resourceName": "people/c1234567890123456789",
"givenName": "Ada",
"familyName": "Example", …
}
]
}
},
"credits": 1
}Input and output
3 fields
ada.5.8 fields
Good to know
Runs as your connected Google account (read-only Contacts access).
Matches the start of names, emails and phone numbers. Up to 30 contacts per call.
The same key and credits work for every API.