Is there any way to get only "My Contact" from my gmail account using api?

633 Views Asked by At

I made the following call to the Contacts API

https://www.google.com/m8/feeds/contacts/default/full?alt=json&access_token=<<access_token>>&max-results=5000&v=3.0

It return a list of all my contact gmail contacts. I want only the Contact that I added into book.

Thanks in advance.

1

There are 1 best solutions below

1
On

The contacts that you add to your address book manually go into the "My Contacts" group. This group is marked with <gContact:systemGroup id="Contacts"/> in the contact groups feed. You can retrieve the contacts within a group by adding the query parameter group={group id} to your contacts feed query, where {group id} is the ID of the group.