For the complete documentation index, see llms.txt. This page is also available as Markdown.

Etsy

Learn how to start scraping Etsy.

With Web Scraper API, you can scrape various types of Etsy pages; below is an overview of all supported scrapers and their respective source values. The response returns the page HTML in content, in the standard response structure described in Realtime and Push-Pull. Product pages can also be returned as structured data with parse: true, see Product.

Source
Description

etsy_search

Search page for a search term of your choice.

etsy_product

Product page of a product ID of your choice. Dedicated parser available.

Any other Etsy page can be scraped by passing its url alone, no source needed.

Besides the parameters listed below, you can include additional parameters such as user_agent_type, geo_location, render, and more to customize your scraping request. Read more here.

Request samples

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "etsy_search",
        "query": "earrings"
    }'
import requests
from pprint import pprint

# Structure payload.
payload = {
    'source': 'etsy_search',
    'query': 'earrings'
}

# Get response.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),
    json=payload
)

# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())

Request parameter values

Parameter
Description
Default Value

source

Sets the scraper.

etsy_search

query

The keyword or phrase to search for products.

-

start_page

Starting page number.

1

store_id

Optional shop-location filter, see Localization and Filtering.

-

- mandatory parameter

Product

Request samples

Request parameter values

Parameter
Description
Default Value

source

Sets the scraper.

etsy_product

product_id

The listing ID from the product page URL, e.g. etsy.com/listing/1858266469/freshwater-pearl-drop-earringsbridal.

-

parse

Returns parsed data when set to true. Explore the output data dictionary.

false

- mandatory parameter

Response example

A parsed product page for listing 1858266469:

Output data dictionary

The table below presents a detailed list of each product page element we parse, along with its description and data type. The table also includes some metadata.

Key
Description
Type

url

The URL of the Etsy product page.

string

price

The price of the product.

float

title

The title of the product.

string

images

Array of URLs to product images.

array

seller

The seller object, containing seller details (see below).

object

currency

The currency in which the price is denominated.

string

shipping

The shipping object, containing shipping details.

object

shipping.from

The origin country of shipping.

string

avg_price

The average price across the product variations.

float

min_price

The lowest price across the product variations.

float

max_price

The highest price across the product variations.

float

old_price

The previous price of the product before discount.

float

categories

Array of category objects to which the product belongs.

array

categories.title

The title of the category.

string

customized

Indicates whether the product can be customized.

boolean

product_id

The unique identifier for the product.

string

variation_count

The number of variations available for the product.

integer

parse_status_code

The status code of the parsing job. You can see the parser status codes described here.

integer

created_at

The timestamp when the scraping job was created.

timestamp

updated_at

The timestamp when the scraping job was finished.

timestamp

page

The page number in the pagination of results.

integer

status_code

The HTTP status code of the scraped page.

integer

parser_type

The type of parser used to extract the data.

string

job_id

The ID of the job associated with the scraping job.

string

Seller

Key (seller)
Description
Type

url

The URL of the seller's page.

string

title

The name of the seller.

string

rating

The rating score of the seller.

float

best_seller

Indicates whether the seller is a best seller.

boolean

star_seller

Indicates whether the seller is a star seller.

boolean

reviews_count

The number of reviews for the seller (optional).

integer

Localization and Filtering

On search pages Etsy shows prices in the currency and language of the visitor's country. Use geo_location with a country name to get results for that market, for example United Kingdom (British English, prices in £) or Germany (German, prices in €). Without geo_location, results are served for the United States (US $). ZIP codes are not supported as a geo_location value on Etsy. For accepted values, see Proxy location.

Parameter
Applies to
Description
Default

store_id

etsy_search

Shop-location filter, as an integer. Use the location ID that Etsy adds to the search URL as locationQuery when you choose a shop location on the site, e.g. 2635167 for the United Kingdom or 6252001 for the United States.

-

Last updated

Was this helpful?