Difference between revisions of "User:RJackson/StorefrontAPI"

From Team Fortress Wiki
Jump to: navigation, search
m (appuserdetails result structure)
(Found an messages method! Go me!)
Line 5: Line 5:
  
 
Rough documentation for the storefront API - exposed via Big Picture mode.  Data is returned in JSON format.
 
Rough documentation for the storefront API - exposed via Big Picture mode.  Data is returned in JSON format.
 +
 +
== Global parameters ==
 +
Parameters observed to be used on all methods:
 +
:;{{API optional|cc}}: Country code for method to return appropriate currency values.
 +
:;{{API optional|l}}: For localized strings; takes English name of language (none of those fancy ISO distractions).
 +
:;{{API optional|v}}: Unknown.
  
 
== Shared data structures ==
 
== Shared data structures ==
Line 31: Line 37:
  
 
==== Parameters ====
 
==== Parameters ====
:;{{API optional|cc}}: Country code for method to return appropriate currency values.
 
:;{{API optional|l}}: Language code for localized strings.
 
:;{{API optional|v}}: Unknown.
 
  
 
==== Result data ====
 
==== Result data ====
Line 47: Line 50:
  
 
==== Parameters ====
 
==== Parameters ====
:;{{API optional|cc}}: Country code for method to return appropriate currency values.
 
:;{{API optional|l}}: Language code for localized strings.
 
:;{{API optional|v}}: Unknown.
 
 
:;{{API optional|trailer}}: Unknown.
 
:;{{API optional|trailer}}: Unknown.
  
Line 91: Line 91:
 
==== Parameters ====
 
==== Parameters ====
 
:;appids: CSV of app IDs to return details of.
 
:;appids: CSV of app IDs to return details of.
:;{{API optional|cc}}: Country code for method to return appropriate currency values.
 
:;{{API optional|l}}: Language code for localized strings.
 
:;{{API optional|v}}: Unknown.
 
 
:;{{API optional|filters}}: CSV list of keys to return.
 
:;{{API optional|filters}}: CSV list of keys to return.
 
::The filter <code>basic</code> returns the following keys:
 
::The filter <code>basic</code> returns the following keys:
Line 174: Line 171:
 
::::;coming_soon: Boolean, true if unreleased; false if released.
 
::::;coming_soon: Boolean, true if unreleased; false if released.
 
::::;date: Format is localized, according to the <code>cc</code> parameter passed.  Is an empty string when date is unannounced.
 
::::;date: Format is localized, according to the <code>cc</code> parameter passed.  Is an empty string when date is unannounced.
 
 
  
 
=== appuserdetails ===
 
=== appuserdetails ===
Line 183: Line 178:
 
==== Parameters ====
 
==== Parameters ====
 
:;appids: CSV of app IDs to return details of.
 
:;appids: CSV of app IDs to return details of.
:;{{API optional|cc}}: Country code for method to return appropriate currency values.
 
:;{{API optional|l}}: Language code for localized strings.
 
:;{{API optional|v}}: Unknown.
 
 
  
 
==== Result data ====
 
==== Result data ====
Line 208: Line 199:
 
:::::;commentcount;
 
:::::;commentcount;
 
:::;added_to_wishlist:
 
:::;added_to_wishlist:
 +
 +
=== messages ===
 +
Messages that are displayed to users either in a dedicated section of Big Picture mode, or as their own window when a user launches Steam or closes a game.
 +
<pre>GET http://store.steampowered.com/api/messages/</pre>
 +
==== Parameters ====
 +
:;gids: ID of the message.
 +
 +
==== Result data ====
 +
:;gid: ID for the message.
 +
:;linkurl:
 +
:;button_text: Text for the button linking to <code>linkurl</code>
 +
:;partner:
 +
:;image: URL of the messages image.
 +
:;association: vOv
 +
::;type:
 +
::;id:

Revision as of 09:22, 26 April 2013

Rough documentation for the storefront API - exposed via Big Picture mode. Data is returned in JSON format.

Global parameters

Parameters observed to be used on all methods:

cc (Optional)
Country code for method to return appropriate currency values.
l (Optional)
For localized strings; takes English name of language (none of those fancy ISO distractions).
v (Optional)
Unknown.

