Asset Downloader
Allows you to download almost any Roblox asset from the Roblox market
Tento obsah zatím není dostupný ve vašem jazyce.
Download a Roblox Asset
Section titled “Download a Roblox Asset”Returns a Download link for the Roblox asset and information about the asset itself and the creator
GET /api/roblox/asset-downloader
https://api.cookie-api.com/api/roblox/asset-downloader Authentication Learn how to get your API Key and use it in your requests!
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
asset | string | Yes | The unique ID of the Roblox asset |
Request examples
Section titled “Request examples”curl --location 'https://api.cookie-api.com/api/roblox/asset-downloader?asset=3670737444' \--header 'Authorization: API_Key'import requests
url = 'https://api.cookie-api.com/api/roblox/asset-downloader?asset=3670737444'headers = { 'Authorization': 'API_Key'}
response = requests.get(url, headers=headers)print(response.json())const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/roblox/asset-downloader?asset=3670737444';const headers = { 'Authorization': 'API_Key'};
fetch(url, { method: 'GET', headers }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err));package main
import ( "fmt" "log" "net/http" "io/ioutil")
func main() { url := "https://api.cookie-api.com/api/roblox/asset-downloader?asset=3670737444" req, err := http.NewRequest("GET", url, nil) if err != nil { log.Fatal(err) }
req.Header.Add("Authorization", "API_Key")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body) if err != nil { log.Fatal(err) }
fmt.Println(string(body))}const https = require('https');
const options = { hostname: 'www.cookie-api.com', path: '/api/roblox/asset-downloader?asset=3670737444', method: 'GET', headers: { 'Authorization': 'API_Key' }};
const req = https.request(options, res => { let body = '';
res.on('data', chunk => { body += chunk; });
res.on('end', () => { console.log(JSON.parse(body)); });});
req.on('error', error => { console.error(error);});
req.end();require 'net/http'require 'uri'require 'json'
uri = URI.parse('https://api.cookie-api.com/api/roblox/asset-downloader?asset=3670737444')
request = Net::HTTP::Get.new(uri)request['Authorization'] = 'API_Key'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http| http.request(request)end
puts response.bodyuse reqwest::blocking::Client;use reqwest::header::HeaderMap;use std::collections::HashMap;
fn main() { let url = "https://api.cookie-api.com/api/roblox/asset-downloader?asset=3670737444"; let client = Client::new();
let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap());
let res = client .get(url) .headers(headers) .send() .unwrap();
println!("{}", res.text().unwrap());}Responses
Section titled “Responses”{ "asset_id": 3670737444, "asset_type": 11, "creator": "Roblox", "creator_info": { "created": "2006-02-27T21:06:40.3Z", "description": "Welcome to the Roblox profile! This is where you can check out the newest items in the catalog, and get a jumpstart on exploring and building on our Imagination Platform. If you want news on updates to the Roblox platform, or great new experiences to play with friends, check out blog.roblox.com. Please note, this is an automated account. If you need to reach Roblox for any customer service needs find help at www.roblox.com/help", "displayName": "Roblox", "externalAppDisplayName": null, "hasVerifiedBadge": true, "id": 1, "isBanned": false, "name": "Roblox" }, "description": "", "item_type": "Asset", "media_type": "png", "name": "Roblox Shirt - Simple Pattern", "price": 0, "purchaseable": true, "success": true, "url": "https://images.cookie-api.com/roblox-assets/d53b09d7-e35d-4249-bd3d-c42b193fbc4a.png"}