Blog / API guides

Etsy Scraper or API: What You Get

An Etsy scraper is code that loads listing pages and pulls out the price, discount, stock, variations and favorites count, then keeps doing that as the pages change. The alternative is one endpoint, GET /v1/etsy/product, that returns those fields as JSON for 10 credits per successful call. Because every listing you track costs 10 credits per check, the answer depends on how many listings you watch and how often. This post compares both on a recorded listing and works out where each one wins.

What does an Etsy scraper have to fetch, parse and maintain?

An Etsy scraper for listing data is a fetcher, a parser and a monitor. The fetcher requests each listing page on a schedule. The parser finds the title, current and original price, discount, stock count, variation options, materials, images and favorites count in whatever the page returns. The monitor notices when a run quietly returns empty prices or fewer variations than yesterday, because a broken parser rarely raises an error.

Listing pages on a handmade marketplace carry more structure than a plain product page. A single listing can have several variation groups, such as a colour and an engraving option, each with its own option labels and IDs. A sale shows two prices and a percentage, and you have to decide which number is the price you store. Stock can be a count, a status, or both. Each of these is a parsing rule you write and then repair when the page layout moves.

The fetcher has its own upkeep. Request pacing, retries with backoff, and handling slow or challenge responses are ongoing work at any real volume. Store the currency with every price, because a change in where or how you fetch can change the currency you parse. Read Etsy's terms before you build a collector, and if your traffic gets blocked or challenged, stop rather than work around it with rotating proxies or CAPTCHA solvers.

None of this is hard to write once. The cost is keeping it correct every day for as long as you track prices, which is the same trade-off covered for other marketplaces in AliExpress Scraper or API and Vinted Scraper or API.

What does the Etsy product endpoint return?

The Etsy API on Perceptlayer has one endpoint, GET /v1/etsy/product, at 10 credits per successful call. It takes two optional parameters: listing_id (a string) and url (a string of up to 500 characters). One call returns one listing with named fields for title, description, category, a price object, availability, stock quantity, images, materials, variations, shipping origin, the shop, favorites count and a listed date.

Parameter Type Notes from the reference
listing_id string Optional. The recorded call used 1241528786.
url string Optional. Up to 500 characters.

This is the recorded request:

curl "https://api.perceptlayer.com/v1/etsy/product?listing_id=1241528786" \
  -H "X-API-Key: $API_KEY"

And this is the recorded response, trimmed. The shop's name and URL are cut; keep the shop id if you need a key to group listings.

{
  "success": true,
  "data": {
    "listing_id": "1241528786",
    "url": "https://www.etsy.com/listing/1241528786/personalized-leather-rfid-wallet",
    "title": "Personalized Leather RFID Wallet, Engraved Genuine Leather Custom Wallet, …",
    "category": [
      "Wallets"
    ],
    "price": {
      "current": 28,
      "original": 70,
      "discount_percent": 60,
      "currency": "USD"
    },
    "availability": "InStock",
    "quantity_available": 1333,
    "rating": {},
    "images": [
      {
        "url": "https://i.etsystatic.com/35016605/r/il/a5f633/4007318605/il_fullxfull.4007318605_mj36.jpg",
        "thumbnail": "https://i.etsystatic.com/35016605/r/il/a5f633/4007318605/il_340x270.4007318605_mj36.jpg"
      },
      …
    ],
    "materials": [
      "Leather",
      "Nylon"
    ],
    "variations": [
      {
        "name": "Engraving Side",
        "options": [
          {
            "id": "2705057689",
            "label": "No Engraving"
          },
          …
        ]
      },
      {
        "name": "Color",
        "options": [
          {
            "id": "2682504516",
            "label": "Light Brown"
          },
          …
        ]
      }
    ],
    "shipping": {
      "origin_country": "US"
    },
    "shop": {
      "id": "35016605",
      …
    },
    "favorites_count": 19378,
    "listed_on": "2026-11-12"
  },
  "meta": {
    "endpoint_family": "etsy-listing",
    "attempts": 1,
    …
    "credits_charged": 10,
    …
  }
}

