Skip to content
GAMPEONCreate
New project

Marketplace item

GET
/v1/resources/{name}
curl --request GET \
--url https://api.gampeon.com/v1/resources/example

With 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.

name
required
string
/^[a-z0-9][a-z0-9_\-]{1,47}$/

Resource name

Item

Media typeapplication/json
object
name
required

Unique resource name

string
/^[a-z0-9][a-z0-9_\-]{1,47}$/
title
required
string
description
required
string
kind
required
string
Allowed values: script vehicle map prop clothing gamemode tool
tags
required
Array<string>
owner
required
object
handle
required

Unique handle

string
/^[a-z0-9_]{3,24}$/
displayName
required
string
avatar
One of:

Image path relative to the API (/v1/media/…). null without an image.

string
latestVersion
required
One of:

Newest version that is not blocked

string
image
required
One of:

Path of the preview image, relative to the API, for example /v1/images/<sha256>.webp

string
downloads
required

Downloads of all versions

integer
price
required

Price in GAMPEONS, 0 = free

integer
createdAt
required

Unix time in milliseconds

integer format: int64
updatedAt
required

Unix time in milliseconds

integer format: int64
owner
required

Display name of the owner (kept for compatibility; see ownerProfile)

string
ownerProfile
required
object
handle
required

Unique handle

string
/^[a-z0-9_]{3,24}$/
displayName
required
string
avatar
One of:

Image path relative to the API (/v1/media/…). null without an image.

string
project
required
One of:
object
slug
required
string
title
required
string
versions
required

Versions that are not blocked, newest first

Array<object>
object
version
required

Semantic version

string
/^\d+\.\d+\.\d+(-[0-9A-Za-z.\-]+)?$/
sha256
required

SHA-256 of the file (hex)

string
sizeBytes
required
integer
createdAt
required

Unix time in milliseconds

integer format: int64
downloads
required
integer
hasFile
required

The file has been uploaded

boolean
url
required
One of:

Download path relative to the API, once the file is uploaded

string
requiresPurchase
required

The item costs GAMPEONS

boolean
owned
required

You may download it: free, your own, or bought. false without a session for paid items

boolean

Example

{
"kind": "script"
}

Error codes: token_not_allowed

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: not_found

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Report a problem with this pageOther ways to give feedback