group.getMembers [HTTP GET]
Retrieve group member user information and metadata for any public group or private group that the authenticated user is a member of.
Arguments
api_key (Required)
Your API application key. If you don't have one,
create one.
token (Required)
An authentication token. (
What's this?)
group_id (Numeric, Required)
The group id requested.
membersPerPage (Numeric, Optional)
To restrict the number of members per page of results. Default is 100.
page (Numeric, Optional)
Page # to return. Starts with 1.
order (Either 'member_timestamp' or 'username', default: 'username')
Member_timestamp orders by date joined.
dir (Either 'asc' or 'desc', default: asc)
Sort direction.
Example Response
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok" version="1.0">
<user id="1634" name="Shawn Ledbetter" username="shawn" zip="95051"
url="http://www.thoughtenvelope.com" photourl="" is_admin="0"
member_timestamp="2006-01-18 16:26:42" />
<user id="28504" name="Lars K" username="solsken" zip="94114"
url="http://www.last.fm/user/solsken/"
photourl="http://myspace-298.vo.llnwd.net/00282/89/28/282358298_l.jpg"
is_admin="0" member_timestamp="2006-01-04 00:33:03" />
</rsp>
Error Codes (sent in HTTP Response Header)
403 Not Authorized:
- Missing valid authentication parameters - Please pass an authentication token to the method.
- Invalid authentication parameters - either that token was not found, or it may be deactivated. Please contact us for support.
404 Not Found:
- Missing valid api_key - Please create an API key using the above link.
- Your api_key is inactive or not found - Please contact us for support.
- Invalid group_id parameter.
- You are not a member of this private group.