Difference between revisions of "Spore"

From Archiveteam
Jump to navigation Jump to search
Line 62: Line 62:
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response.
Note that all the non-ASCII symbols will be replaced with <code>?</code> in the response.
|-
|-
| <code>/rest/assets/user/'''<Username>'''/'''<StartIndex>'''/'''<Length>'''</code> ||
| <code>/rest/assets/user/'''<Username>'''/'''<StartIndex>'''/'''<Length>''/'''<AssetType>'''''</code> ||
<u>Get asset id, name, creation date, type, parent and rating for a list of assets created by a user.</u>
<u>Get asset id, name, creation date, type, parent and rating for a list of assets created by a user.</u>



Revision as of 17:08, 2 November 2023

Spore
Spore.com - 29072022.png
URL http://www.spore.com/[IAWcite.todayMemWeb]
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 500:123:456:789).
Should be requested on static subdomain which uses CDN.

/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 500:123:456:789).
Should be requested on static subdomain which uses CDN.

/static/image/<subId1>/<subId2>/<subId3>/<AssetId>_lrg.png

/static/image/<subId1>/<subId2>/<subId3>/<AssetId>_2_lrg.png
/static/image/<subId1>/<subId2>/<subId3>/<AssetId>_3_lrg.png
/static/image/<subId1>/<subId2>/<subId3>/<AssetId>_4_lrg.png

Asset PNG 256x256 image.

_2_, _3_, _4_ are for additional adventure images.
Sub IDs are 3 digit partitions of the Asset ID (like 500:123:456:789).
Should be requested on static subdomain which uses CDN.

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 <status>0</status> if the asset is not a creature or if the ID is invalid.

/rest/user/<Username>

Get profile pic, tagline, user id and creation date for a username.

Returns <status>0</status> if the username is invalid.
Note that all the non-ASCII symbols will be replaced with ? in the response.

/rest/assets/user/<Username>/<StartIndex>/<Length>/<AssetType>

Get asset id, name, creation date, type, parent and rating for a list of assets created by a user.

Always returns <status>1</status>.
Maximum length is 500 assets per request.
Ignores additional adventure images.
Note that all the non-ASCII symbols will be replaced with ? in the response.

/rest/sporecasts/<Username>

Get id, name, tags, subscription count, rating etc. for Sporecasts subscribed to by a user.

Returns <status>0</status> if the username is invalid.
Maximum length is unknown.
Note that all the non-ASCII symbols will be replaced with ? in the response.

/rest/assets/sporecast/<SporecastId>/<StartIndex>/<Length>

Get asset id, and name for assets in a sporecast.

Returns both <status>1</status> and <status>0</status> if the sporecast ID is invalid.
Maximum length is 500 assets per request.
Ignores additional adventure images.
Note that all the non-ASCII symbols will be replaced with ? in the response.

/rest/achievements/<Username>/<StartIndex>/<Length>

Get number of achievements for user and a list of achievement ids and unlock-dates.

Returns <status>0</status> if the username is invalid.
Maximum length is 500 achievements per request (real maximum achievements count is 151, 102 vanilla + 49 Galactic Adventures EP).
Note that all the non-ASCII symbols will be replaced with ? in the response.

/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 <status>0</status> if the asset ID is invalid.
Note that all the non-ASCII symbols will be replaced with ? in the response.

/rest/comments/<AssetId>/<StartIndex>/<Length>

For a given asset id, get a list of comments, sender names and comment dates.

Returns <status>0</status> if the asset ID is invalid.
Maximum length is unknown.
Note that all the non-ASCII symbols will be replaced with ? in the response.

/rest/users/buddies/<Username>/<StartIndex>/<Length>

For a given username, get a list of buddy names and ids and total buddy count.

Returns <status>0</status> if the username is invalid.
Maximum length is unknown.
Note that all the non-ASCII symbols will be replaced with ? in the response.

/rest/users/subscribers/<Username>/<StartIndex>/<Length>

For a given username, get the list of users who have added that username as a buddy.

Returns <status>0</status> if the username is invalid.
Maximum length is 500 users per request.
Note that all the non-ASCII symbols will be replaced with ? in the response.

/rest/assets/search/<ViewType>/<StartIndex>/<Length>/<AssetType>

List creations for a given view.

View types:
TOP_RATED TOP_RATED_NEW NEWEST FEATURED MAXIS_MADE RANDOM CUTE_AND_CREEPY TOP_RATED THERESA_VISION

Asset types:
CREATURE BUILDING VEHICLE UFO ADVENTURE

Selects NEWEST view if the requested one doesn't exist.
Ignores asset type if the requested one doesn't exist.
Maximum length is 500 assets per request.
Note that all the non-ASCII symbols will be replaced with ? in the response.

/rest/assets/find/<Query>/<StartIndex>/<Length>/<AssetType>

Unmentioned endpoint, find creations for a query.

Query example: is_quality:true AND !author:MaxisCactus AND (tags:cat OR name:cat)

  1. Creation has 2 rates up or more (is_quality:true)
  2. The author is NOT MaxisCactus (!author:MaxisCactus)
  3. The name OR tags of the creation have "cat" in them ((tags:cat OR name:cat))

Known conditions:

id (number: ID of the creation)
name / plain text (string: name of the creation)
author (string: username of the author of the creation)
description (string: description of the creation)
tags (string: tags of the creation)
locale (BROKEN)
is_quality (bool: does the creation have 2+ rates up or not)
is_featured (bool: is the creation featured or not)

Asset types:
CREATURE BUILDING VEHICLE UFO ADVENTURE

Returns <status>0</status> if nothing found or the query is invalid.
Returns 500 if the query is missing (//).
Ignores asset type if the requested one doesn't exist.
Maximum length is 500 assets per request.
Note that all the non-ASCII symbols will be replaced with ? in the response.

ATOM Feeds /atom/news

Get Spore News feed.

/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.
Maximum count of events is 20.
Maximum age of events is 1 month.

/atom/events/asset/<AssetId>

Get a feed of recent events for given asset id.

Returns an empty feed if the asset ID is invalid.
Maximum count of events is 20.

/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:
TOP_RATED TOP_RATED_NEW NEWEST FEATURED MAXIS_MADE RANDOM CUTE_AND_CREEPY TOP_RATED THERESA_VISION

Returns 500 if the requested view doesn't exist.
Maximum length is 20 assets per request.

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.
The widget itself sends only /0/100 requests, although this request has no length limit.

DWR Interface W.I.P. POST W.I.P. Should be researched in the future.