avatar_info
Returns detailed information about a specific avatar.
// See "LSL Helper Functions" page for this function
smartbotsAPI("avatar_info", [
"avatar", "cd93067e-7c4e-41c0-ba91-be01f4bafe35"
]);Variables
The following table shows input values (you send them with the API call) and returned output values.
Input basic parameters
Variable | Required | Description |
|---|---|---|
action | yes | = avatar_info |
apikey | yes | Your personal developer's API key |
botname | yes | Your bot’s SL login |
secret | yes | Bot access code of your bot |
dataType | optional | Set to |
custom | optional | The custom data (string) to be passed back to the caller script. This value will be returned in the HTTP response |
Input
Variable | Required | Description |
|---|---|---|
avatar | yes | The UUID of the avatar to fetch information for |
Output
(To be received in http_response LSL event, see docs for details)
Variable | Description |
|---|---|
result | OK - command completed successfully |
resulttext | Detailed reason for the failure |
custom | The value from input |
about | Profile “About” text |
born | Avatar’s Second Life birthday (MM/DD/YYYY) |
identified |
|
image | UUID of the profile image |
first_life_image | UUID of the “First Life” image |
first_life_text | “First Life” profile text |
mature |
|
online |
|
partner | UUID of the avatar’s partner (zero UUID if none) |
publish_web |
|
transacted |
|
url | Profile’s web URL |
Limitations
This API command is not intended for mass requests.
It takes about 2–3 seconds per call.Sending requests too frequently (more than one per 3 seconds) may cause throttling.
Continuous, rapid requests may cause the bot to relog.
Example
Fetch an avatar’s profile information:
// See "LSL Helper Functions" page for this function
smartbotsAPI("avatar_info", [
"avatar", "cd93067e-7c4e-41c0-ba91-be01f4bafe35"
]);