List the items in the Flipkart cart
Automatically list the items in the Flipkart cart on flipkart.com. List the items in the Flipkart India (flipkart.com) cart of this browser, as the site holds it: for each line its line id, product id, offer id (the seller's listing), name, seller, quantity, unit price and line price in Indian rupees (INR), plus the number of items and the total amount Flipkart shows (it includes the platform fee). The cart is the guest cart of the browser, so no sign-in is needed. Only the main Flipkart cart is read, not the Flipkart Minutes grocery cart. An empty cart returns an empty list, a zero count and a zero total.
Inputs
None
Output
count requiredNumber of items in the cart, all lines together.
lines requiredtotal requiredTotal amount Flipkart shows for the cart, in rupees, with the platform fee.
currency requiredFAQ
Get Flipkart product
Fetch one Flipkart India (flipkart.com) product by its id (the product_id of Search Flipkart products) or by its flipkart.com product link. Returns title, brand, url, price, list_price, currency, rating, rating_count, review_count, rating_breakdown, availability, seller (id, name, rating), flipkart_assured, category_path, image_url, images and the variant attributes of this product (for example its color). Prices are in Indian rupees (INR) as a visitor with no delivery address sees them; list_price is the struck-through maximum retail price. Bank and exchange offers are not included. An unknown id fails with an error that says so.
Search Flipkart products
Search Flipkart India (flipkart.com) by free-text query, with Flipkart's sort order, a price range in rupees and a brand filter. Returns one page of results: query, searched_query, page, total_results, total_pages, has_next_page and items (product_id, title, brand, url, price, list_price, currency, rating, rating_count, review_count, image_url, availability, flipkart_assured, sponsored). Prices are in Indian rupees (INR); price is the selling price the card shows, list_price the struck-through maximum retail price. Sponsored results are included and marked. When Flipkart finds no match for the query, it searches for a corrected or shorter query instead: searched_query says which. Other Flipkart filters (category-specific attributes, rating, discount, Flipkart Assured) are not offered.
Remove a product from the Flipkart cart
Remove a product from the Flipkart India (flipkart.com) cart of this browser, by offer id (one seller's listing, as List the items in the Flipkart cart gives it) or by product id (every line of that product). Returns whether something was removed and the whole cart afterwards: each line with its line id, product id, offer id, name, seller, quantity, unit price and line price in Indian rupees, the item count and the total amount. A product that is not in the cart gives removed false and changes nothing. Works as a guest, with no account.
