Lookup
Returns a single activity, specified by the id parameter
Endpoint URL
/api/activities/:id
HTTP Method
GET
Authentication
Client ID required. See how to authenticate public resources here.
Parameters
| Name | Required | Description | Example |
|---|---|---|---|
| activity_id | required | Unique ID of the activity | ac12345 |
Response Elements
| Response | Description |
|---|---|
| code |
Beats API response code. If successful, code is 'OK'. Otherwise it will be an error code. |
| data |
The activity item object for the given id: |
|
type |
The entity type of the API object |
|
id |
Unique ID of the activity |
|
name |
Name of the activity |
|
total_editorial_playlists |
Count of playlists associated with this activity |
|
created_at |
Epoch timestamp the given object was created at. |
Example Request
curl -X GET "https://partner.api.beatsmusic.com/v1/api/activities/ac24" \
-d "client_id=[CLIENT_ID]"
Example Response
{
"code": "OK",
"data": {
"type": "activity",
"id": "ac24",
"name": "Squatting",
"created_at": 1371681269
}
}