Which fields replace which parsing rules?

Four groups of fields map to the parsing rules a scraper would need. The price object separates current, original and discount_percent, so a sale doesn't have to be inferred from two numbers on a page. quantity_available and availability give stock as a count and a status. variations lists each group by name with option id and label pairs. favorites_count is a demand signal you can track over time.

Two details are worth handling in code. The recorded rating is an empty object, so treat rating fields as optional and don't assume a listing has one. And the meta block reports credits_charged: 10, which lets you log what each check cost next to the data it returned. The X-Credits-Used and X-Credits-Remaining headers carry the same information on every successful response.

A daily price check in Python

This script reads a list of listing IDs, calls the endpoint once per listing and appends one row per listing to a CSV file. It reads only fields that appear in the recorded response and skips a listing when a call fails.

import csv
import datetime
import os

import requests

API = "https://api.perceptlayer.com/v1/etsy/product"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
LISTINGS = ["1241528786"]

today = datetime.date.today().isoformat()
with open("etsy_prices.csv", "a", newline="") as f:
    writer = csv.writer(f)
    for listing_id in LISTINGS:
        r = requests.get(API, headers=HEADERS, params={"listing_id": listing_id}, timeout=60)
        if r.status_code != 200:
            print(listing_id, r.status_code, r.json().get("error", {}).get("code"))
            continue
        d = r.json()["data"]
        price = d.get("price", {})
        writer.writerow([
            today,
            d["listing_id"],
            price.get("current"),
            price.get("original"),
            price.get("discount_percent"),
            price.get("currency"),
            d.get("quantity_available"),
            d.get("favorites_count"),
        ])

A failed call returns an HTTP status and a JSON error with a code, and costs 0 credits, so the script logs it and moves on. The errors docs list every code.

How do a scraper and the endpoint compare?

A scraper trades per-call cost for engineering time and the risk of blocks and breakage; the endpoint trades upkeep for 10 credits per listing per check. The table compares them for a recurring job: checking a fixed set of Etsy listings for price, discount and stock changes.

DIY Etsy scraper GET /v1/etsy/product
Setup Fetcher, page parser, storage, monitoring API key in the X-API-Key header
Input Listing URLs you collect listing_id or url you collect
Price and sale Parse two prices and a label, decide which is current price.current, price.original, price.discount_percent, price.currency
Stock Parse a count or status if shown quantity_available and availability
Variations Parse each option group variations[].name with options[].id and label
When the page changes Your parser breaks and you fix it You read named JSON fields
Blocks and challenges Yours to handle Not yours; a failed call returns an error code and costs 0
Speed As fast as you can fetch without being blocked 1 request a second free, at least 5 a second paid
Cost Hosting and your time, roughly flat per listing 10 credits per successful call, linear per listing
Discovery Whatever pages you crawl None: one endpoint, no search

The last row matters. The endpoint looks up listings you already know; it doesn't search or browse categories. If your job starts with "find every listing for leather wallets", you need another source of listing URLs first.

What does tracking one Etsy listing cost?

Every check of one listing is one call at 10 credits, so the cost per item tracked is 10 credits per check, and the monthly bill is listings × checks × 10. There's no per-page batching to lower it. The worked examples below use 30-day months and the pack sizes from pricing.

Job Arithmetic Credits Fits in
Try it on your own listings 10 calls × 10 credits 100 The 100 free signup credits
200 listings, weekly 200 × 4 weeks × 10 8,000 a month Starter pack, 10,000
50 listings, daily 50 × 30 × 10 15,000 a month Build pack, 50,000
500 listings, daily 500 × 30 × 10 150,000 a month Growth pack, 200,000
10,000 listings, daily 10,000 × 30 × 10 3,000,000 a month Volume pack, 5,000,000

