Welcome to the API Playground
Experiment with MultiCart API and extract code samples in your preferred language. See the API Docs for more examples and Getting Started guides.https:/api/v1/request?api_key=FFE29732037C40108DF19A879212024A&domain=DOMAIN_NAME&asin=YOUR_ASIN&zipcode=YOUR_ZIPCODE;&type=amazon;
curl -L --get https://multicartapi.com/api/v1/request
-d api_key="FFE29732037C40108DF19A879212024A"
-d amazon_domain="YOUR_DOMAIN"
-d asin="YOUR_ASIN"
-d type="product"
const axios = require('axios');
// set up the request parameters
const params = {
api_key: "FFE29732037C40108DF19A879212024A",
amazon_domain: "DOMAIN_NAME",
asin: "YOUR_ASIN",
type: "product"
}
// make the http GET request to Multicartapi API
axios.get('https://multicartapi.com/api/v1/request', { params })
.then(response => {
// print the JSON response from Multicartapi API
console.log(JSON.stringify(response.data, 0, 2));
}).catch(error => {
// catch and print the error
console.log(error);
})
import requests
import json
# Set up the request parameters
params = {
"api_key":"FFE29732037C40108DF19A879212024A",
"amazon_domain": "DOMAIN_NAME",
"asin": "YOUR_ASIN",
"type": "product"
}
# Make the HTTP GET request to Multicartapi API
try:
response = requests.get("https://multicartapi.com/api/v1/request", params=params)
response.raise_for_status() # Raise an HTTPError for bad responses
# Print the JSON response from Multicartapi API
print(json.dumps(response.json(), indent=2))
except requests.exceptions.RequestException as e:
# Catch and print the error
print(f"An error occurred: {e}")
<?php
// Set up the request parameters
$params = [
'api_key' => "FFE29732037C40108DF19A879212024A",
'amazon_domain' => "DOMAIN_NAME",
'asin' => "YOUR_ASIN",
'type' => 'product'
];
// Construct the URL with query parameters
$api_url = "https://multicartapi.com/api/v1/request";
// Initialize cURL
$curl = curl_init();
// Set cURL options
curl_setopt_array($curl, [
CURLOPT_URL => $api_url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPGET => true,
]);
// Execute the request
$response = curl_exec($curl);
// Check for cURL errors
if (curl_errno($curl)) {
echo 'cURL error: ' . curl_error($curl);
} else {
// Decode and print the JSON response
$response_data = json_decode($response, true);
echo json_encode($response_data, JSON_PRETTY_PRINT);
}
// Close the cURL session
curl_close($curl);
?>
https:/api/v1/request?api_key=FFE29732037C40108DF19A879212024A&domain=DOMAIN_NAME&asin=YOUR_ASIN&zipcode=YOUR_ZIPCODE;&type=amazon;
curl -L --get https://multicartapi.com/api/v1/request
-d api_key="FFE29732037C40108DF19A879212024A"
-d amazon_domain="YOUR_DOMAIN"
-d asin="YOUR_ASIN"
-d type="product"
const axios = require('axios');
// set up the request parameters
const params = {
api_key: "FFE29732037C40108DF19A879212024A",
amazon_domain: "DOMAIN_NAME",
asin: "YOUR_ASIN",
type: "product"
}
// make the http GET request to Multicartapi API
axios.get('https://multicartapi.com/api/v1/request', { params })
.then(response => {
// print the JSON response from Multicartapi API
console.log(JSON.stringify(response.data, 0, 2));
}).catch(error => {
// catch and print the error
console.log(error);
})
import requests
import json
# Set up the request parameters
params = {
"api_key":"FFE29732037C40108DF19A879212024A",
"amazon_domain": "DOMAIN_NAME",
"asin": "YOUR_ASIN",
"type": "product"
}
# Make the HTTP GET request to Multicartapi API
try:
response = requests.get("https://multicartapi.com/api/v1/request", params=params)
response.raise_for_status() # Raise an HTTPError for bad responses
# Print the JSON response from Multicartapi API
print(json.dumps(response.json(), indent=2))
except requests.exceptions.RequestException as e:
# Catch and print the error
print(f"An error occurred: {e}")
<?php
// Set up the request parameters
$params = [
'api_key' => "FFE29732037C40108DF19A879212024A",
'amazon_domain' => "DOMAIN_NAME",
'asin' => "YOUR_ASIN",
'type' => 'product'
];
// Construct the URL with query parameters
$api_url = "https://multicartapi.com/api/v1/request";
// Initialize cURL
$curl = curl_init();
// Set cURL options
curl_setopt_array($curl, [
CURLOPT_URL => $api_url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPGET => true,
]);
// Execute the request
$response = curl_exec($curl);
// Check for cURL errors
if (curl_errno($curl)) {
echo 'cURL error: ' . curl_error($curl);
} else {
// Decode and print the JSON response
$response_data = json_decode($response, true);
echo json_encode($response_data, JSON_PRETTY_PRINT);
}
// Close the cURL session
curl_close($curl);
?>