GET /amazon/download

Download

Download raw HTML content from any Amazon page URL.

Amazon Product Data API

Download the raw HTML content of any Amazon page by providing its URL. Useful for custom parsing, archiving, or extracting data not covered by other structured endpoints. Returns the full page HTML as rendered for the specified language.

HTTP Request

GET /amazon/download

Parameters

ParameterTypeRequiredDefaultDescription
urlstringYes-Full Amazon page URL to download
languagestringNo-Language code for the page content

Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{
  "status": "OK",
  "request_id": "a9b0c1d2-9012-3456-2345-444444444444",
  "data": {
    "url": "https://www.amazon.com/dp/B0BSHF7WHW",
    "content": "<!DOCTYPE html><html lang=\"en-us\"><head><meta charset=\"utf-8\"><title>Apple AirPods Pro (2nd Generation) Wireless Earbuds...</title>...</html>",
    "content_length": 485230,
    "content_type": "text/html",
    "status_code": 200
  }
}

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import requests

url = "https://real-time-amazon-data-the-most-complete.p.rapidapi.com/amazon/download"

params = {
    "url": "https://www.amazon.com/dp/B0BSHF7WHW",
    "language": "en_US"
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "real-time-amazon-data-the-most-complete.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()["data"]

html_content = data["content"]
print(f"Downloaded {data['content_length']} bytes from {data['url']}")

# Save to file
with open("amazon_page.html", "w", encoding="utf-8") as f:
    f.write(html_content)
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const url = "https://real-time-amazon-data-the-most-complete.p.rapidapi.com/amazon/download";

const params = new URLSearchParams({
  url: "https://www.amazon.com/dp/B0BSHF7WHW",
  language: "en_US"
});

const response = await fetch(`${url}?${params}`, {
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "real-time-amazon-data-the-most-complete.p.rapidapi.com"
  }
});

const { data } = await response.json();
console.log(`Downloaded ${data.content_length} bytes from ${data.url}`);

// Use the HTML content
const htmlContent = data.content;
1
2
3
4
5
curl -G "https://real-time-amazon-data-the-most-complete.p.rapidapi.com/amazon/download" \
  --data-urlencode "url=https://www.amazon.com/dp/B0BSHF7WHW" \
  --data-urlencode "language=en_US" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: real-time-amazon-data-the-most-complete.p.rapidapi.com"