Flipkart Product API
The Flipkart Product API allows businesses to extract data from Flipkart Product Pages in real-time.
Here is the list of default parameters you can use with this API:
Parameters
Description
api_key
required
This is your API key.
url
required
Type: String
The Flipkart Product URL.
API Example:
cURL "https://api.ecommerceapi.io/flipkart_product?api_key=APIKEY&url=https://www.flipkart.com/zebronics-envy-2-zeb-whp-5-wireless-gaming-over-ear-65h-playback-detatchable-mic-bluetooth/p/itm8c86253279850"
const axios = require('axios');
axios.get('https://api.ecommerceapi.io/flipkart_product?api_key=APIKEY&url=https://www.flipkart.com/zebronics-envy-2-zeb-whp-5-wireless-gaming-over-ear-65h-playback-detatchable-mic-bluetooth/p/itm8c86253279850')
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});
import requests
payload = {'api_key': 'APIKEY', 'url':'https://www.flipkart.com/zebronics-envy-2-zeb-whp-5-wireless-gaming-over-ear-65h-playback-detatchable-mic-bluetooth/p/itm8c86253279850'}
resp = requests.get('https://api.ecommerceapi.io/flipkart_product', params=payload)
print (resp.text)
try {
String url = "https://api.ecommerceapi.io/flipkart_product?api_key=APIKEY&url=https://www.flipkart.com/zebronics-envy-2-zeb-whp-5-wireless-gaming-over-ear-65h-playback-detatchable-mic-bluetooth/p/itm8c86253279850";
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
conection.setRequestMethod("GET");
int responseCode = conection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
StringBuffer response = new StringBuffer();
while ((readLine = in.readLine()) != null) {
response.append(readLine);
}
in.close();
System.out.println(response.toString());
} else {
throw new Exception("Error in API Call");
}
} catch (Exception ex) {
ex.printStackTrace();
}
require 'net/http'
require 'json'
params = {
:api_key => "APIKEY",
:q=> "https://www.flipkart.com/zebronics-envy-2-zeb-whp-5-wireless-gaming-over-ear-65h-playback-detatchable-mic-bluetooth/p/itm8c86253279850"
}
uri = URI('https://api.ecommerceapi.io/flipkart_product')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)
<?php
$url = "https://api.ecommerceapi.io/flipkart_product?api_key=APIKEY&url=https://www.flipkart.com/zebronics-envy-2-zeb-whp-5-wireless-gaming-over-ear-65h-playback-detatchable-mic-bluetooth/p/itm8c86253279850";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
API Response:
{
"title": "ZEBRONICS Envy 2 (ZEB-WHP 5) Wireless Gaming Over-Ear, 65H Playback, With Detatchable Mic Bluetooth (Black, On the Ear)",
"description": "These ZEB-Envy 2 wireless headphones deliver exceptional sound and come with a detachable mic to help you talk freely while you are playing a game. It also has an ENC function that cancels out other background noises when you’re speaking over a call or in a meeting, for maximum voice clarity. In addition to incredible audio, these headphones also deliver greater playtime of up to 65 hours, seamless connectivity, easy wired connection, ENC-enabled calling function through Siri or Google Assistant, and extended comfort because of their design. ",
"price": "₹1,699",
"last_price": "₹3,299",
"discount": "48% off",
"available_offers": [
"5% Unlimited Cashback on Flipkart Axis Bank Credit CardT&C",
"10% off up to ₹750 on HDFC Bank Credit Card EMI on 3 months tenure. Min. Txn Value: ₹5000T&C",
"10% off up to ₹1,200 on HDFC Bank Credit Card EMI on 6 and 9 months tenure. Min Txn Value: ₹5000T&C",
"Special PriceGet extra 48% off (price inclusive of cashback/coupon)T&C"
],
"delivery_date": "",
"colors": [
{
"color": "Black",
"link": "https://www.flipkart.com/zebronics-envy-2-zeb-whp-5-wireless-gaming-over-ear-65h-playback-detatchable-mic-bluetooth/p/itm8c86253279850?pid=ACCH5JQKU6MZESCD&lid=LSTACCH5JQKU6MZESCDTPRGVH&marketplace=FLIPKART&sattr[]=color&st=color",
"thumbnail": "https://rukminim2.flixcart.com/image/144/144/xif0q/headphone/a/u/m/zeb-2-zeb-whp-5-zebronics-original-imah7pb3gj9guhzx.jpeg?q=50"
},
{
"color": "White",
"link": "https://www.flipkart.com/zebronics-envy-2-zeb-whp-5-wireless-gaming-over-ear-65h-playback-detatchable-mic-bluetooth/p/itm0bc2d2acac08a?pid=ACCH5JRFNHAFEVPZ&lid=LSTACCH5JRFNHAFEVPZHKO046&marketplace=FLIPKART&sattr[]=color&st=color",
"thumbnail": "https://rukminim2.flixcart.com/image/144/144/xif0q/headphone/x/w/l/zeb-2-zeb-whp-5-zebronics-original-imah7pb4e7rxyc9z.jpeg?q=50"
}
],
"highlights": [
"With Mic:Yes",
"Bluetooth version: 5.3",
"Charging time: 1.5 h"
],
"seller": "BUZZINDIA",
"specifications": {
"Model ID": "ZEB-2 (ZEB-WHP 5)",
"Color": "Black",
"Headphone Type": "On the Ear",
"Inline Remote": "No",
"Sales Package": "1 headphone",
"Connectivity": "Bluetooth",
"Headphone Design": "Over the Head",
"Compatible Devices": "Mobile, Tablet",
"Deep Bass": "No",
"With Microphone": "Yes",
"Impedance": "32 ohm",
"Bluetooth Version": "5.3",
"Charging Time": "1.5 h",
"Play Time": "65 hr",
"Weight": "238",
"Warranty Summary": "1 year carry into service center",
"Covered in Warranty": "Any manufacturing defect",
"Not Covered in Warranty": "Any physical damage or accessories"
},
"rating": "4.3",
"total_ratings": "39 Ratings 8 Reviews39 Ratings",
"total_reviews": "8 Reviews"
}
Last updated