Difference between revisions of "Spore"
0KepOnline (talk | contribs) m |
0KepOnline (talk | contribs) (Fixed URL for asset view with ATOM) |
||
Line 8: | Line 8: | ||
'''Spore''' is a video game developed by Maxis and published by Electronic Arts. The game allows players to create customized creatures, buildings, vehicles, adventures (with expansion pack ''Spore: Galactic Adventures'') and share them with other players via official game site, [http://spore.com Spore.com], by publishing creations in-game or via third-party resources by publishing their 128x128 .png thumbnails without any postprocessing. | '''Spore''' is a video game developed by Maxis and published by Electronic Arts. The game allows players to create customized creatures, buildings, vehicles, adventures (with expansion pack ''Spore: Galactic Adventures'') and share them with other players via official game site, [http://spore.com Spore.com], by publishing creations in-game or via third-party resources by publishing their 128x128 .png thumbnails without any postprocessing. | ||
== Site API == | |||
=== Public === | |||
'''Official Spore API documentation is available here:''' http://www.spore.com/comm/samples | |||
{| class="wikitable" style="width: auto; text-align: center" | |||
! !! URL !! Comments | |||
|- | |||
! rowspan="3" | Static Data | |||
| <code>/static/model/'''<subId1>'''/'''<subId2>'''/'''<subId3>'''/'''<AssetId>'''.xml</code> || | |||
Asset XML model. | |||
Sub IDs are 3 digit partitions of the Asset ID (like '''<code>500</code>''':'''<code>123</code>''':'''<code>456</code>''':<code>789</code>). | |||
<br /> | |||
Should be requested on <code>static</code> subdomain which uses CDN. | |||
|- | |||
| <code>/static/thumb/'''<subId1>'''/'''<subId2>'''/'''<subId3>'''/'''<AssetId>'''.png</code> || | |||
Asset PNG 128x128 thumbnail. Can be imported into the game. | |||
Sub IDs are 3 digit partitions of the Asset ID (like '''<code>500</code>''':'''<code>123</code>''':'''<code>456</code>''':<code>789</code>). | |||
<br /> | |||
Should be requested on <code>static</code> subdomain which uses CDN. | |||
|- | |||
| <code>/static/image/'''<subId1>'''/'''<subId2>'''/'''<subId3>'''/'''<AssetId>'''_lrg.png</code> | |||
<code>/static/image/'''<subId1>'''/'''<subId2>'''/'''<subId3>'''/'''<AssetId>'''_2_lrg.png</code> | |||
<br /> | |||
<code>/static/image/'''<subId1>'''/'''<subId2>'''/'''<subId3>'''/'''<AssetId>'''_3_lrg.png</code> | |||
<br /> | |||
<code>/static/image/'''<subId1>'''/'''<subId2>'''/'''<subId3>'''/'''<AssetId>'''_4_lrg.png</code> | |||
|| | |||
Asset PNG 256x256 image. | |||
<code>_2_</code>, <code>_3_</code>, <code>_4_</code> are for additional adventure images. | |||
<br /> | |||
Sub IDs are 3 digit partitions of the Asset ID (like '''<code>500</code>''':'''<code>123</code>''':'''<code>456</code>''':<code>789</code>). | |||
<br /> | |||
Should be requested on <code>static</code> subdomain which uses CDN. | |||
|- | |||
! rowspan="12" | REST Service | |||
| <code>/rest/stats</code> || | |||
<u>Get daily stats about Spore.com.</u> | |||
|- | |||
| <code>/rest/creature/'''<CreatureAssetId>'''</code> || | |||
<u>Get various stats like height, diet, abilities etc. for a creature.</u> | |||
Returns <code><status>0</status></code> if the asset is not a creature or if the ID is invalid. | |||
|- | |||
| <code>/rest/user/'''<Username>'''</code> || | |||
<u>Get profile pic, tagline, user id and creation date for a username.</u> | |||
Returns <code><status>0</status></code> if the username is invalid. | |||
<br /> | |||
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response. | |||
|- | |||
| <code>/rest/assets/user/'''<Username>'''/'''<StartIndex>'''/'''<Length>'''</code> || | |||
<u>Get asset id, name, creation date, type, parent and rating for a list of assets created by a user.</u> | |||
Always returns <code><status>1</status></code>. | |||
<br /> | |||
Maximum length is 500 assets per request. | |||
<br /> | |||
Ignores additional adventure images. | |||
<br /> | |||
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response. | |||
|- | |||
| <code>/rest/sporecasts/'''<Username>'''</code> || | |||
<u>Get id, name, tags, subscription count, rating etc. for Sporecasts subscribed to by a user.</u> | |||
Returns <code><status>0</status></code> if the username is invalid. | |||
<br /> | |||
Maximum length is unknown. | |||
<br /> | |||
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response. | |||
|- | |||
| <code>/rest/assets/sporecast/'''<SporecastId>'''/'''<StartIndex>'''/'''<Length>'''</code> || | |||
<u>Get asset id, and name for assets in a sporecast.</u> | |||
Returns both <code><status>1</status></code> and <code><status>0</status></code> if the sporecast ID is invalid. | |||
<br /> | |||
Maximum length is 500 assets per request. | |||
<br /> | |||
Ignores additional adventure images. | |||
<br /> | |||
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response. | |||
|- | |||
| <code>/rest/assets/achievements/'''<Username>'''/'''<StartIndex>'''/'''<Length>'''</code> || | |||
<u>Get number of achievements for user and a list of achievement ids and unlock-dates.</u> | |||
Returns <code><status>0</status></code> if the username is invalid. | |||
<br /> | |||
Maximum length is 500 achievements per request (real maximum achievements count is 151, 102 vanilla + 49 Galactic Adventures EP). | |||
<br /> | |||
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response. | |||
|- | |||
| <code>/rest/asset/'''<AssetId>'''</code> || | |||
<u>For a given asset id, get name, description, tags, 10 latest comments, type, parent, rating, creation date and author name/id.</u> | |||
Returns <code><status>0</status></code> if the asset ID is invalid. | |||
<br /> | |||
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response. | |||
|- | |||
| <code>/rest/comments/'''<AssetId>'''/'''<StartIndex>'''/'''<Length>'''</code> || | |||
<u>For a given asset id, get a list of comments, sender names and comment dates.</u> | |||
Returns <code><status>0</status></code> if the asset ID is invalid. | |||
<br /> | |||
Maximum length is unknown. | |||
<br /> | |||
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response. | |||
|- | |||
| <code>/rest/users/buddies/'''<Username>'''/'''<StartIndex>'''/'''<Length>'''</code> || | |||
<u>For a given username, get a list of buddy names and ids and total buddy count.</u> | |||
Returns <code><status>0</status></code> if the username is invalid. | |||
<br /> | |||
Maximum length is unknown. | |||
<br /> | |||
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response. | |||
|- | |||
| <code>/rest/users/subscribers/'''<Username>'''/'''<StartIndex>'''/'''<Length>'''</code> || | |||
<u>For a given username, get the list of users who have added that username as a buddy.</u> | |||
Returns <code><status>0</status></code> if the username is invalid. | |||
<br /> | |||
Maximum length is 500 users per request. | |||
<br /> | |||
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response. | |||
|- | |||
| <code>/rest/assets/search/'''<ViewType>'''/'''<StartIndex>'''/'''<Length>'''''/'''<AssetType>'''''</code> || | |||
<u>List creations for a given view.</u> | |||
View types: | |||
<br /> | |||
<code>TOP_RATED</code> | |||
<code>TOP_RATED_NEW</code> | |||
<code>NEWEST</code> | |||
<code>FEATURED</code> | |||
<code>MAXIS_MADE</code> | |||
<code>RANDOM</code> | |||
<code>CUTE_AND_CREEPY</code> | |||
<code>TOP_RATED</code> | |||
''<code>THERESA_VISION</code>'' | |||
Asset types: | |||
<br /> | |||
<code>CREATURE</code> | |||
<code>BUILDING</code> | |||
<code>VEHICLE</code> | |||
<code>UFO</code> | |||
<code>ADVENTURE</code> | |||
Selects <code>NEWEST</code> view if the requested one doesn't exist. | |||
<br /> | |||
Ignores asset type if the requested one doesn't exist. | |||
<br /> | |||
Maximum length is 500 assets per request. | |||
<br /> | |||
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response. | |||
|- | |||
! rowspan="5" | ATOM Feeds | |||
| <code>/atom/assets/user/'''<Username>'''</code> || | |||
<u>Get a feed of all the assets for user. Asset name, description, type, creation date, PNG and XML links are included.</u> | |||
Returns 404 if the username is invalid. | |||
|- | |||
| <code>/atom/events/user/'''<Username>'''</code> || | |||
<u>Get a feed of recent events for user.</u> | |||
Returns 500 if the username is invalid. | |||
<br /> | |||
Maximum count of events is 20. | |||
<br /> | |||
Maximum age of events is 1 month. | |||
|- | |||
| <code>/atom/events/asset/'''<AssetId>'''</code> || | |||
<u>Get a feed of recent events for given asset id.</u> | |||
Returns an empty feed if the asset ID is invalid. | |||
<br /> | |||
Maximum count of events is 20. | |||
|- | |||
| <code>/atom/sporecast/'''<SporecastId>'''</code> || | |||
<u>Get a feed of all the assets in a sporecast, date they were added and links to PNG and XML.</u> | |||
Returns 404 if the sporecast ID is invalid. | |||
|- | |||
| <code>/atom/assets/view/'''<ViewType>'''/'''<StartIndex>'''/'''<Length>'''</code> || | |||
<u>List creations for a given view.</u> | |||
View types: | |||
<br /> | |||
<code>TOP_RATED</code> | |||
<code>TOP_RATED_NEW</code> | |||
<code>NEWEST</code> | |||
<code>FEATURED</code> | |||
<code>MAXIS_MADE</code> | |||
<code>RANDOM</code> | |||
<code>CUTE_AND_CREEPY</code> | |||
<code>TOP_RATED</code> | |||
''<code>THERESA_VISION</code>'' | |||
Returns 500 if the requested view doesn't exist. | |||
<br /> | |||
Maximum length is 20 assets per request. | |||
|} | |||
=== Internal === | |||
<!-- ๐๐๐ฆ๐-๐ฎ๐ฌ๐๐ ๐ฉ๐จ๐ฅ๐ฅ๐ข๐ง๐๐ญ๐จ๐ซ/๐๐จ๐ฆ๐ฆ๐ฎ๐ง๐ข๐ญ๐ฒ ๐๐๐ ๐ฌ๐ก๐จ๐ฎ๐ฅ๐ ๐ง๐จ๐ญ ๐๐ ๐ฆ๐๐ง๐ญ๐ข๐จ๐ง๐๐ ๐ก๐๐ซ๐. --> | |||
{| class="wikitable" style="width: auto; text-align: center" | |||
! !! URL !! Method !! Form Data !! Comments | |||
|- | |||
! Flash Widget | |||
| <code>/view/user-thumbnail-count/'''<UserID>'''/'''<StartIndex>'''/'''<Length>'''</code> || GET || โ || | |||
Used for a personal [[Flash]] widget, which can be grabbed on this page: http://www.spore.com/view/tools/widget | |||
Returns an XML with user tagline and a list of assets with their IDs, names and thumbnail links. | |||
<br /> | |||
The widget itself sends only <code>/0/100</code> requests, although this request has no length limit. | |||
|- | |||
! DWR Interface | |||
| ''W.I.P.'' || POST || ''W.I.P.'' || Should be researched in the future. | |||
|} |
Revision as of 18:24, 6 May 2023
Spore | |
URL | http://www.spore.com/[IAโขWciteโข.todayโขMemWeb] |
Status | Online! |
Archiving status | Not saved yet |
Archiving type | Unknown |
IRC channel | #archiveteam-bs (on hackint) |
Spore is a video game developed by Maxis and published by Electronic Arts. The game allows players to create customized creatures, buildings, vehicles, adventures (with expansion pack Spore: Galactic Adventures) and share them with other players via official game site, Spore.com, by publishing creations in-game or via third-party resources by publishing their 128x128 .png thumbnails without any postprocessing.
Site API
Public
Official Spore API documentation is available here: http://www.spore.com/comm/samples
URL | Comments | |
---|---|---|
Static Data | /static/model/<subId1>/<subId2>/<subId3>/<AssetId>.xml |
Asset XML model. Sub IDs are 3 digit partitions of the Asset ID (like |
/static/thumb/<subId1>/<subId2>/<subId3>/<AssetId>.png |
Asset PNG 128x128 thumbnail. Can be imported into the game. Sub IDs are 3 digit partitions of the Asset ID (like | |
/static/image/<subId1>/<subId2>/<subId3>/<AssetId>_lrg.png
|
Asset PNG 256x256 image.
| |
REST Service | /rest/stats |
Get daily stats about Spore.com. |
/rest/creature/<CreatureAssetId> |
Get various stats like height, diet, abilities etc. for a creature. Returns | |
/rest/user/<Username> |
Get profile pic, tagline, user id and creation date for a username. Returns | |
/rest/assets/user/<Username>/<StartIndex>/<Length> |
Get asset id, name, creation date, type, parent and rating for a list of assets created by a user. Always returns | |
/rest/sporecasts/<Username> |
Get id, name, tags, subscription count, rating etc. for Sporecasts subscribed to by a user. Returns | |
/rest/assets/sporecast/<SporecastId>/<StartIndex>/<Length> |
Get asset id, and name for assets in a sporecast. Returns both | |
/rest/assets/achievements/<Username>/<StartIndex>/<Length> |
Get number of achievements for user and a list of achievement ids and unlock-dates. Returns | |
/rest/asset/<AssetId> |
For a given asset id, get name, description, tags, 10 latest comments, type, parent, rating, creation date and author name/id. Returns | |
/rest/comments/<AssetId>/<StartIndex>/<Length> |
For a given asset id, get a list of comments, sender names and comment dates. Returns | |
/rest/users/buddies/<Username>/<StartIndex>/<Length> |
For a given username, get a list of buddy names and ids and total buddy count. Returns | |
/rest/users/subscribers/<Username>/<StartIndex>/<Length> |
For a given username, get the list of users who have added that username as a buddy. Returns | |
/rest/assets/search/<ViewType>/<StartIndex>/<Length>/<AssetType> |
List creations for a given view. View types:
Asset types:
Selects | |
ATOM Feeds | /atom/assets/user/<Username> |
Get a feed of all the assets for user. Asset name, description, type, creation date, PNG and XML links are included. Returns 404 if the username is invalid. |
/atom/events/user/<Username> |
Get a feed of recent events for user. Returns 500 if the username is invalid.
| |
/atom/events/asset/<AssetId> |
Get a feed of recent events for given asset id. Returns an empty feed if the asset ID is invalid.
| |
/atom/sporecast/<SporecastId> |
Get a feed of all the assets in a sporecast, date they were added and links to PNG and XML. Returns 404 if the sporecast ID is invalid. | |
/atom/assets/view/<ViewType>/<StartIndex>/<Length> |
List creations for a given view. View types:
Returns 500 if the requested view doesn't exist.
|
Internal
URL | Method | Form Data | Comments | |
---|---|---|---|---|
Flash Widget | /view/user-thumbnail-count/<UserID>/<StartIndex>/<Length> |
GET | โ |
Used for a personal Flash widget, which can be grabbed on this page: http://www.spore.com/view/tools/widget Returns an XML with user tagline and a list of assets with their IDs, names and thumbnail links.
|
DWR Interface | W.I.P. | POST | W.I.P. | Should be researched in the future. |