Skip to content

Get media by ID

GET
/api/v1/media/{id}

Roles required: Admin

Gets an image or video file when provided with an ID.

Parameters

Path Parameters

id*

Media ID

Typeinteger
Required
Example1234567890

Responses

OK
string
Formatbinary

Samples

cURL
curl -X GET https://openfish.appspot.com/api/v1/media/{id}
JavaScript
fetch("https://openfish.appspot.com/api/v1/media/{id}")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://openfish.appspot.com/api/v1/media/{id}");
Python
import requests
response = requests.get("https://openfish.appspot.com/api/v1/media/{id}")
print(response.json())