API.getAccountInfos

This action allows you to recover the information about an account.

Request

The API key must have the commons access right.
Name Type Description
apikey[required] string API public key
signature[required] string Signature of the request. See how to sign your requests.
expires timestamp UNIX timestamp for request expiration.
output string Format of the response. Either XML (default), JSON or PHP.
account_id integer ID of the account you wish to recover the information from. If left blank, your account will be used.

Response

Name Type Description
ID integer Account’s ID
Name string Account’s name.
Type string Type of account (FREE, PREMIUM or PLATINUM).
City string Town/city of the account.
Country string Country of the account, using the official two-letter code format
WebsiteName string Name of the website.
WebsiteUrl string Address of the website.
PublicUrl string Public URL of the account.

Example responses

<response> <requestid>...</requestid> <requests>...</requests> <status>ok</status> <content> <ID>...</ID> <Name>...</Name> <Type>...</Type> <City>...</City> <Country>...</Country> <Description>...</Description> <WebsiteName>...</WebsiteName> <WebsiteUrl>...</WebsiteUrl> <PublicUrl>...</PublicUrl> </content> </response>
{ "response": { "requestid": ..., "requests": ..., "status": "ok", "content": { "ID": ..., "Name": ..., "Type": ..., "City": ..., "Country": ..., "Description": ..., "WebsiteName": ..., "WebsiteUrl": ..., "PublicUrl": ... } } }
[ "response" => [ "requestid" => ..., "requests" => ..., "status" => "ok", "content" => [ "ID" => ..., "Name" => ..., "Type" => ..., "City" => ..., "Country" => ..., "Description" => ..., "WebsiteName" => ..., "WebsiteUrl" => ..., "PublicUrl" => ... ] ] ]

Error codes

See the error code section.