Pulling Gmail's 'Other Contacts' group via the Google Contacts API

600 views
Skip to first unread message

Alexey Komissarouk

unread,
Jul 8, 2011, 1:07:57 AM7/8/11
to google-co...@googlegroups.com
Greetings,

I asked on StackOverflow, but here might be more appropriate.  From the original post:

I'm trying to pull my Gmail contacts, so I can auto-complete on the 3,000 or so contacts I have within Gmail. Using the Google Contacts Data API, I'm able to get a list of (1) default contacts and (2) groups.

However, (1) the default contacts (http://www.google.com/m8/feeds/contacts/default/full) only pulls contacts in my 'My Contacts' group, and (2) when I look for my groups (through the interactive samples Google provides), 'Other Contacts' is not an available group to pull from.

This leads to a pretty terrible auto-complete experience: I've got about 100 'My Contacts' members, compared to 3,000 contacts in 'Other Contacts'; I can only imagine that other Gmail users are in roughly the same boat.

I've looked around the interwebs, but haven't found much:

So far, my backup is just asking for username/password and scraping (or using IMAP). Is there a better way out there?

Alain Vongsouvanh

unread,
Jul 8, 2011, 2:11:10 PM7/8/11
to google-co...@googlegroups.com
Hello Alexey,

Using the default feed (https://www.google.com/m8/feeds/contacts/default/full) will return all of a user's contacts, including contacts in the "Other Contacts" group.
Contacts being in this particular group have no "gd:groupMembershipInfo" fields set.

How are you pulling the data? Did you make sure to follow the "next" link returned by the API? By default, the API only returns 25 contacts per page which can be modified using the "max-results" query parameter (though we don't advise using number greater than 100-200).

Best,
Alain

--
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
google-co...@googlegroups.com
To unsubscribe from this group, send email to
google-contacts...@googlegroups.com
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html



--
Alain Vongsouvanh



Reply all
Reply to author
Forward
0 new messages