API / Includes
Includes let you specify which fields you want to retreive for a given API request. Use them by appending ?include=fieldgroup
to your query params. Including any of these named "field groups" will add data to the response. You can join multiple field groups in a list with commas or plus signs (, or +).
curl http://8tracks.com/mixes/14.json?include=likes_count+length
Includes can be nested using [square brackets], to specify which properties should be returned for child objects. For example, it may interest you to know about the users for each mix in a set:
curl http://8tracks.com/mix_sets/all.json?include=mixes[user]
- or -
curl http://8tracks.com/mix_sets/all.json?include=mixes[user+length]+details
The following auto-generated object documentation shows all of the available field groups and the objects or properties they will return for different endpoints. The base field group is always included; you do not need to explicitly request it.
Mix
http://8tracks.com/mixes/123.json
base
id
(Integer)
path
(String)
web_path
(String)
name
(String)
user_id
(Integer)
published
(Boolean)
unlisted
(Boolean)
nsfw
(Boolean)
read_only
(Boolean)
cover_urls
=>
original, original_imgix_url, static_cropped_imgix_url, cropped_imgix_url, cropped_imgix_size, sq56, sq72, sq100, sq133, max133w, max200, sq250, sq500, max1024
description
(String)
plays_count
(Integer)
tag_list_cache
(String)
first_published_at
(DateTime)
first_published_at_timestamp
(Integer)
likes_count
(Integer)
certification
(String)
is_promoted
(Boolean)
duration
(Integer)
tracks_count
(Integer)
color_palette
(Array)
artist_list
(Array)
cover_image
cover_urls
(unknown)
likes_count
likes_count
(Integer)
certification
(String)
liked
(
dependent on current user)
liked_by_current_user
(Boolean)
listened
(
dependent on current user)
listened_by_current_user
(Boolean)
user_with_followed
user
(User)
description_html
description_html
(String)
dynamic_branch_io_deeplink
(String)
length
duration
(Integer)
tracks_count
(Integer)
v2
id
(Integer)
name
(String)
published
(Boolean)
unlisted
(Boolean)
description
(String)
plays_count
(Integer)
likes_count
(Integer)
slug
(String)
path
(String)
web_path
(String)
cover_urls
=>
original, original_imgix_url, static_cropped_imgix_url, cropped_imgix_url, cropped_imgix_size, sq56, sq72, sq100, sq133, max133w, max200, sq250, sq500, max1024
restful_url
(String)
tag_list_cache
(String)
first_published_at
(DateTime)
liked_by_current_user
(Boolean)
nsfw
(Boolean)
duration
(Integer)
tracks_count
(Integer)
user
(User)
User
http://8tracks.com/users/123.json
base
id
(Integer)
login
(String)
path
(String)
web_path
(String)
avatar_urls
=>
original, original_imgix_url, static_cropped_imgix_url, cropped_imgix_url, cropped_imgix_size, sq56, sq72, sq100, sq200, sq400, sq640, sq750, max200, max250w, animated
color_palette
(Array)
followed
(
dependent on current user)
followed_by_current_user
(Boolean)
owner
(owner)
location
(String)
subscribed
(Boolean)
follows_count
(Integer)
web_safe_browse
(Boolean)
mobile_safe_browse
(Boolean)
email
(String)
bio
(String)
admin
(Boolean)
web_preferences
(owner)
next_mix_prefs
(String)
can_use_network_tracks
(Boolean)
admin
(Boolean)
moderator
(Boolean)
junior_moderator
(Boolean)
uses_collections
(Boolean)
partners
=>
facebook, lastfm, instagram, soundcloud, google_plus, youtube, spotify
lastfm
=>
show_lastfm_link
show_chrome_notifications
(Boolean)
zip_code
(String)
dob_year
(Integer)
gender
(String)
recent_mixes
(owner)
recent_mixes
(Array)
has_recent_mixes
(Boolean)
top_tags
top_tags
(Array)
location
city
neighborhood
state
country
(String)
zip_code
(String)
location_summary
location
(String)
designation
designation
(String)
profile
location
(String)
location_path
bio_html
(String)
website
website_trusted
designation
(String)
city
neighborhood
country
(String)
member_since
(String)
bio
(String)
college_name
college_acronym
admin
(Boolean)
moderator
(Boolean)
collections
collections
(Collection::ActiveRecord_Associations_CollectionProxy)
follows_users
follows_users
(User::ActiveRecord_Associations_CollectionProxy)
followed_by_users
followed_by_users
(User::ActiveRecord_Associations_CollectionProxy)
timeline
timeline
(ActivityFeed::Timeline)
profile_counts
public_mixes_count
(Integer)
follows_count
(Integer)
followers_count
(Integer)
likes_received_count
(Integer)
liked_mixes_count
(Integer)
favorites_count
(Integer)
collections_count
(Boolean)
presets
presets
(Array)
preset_smart_ids
(Array)
v2
id
(Integer)
login
(String)
next_mix_prefs
(String)
slug
(String)
bio_html
(String)
location
(String)
path
(String)
avatar_urls
=>
original, original_imgix_url, static_cropped_imgix_url, cropped_imgix_url, cropped_imgix_size, sq56, sq72, sq100, sq200, sq400, sq640, sq750, max200, max250w, animated
subscribed
(Boolean)
followed_by_current_user
(Boolean)
follows_count
v2_1
id
(Integer)
login
(String)
slug
(String)
location
(String)
path
(String)
avatar_urls
=>
original, original_imgix_url, static_cropped_imgix_url, cropped_imgix_url, cropped_imgix_size, sq56, sq72, sq100, sq200, sq400, sq640, sq750, max200, max250w, animated
Mix Set
http://8tracks.com/mix_sets/smart_id.json (
see smart id docs)
base
smart_id
(String)
decoded_smart_id
(String)
smart_type
(String)
path
(String)
name
(String)
web_path
(String)
sort
(String)
playback_stays_in_set
(Boolean)
pages
pagination
=>
current_page, per_page, offset_by, next_page, previous_page, total_entries, total_pages, next_page_path
pagination
pagination
=>
current_page, per_page, offset_by, next_page, previous_page, total_entries, total_pages, next_page_path
mixes_details
mixes
(Array)
mixes_with_users
mixes
(Array)
search_params
q_all
q_artist
q_desc
(unknown)
tags_list
(Array)
user_filter
(unknown)
details
tags_list
(Array)
artist_name
smart_type
(String)
sort
(String)
html_name
(String)
description
relative_name
(
dependent on current user)
relative_name
(String)
relative_short_name
(String)
Review
http://8tracks.com/mixes/123/reviews.json
base
id
(Integer)
body
(String)
body_html
(String)
created_at
(DateTime)
created_at_timestamp
(Integer)
mix_id
(Integer)
user_id
(Integer)
parent_id
reviewer_blocked
(Boolean)
reviewable_id
(Integer)
Collection
http://8tracks.com/collections/123.json
base
id
(Integer)
smart_id
(String)
name
(String)
slug
(String)
mixes_count
(Integer)
web_path
(String)
description
(String)
updated_at
(DateTime)
mixes
mixes
(Mix::ActiveRecord_Associations_CollectionProxy)