Shared data structures

App info

id
type
name
discounted
discounted_percent
original_price
Pre-discount application price.
final_price
Post-discount application price.
currency
What currency prices are denoted in.
large_capsule_image
URL of large-capsule image.
small_capsule_image
URL of small-capsule image.
discount_expiration (Optional)
Unix timestamp of when the discount noted above :expires. Is not provided if the app is not discounted.
headline (Optional)
Headline to atop large-capsule widget.
controller_support (Optional)
Whether the app has controller support. Known values:
  • partial
  • full
purchase_package (Optional)
Subscription ID for purchasing the app.

Known methods

featured

Data about apps featured on storefront.

GET http://store.steampowered.com/api/featured/

Parameters

Result data

large_capsules
An array of objects denoting app information; see #App info.
featured_win
An array of objects denoting app information; see #App info.
featured_mac
An array of objects denoting app information; see #App info.
layout
status

featuredcategories

Even more data about featured apps.

GET http://store.steampowered.com/api/featuredcategories/

Parameters

trailer (Optional)
Unknown.

Result data

N
id
name
items
An array of objects, with differing app structures dependant upon N.id:
cat_spotlight
name
header_image
body
url
cat_dailydeal
See #App info
specials
id
name
items
An array of objects denoting app information; see #App info.
coming_soon
id
name
items
An array of objects denoting app information; see #App info.
top_sellers
id
name
items
An array of objects denoting app information; see #App info.
new_releases
id
name
items
An array of objects denoting app information; see #App info.
genres
id
name
trailerslideshow
id
name
status

appdetails

GET http://store.steampowered.com/api/appdetails/

Parameters

appids
CSV of app IDs to return details of.
filters (Optional)
CSV list of keys to return.
The filter basic returns the following keys:
type
name
steam_appid
required_age
dlc
detailed_description
about_the_game
supported_languages
detailed_description
supported_languages
header_image
website
pc_requirements
mac_requirements
Any key names except those listed under basic are acceptable as filter values.

Result data

App ID
success
data
type
Returns "game" even if software.
name
steam_appid
required_age
dlc (Optional)
Array of app ids.
detailed_description
String (html).
about_the_game
String (html).
supported_languages
String (html).
header_image
URL to image.
website
pc_requirements
Array
minimum
String (html).
recommended
String (html).
mac_requirements
Array
minimum
String (html).
recommended
String (html).
developers
Array of strings
publishers
Array of strings.
packages
Array of package IDs.
price_overview (Optional)
Omitted if free-to-play.
currency
Currency prices are denoted in.
initial
Pre-discount price.
final
Post-discount price.
discount_percent
platforms
Booleans. Does not list Linux.
windows
mac
metacritic (Optional)
score
url
categories
Array.
id
description
genres
Array.
id
description
screenshots
Array.
id
path_thumbnail
URL to image.
path_full
URL to image.
movies
Array.
id
name
thumbnail
webm
480
URL of 480p video.
max
URL of max-quality video.
highlight
Boolean; not sure it's purpose.
recommendations
total
Int
achievements (Optional)
total
Int
highlighted
Array
name
path
URL to achievement icon.
release_date
coming_soon
Boolean, true if unreleased; false if released.
date
Format is localized, according to the cc parameter passed. Is an empty string when date is unannounced.

appuserdetails

Information about apps & users in the context of the Steam account logged in to storefront.

GET http://store.steampowered.com/api/appuserdetails/

Parameters

appids
CSV of app IDs to return details of.

Result data

App ID
success
data
friendswant (Optional)
steamid
playtime_twoweeks
playtime_total
friendsown (Optional)
steamid
playtime_twoweeks
playtime_total
recommendations
totalfriends
friends (Optional)
steamid
timestamp
recommendation
commentcount;
added_to_wishlist

messages

Messages that are displayed to users either in a dedicated section of Big Picture mode, or as their own window when a user launches Steam or closes a game.

GET http://store.steampowered.com/api/messages/

Parameters

gids
ID of the message.

Result data

gid
ID for the message.
linkurl
button_text
Text for the button linking to linkurl
partner
image
URL of the messages image.
association
vOv
type
id