Windows Live Contacts supports predefined filters and custom filters. Filters define the selection of entities or fields that you are interested in. A filter is similar to a SQL SELECT clause, in which you specify the columns that you want.
The following predefined filters are available in the Windows Live Contacts API and are added to the request URL e.g. &filter=Hotmail
Hotmail
LiveContacts(Contact(ID,CID,WindowsLiveID,AutoUpdateEnabled,
AutoUpdateStatus,Profiles,Email,Phone,Location,URI),Tag)
MessengerServer
AutoUpdateStatus,Profiles(Personal),Email,Phone),Tag)
Messenger
AutoUpdateStatus,Profiles,Email,Phone),Tag)
Phone
AutoUpdateStatus,Profiles(Personal(FirstName,LastName)),Email,Phone,
Location),Tag)
MinimalPhone
LiveContacts(Contact(ID,WindowsLiveID,Profiles(Personal(
NameToFileAs,FirstName,LastName)),Email,Phone),Tag)
MapPoint
NameToFileAs,FirstName,LastName)),Location))
If a predefined filter does not return the data that you want, you can define a custom filter to obtain the exact data that you want.
Consider the following points when you work with filters:
The following example header uses a predefined filter to extract phone contact information:
https://livecontacts.services.live.com/users/@L@<lid>/rest/livecontacts&Filter=Phone
The following example header uses a custom filter to extract specific fields:
https://livecontacts.services.live.com/users/@L@<lid>/rest/livecontacts&Filter=LiveContacts(Contact(ID,CID,WindowsLiveID,AutoUpdateEnabled,AutoUpdateStatus,Profiles,Email,Phone,Locations,URI),Tag)