Returns a random dog image or video file directly. The response is either a redirect to the media file or the file itself.
filter
(string, query, optional)
Filter results by file extension (e.g., 'mp4', 'jpg', 'png', 'gif')
Constraints: {'enum': ['mp4', 'jpg', 'jpeg', 'png', 'gif', 'webm']}
Get random dog media directly
probe-gate
curl 'https://random.dog/woof'
import requests
resp = requests.get("https://random.dog/woof")
data = resp.json()
import zingu_apis
api = zingu_apis.api("random")
result = api.fetch("woof")
for item in result:
print(item)
const resp = await fetch("https://random.dog/woof");
const data = await resp.json();