1

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.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
Mehul Dudhat
  • 421
  • 1
  • 7
  • 19
  • How was the contact you are looking for added? – Linda Lawton - DaImTo Nov 07 '14 at 07:27
  • thanks for correcting..Now i got the solutions first i call https://www.google.com/m8/feeds/groups/default/full api after getting group id i passed that id to https://www.google.com/m8/feeds/contact/default/full?group=<> – Mehul Dudhat Nov 07 '14 at 09:30
  • Could you explain more your solution ? I'm not finding the Group ID with the first API call. – Zooly Apr 11 '17 at 15:35

1 Answers1

1

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.

Eric Koleda
  • 12,420
  • 1
  • 33
  • 51
  • for getting group_id i need to to call one more api https://www.google.com/m8/feeds/group/default/full, is there any way to direct get only my contacts – Mehul Dudhat Nov 10 '14 at 06:18