Rate limits set how long a run takes. At the free rate of 1 request a second, 50 listings take under a minute. At the paid minimum of 5 a second, 10,000 listings take about 33 minutes. The rate limits docs list the rate each pack includes, and the credits docs explain how credits are debited. Purchased credits last 12 months, so a weekly job doesn't have to use a pack within a month.

Which should you choose for your use case?

Choose by how many listings you track and how often, because at 10 credits a check that decides whether credits or upkeep costs more. For a handful of listings checked by hand, a browser is enough and neither route is worth building. For anything recurring, the verdicts below apply.

  • Watching competitors' prices and sales on a few hundred listings: use the endpoint. Store price.current, price.original, discount_percent and the date. 200 listings weekly is 8,000 credits a month.
  • Tracking stock or demand on bestsellers: use the endpoint and store quantity_available and favorites_count per check, so you can chart them over time.
  • Building a product catalogue with variations and materials: use the endpoint once per listing, then re-check only the ones you sell against. variations and materials come back as lists, not text to parse.
  • Discovering listings across a whole category: neither route alone. The endpoint has no search, and a crawler that discovers listings is a bigger job than a price checker. Start from listing URLs you already have.
  • Daily checks on tens of thousands of listings: price it both ways. 10,000 daily checks is 3,000,000 credits a month. If you can run a scraper within the site's terms and maintain it, it may cost less at that scale.
  • An agent answering questions about one listing: give it the endpoint through the MCP server, as the AI agents docs describe. Each lookup costs 10 credits and only on success.

To see the fields on a listing you care about, run product with its listing_id in the playground on the Etsy API page, then get a free API key for the scripted version. The Marketplaces APIs page lists the other marketplace sources, and the Etsy product endpoint page has the parameter reference.

APIs in this post

Frequently asked questions

How much does an Etsy API call cost?

GET /v1/etsy/product costs 10 credits per successful call, and one call returns one listing. A failed call costs nothing and returns X-Credits-Used: 0. The 100 free credits you get once on signup cover 10 listing lookups. Checking 50 listings daily for 30 days is 15,000 credits, inside the Build pack's 50,000.

Can I search Etsy listings with this API?

No. The Etsy API has one endpoint, product, which takes a listing_id or a url and returns that one listing. It doesn't search, browse categories or list a shop's items. You need the listing IDs or URLs from your own records or another source before you call it.

Which price fields does the response include?

The price object has current, original, discount_percent and currency. In the recorded listing they were 28, 70, 60 and USD, so a sale shows up as a gap between current and original. Store currency with every price so values from different checks stay comparable.

Is scraping Etsy allowed?

That depends on Etsy's terms, how you collect and use the data, and the law where you operate, so read the terms and get legal advice for commercial use. Don't get around blocks or challenges. Listing facts such as price and stock are lower risk than personal data; leave shop owners' and buyers' personal details out of what you keep.

Why is the rating object empty in the response?

In the recorded call, rating came back as {} for a listing with 19,378 favorites, so a listing can return no rating values. Treat any rating field as optional in your code, check for its presence before reading it, and don't treat an empty object as a zero rating.

  1. Etsy API: Product Data as JSON

    One GET to /v1/etsy/product returns an Etsy listing's price, discount, stock, variations and images as JSON, at 10 credits per successful call.

  2. Amazon Scraper or API: Search, Offers and Reviews

    An Amazon scraper vs 18 endpoints at 1 credit a call: a recorded laptop stand search with asin, price.amount and rating, and the domains each call takes.

  3. AliExpress Scraper or API: What You Get

    An AliExpress scraper vs 1-credit endpoints: a recorded search with 60 products a page, price.amount, sold_count and is_sponsored, and cost per product.

Start with 100 free credits

No password to set. We email you a sign-in link, and your key works on every API.

No credit card. 100 free credits on signup.