+Lenskart API
Get Lenskart eyeglasses and sunglasses with prices, frame specs and ratings as clean JSON.
The API.SH Lenskart API turns public Lenskart.com pages in India into structured JSON. List a category of eyeglasses, sunglasses or one of their sub-collections to get product names, links, price, MRP, discount, rating, frame size, shape, colour and images (the first page of the listing). Then open a product for its price, rating with review breakdown, frame specifications, images and colour options.
- 2 endpoints
- from $1 / 1,000 calls
- 1,000 free credits / month
- failed calls free
GET https://api.api.sh/lenskart/v1/ search
{ "success": true } What you can build with the Lenskart API
Eyewear price and discount tracking
Check a category listing on a schedule and record price, MRP and discount for each frame to follow Lenskart's pricing and sales.
Frame catalog analysis
Compare frame size, shape and colour across a collection's listing to see what styles Lenskart puts first and at what prices.
Ratings and review breakdown
Open products to read the rating and its review breakdown, and track how customer ratings change for frames you sell or compete with.
Product specs for comparison sites
Pull frame specifications, colour options and images for a product to list it on an eyewear comparison or deals site.
Lenskart data you get
Field names from real responses. Numbers come parsed, URLs absolute, dates in ISO 8601.
Lenskart API endpoints and prices
Every Lenskart endpoint costs 1 credit per call: credits are $1 per 1,000 on a monthly plan, $2 pay-as-you-go. Pricing
| Lenskart search /lenskart/ | $1 · $2 PAYG 1 credit |
| Lenskart product /lenskart/ | $1 · $2 PAYG 1 credit |
Call the Lenskart API
Lenskart search: GET https://api.api.sh/lenskart/
curl "https://api.api.sh/lenskart/v1/search?q=sunglasses" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/lenskart/v1/search",
params={"q": "sunglasses"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/lenskart/v1/search");
url.searchParams.set("q", "sunglasses");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); # Google Sheets (API.SH add-on)
=APISH("/lenskart/v1/search", "q", "sunglasses")
# Zapier, Make, n8n (verified node): pick the API.SH app,
# choose "Lenskart" and "Lenskart search".
# AI agents (Claude, ChatGPT, Cursor): add the
# API.SH MCP server https://api.sh/mcp - Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
- Create an API keyOne key works for all 482 platforms.
- Send the requestJSON back in one call. Add
output=csvoroutput=ndjsonfor files.
Why API.SH for Lenskart data
- Public data only: no Lenskart login, cookies or account needed
- One key and one response shape for Lenskart and 481 other platforms
- Built and maintained by API.SH, not third-party publishers
- Pay per call; errors on our side cost nothing
- Live status for every endpoint
API.SH vs the official Lenskart API
Lenskart does not offer a public API for its catalog or prices; search results for a Lenskart API are about its smart glasses, not data access. API.SH reads Lenskart's public product pages and returns them as JSON.
Skip writing your own Lenskart scraper or hiring a scraping service: API.SH gives you category and product data with one key and a fixed price per call.
Lenskart API questions
What Lenskart data can I get?+
Category listings for eyeglasses, sunglasses and sub-collections with name, link, price, MRP, discount, rating, frame size, shape, colour and images (/lenskart/v1/search), and one product with rating breakdown, frame specifications, images and colour options (/lenskart/v1/product).
How much does the Lenskart API cost?+
Every Lenskart endpoint costs 1 credit per call. On a monthly plan 1,000 credits cost $1 (Starter is $50/month for 50,000 credits). Pay-as-you-go is $2 per 1,000 credits, with top-ups from $15 that never expire.
Is there a free trial?+
Yes. Every account gets 1,000 free credits every month. That is 1,000 calls to /lenskart/v1/product at 1 credit each.
Is there an official Lenskart API?+
No public one for product data. Lenskart's developer news is about its smart glasses platform. API.SH reads Lenskart's public catalog pages instead.
Do I need a Lenskart account or login?+
No. API.SH reads public Lenskart pages only. No endpoint logs in, books a home trial or places orders.
Is there a free Lenskart API?+
API.SH is paid per call, but every account gets 1,000 free credits every month, enough to test category listings and product lookups before you pay.
Does search return every product in a category?+
No. The search route returns the first page of a category listing. To get a specific product, call /lenskart/v1/product with its url, path or a search query.
How do I get started?+
1. Sign up at api.sh. 2. Copy your API key. 3. Call /lenskart/v1/search with category set to eyeglasses or sunglasses. Request examples and every parameter are in the docs at https://api.sh/docs. You can also use the JS or Python SDK, Google Sheets, Zapier, Make, n8n or the MCP server at https://api.sh/mcp.