Marketplace item
const url = 'https://api.gampeon.com/v1/resources/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.gampeon.com/v1/resources/exampleWith all versions that are not blocked. For paid items the version url is null; buyers get a download link from …/download. With a session, owned says whether you may download it.
Not available with access tokens.
Authorizations
Section titled “Authorizations”- None
- session
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource name
Responses
Section titled “Responses”Item
object
Unique resource name
Downloads of all versions
Price in GAMPEONS, 0 = free
Unix time in milliseconds
Unix time in milliseconds
Display name of the owner (kept for compatibility; see ownerProfile)
Versions that are not blocked, newest first
object
Semantic version
SHA-256 of the file (hex)
Unix time in milliseconds
The file has been uploaded
The item costs GAMPEONS
You may download it: free, your own, or bought. false without a session for paid items
Example
{ "kind": "script"}Error codes: token_not_allowed
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: not_found
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}