{
  "openapi": "3.0.1",
  "info": {
    "title": "Etsy Scraper",
    "description": "Etsy scraper and SEO keyword tool: search Etsy by keyword or category and get one row per listing with price, discount, shipping, badges and shop rating. Add listing pages, shop profiles, shop listings, reviews and Etsy's own keyword suggestions.",
    "version": "0.1",
    "x-build-id": "whcbPTyFZY9Ym7Rp1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~etsy-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-etsy-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/dami_studio~etsy-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-etsy-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/dami_studio~etsy-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-etsy-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search Etsy for",
            "type": "array",
            "description": "Words to search Etsy for, one per line, typed the way a shopper would: \"linen apron\", \"ceramic mug\". Short phrases find the most; a whole listing title usually finds little. Each search comes back as listing rows, best match first unless you pick another order below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Etsy links",
            "type": "array",
            "description": "Etsy links, one per line: a search or keyword page (etsy.com/search?q=..., etsy.com/market/...), a category page (etsy.com/c/...), a listing, or a shop. A listing id on its own works too. Filters already in a link are kept.",
            "items": {
              "type": "string"
            }
          },
          "shopNames": {
            "title": "Shops",
            "type": "array",
            "description": "Shop names or shop links, one per line. Each shop gives one row with its profile: sales, admirers, rating, location, sections, policies and more. Turn on the options further down to add its listings and reviews.",
            "items": {
              "type": "string"
            }
          },
          "keywordSeeds": {
            "title": "Keyword suggestions for",
            "type": "array",
            "description": "Seed words for Etsy's own search suggestions, one per line. Each seed gives the phrases Etsy suggests while a shopper types it, one row per phrase.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerQuery": {
            "title": "Listings per search or category",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most listings to return for each search, keyword page or category link. Etsy shows about 60 listings a page, so 60 is one page.",
            "default": 60
          },
          "maxItems": {
            "title": "Rows in the whole run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Most rows the run returns, all kinds counted (listings, shops, reviews, keywords). It stops there, and you are charged only for rows returned.",
            "default": 1000
          },
          "sort": {
            "title": "Order",
            "enum": [
              "relevance",
              "price_low",
              "price_high",
              "newest",
              "top_reviews"
            ],
            "type": "string",
            "description": "How Etsy orders search and category results.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Lowest price",
            "minimum": 0,
            "type": "number",
            "description": "Only listings at this price or above, in US dollars. Leave empty for no lower limit."
          },
          "maxPrice": {
            "title": "Highest price",
            "minimum": 0,
            "type": "number",
            "description": "Only listings at this price or below, in US dollars. Leave empty for no upper limit."
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only listings that ship free to the United States.",
            "default": false
          },
          "onSaleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Only listings that are discounted right now.",
            "default": false
          },
          "starSellerOnly": {
            "title": "Star Seller shops only",
            "type": "boolean",
            "description": "Only listings from shops with Etsy's Star Seller badge.",
            "default": false
          },
          "personalizableOnly": {
            "title": "Personalizable only",
            "type": "boolean",
            "description": "Only listings the buyer can personalize.",
            "default": false
          },
          "digitalOnly": {
            "title": "Digital downloads only",
            "type": "boolean",
            "description": "Only digital downloads: printables, patterns, SVG files and the like.",
            "default": false
          },
          "physicalOnly": {
            "title": "Physical items only",
            "type": "boolean",
            "description": "Leave digital downloads out.",
            "default": false
          },
          "itemType": {
            "title": "Item type",
            "enum": [
              "vintage",
              "handmade"
            ],
            "type": "string",
            "description": "Vintage keeps only the listings Etsy files as vintage. Handmade keeps only listings made by the shop that sells them, the same as ticking Handmade only on Etsy. Either one narrows searches and search links. Category links can't be narrowed this way, so a run with both is refused before anything is read. Leave empty for every kind of item."
          },
          "shipsTo": {
            "title": "Ships to",
            "type": "string",
            "description": "Only listings that ship to this country, as a two-letter code: GB, DE, CA. Leave empty for no limit."
          },
          "shopLocation": {
            "title": "Shop country",
            "enum": [
              "US",
              "GB",
              "CA",
              "AU",
              "DE",
              "FR",
              "IT",
              "ES",
              "NL",
              "IE",
              "IN",
              "JP",
              "BR",
              "MX",
              "NZ",
              "PL",
              "TR",
              "PT",
              "SE",
              "GR",
              "UA",
              "RO",
              "CZ",
              "DK",
              "FI",
              "NO",
              "BE",
              "AT",
              "CH",
              "CN",
              "HK",
              "ZA",
              "SG",
              "IL",
              "KR",
              "TH",
              "VN",
              "PH",
              "ID",
              "LT",
              "LV",
              "EE",
              "BG",
              "HU",
              "SK",
              "SI",
              "HR",
              "AR",
              "CL",
              "CO"
            ],
            "type": "string",
            "description": "Only listings from shops based in this country."
          },
          "includeAds": {
            "title": "Keep sponsored listings",
            "type": "boolean",
            "description": "Etsy mixes paid placements into its results. They come back with isAd set to true; turn this off to leave them out.",
            "default": true
          },
          "dedupeAcrossQueries": {
            "title": "Each listing once",
            "type": "boolean",
            "description": "When several searches find the same listing, return it only the first time. Turn off to keep it under every search that found it.",
            "default": true
          },
          "includeKeywords": {
            "title": "Title must contain",
            "type": "array",
            "description": "Keep only listings whose title contains at least one of these words. Others are left out and not charged.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Title must not contain",
            "type": "array",
            "description": "Leave out listings whose title contains any of these words, for example SVG or PDF. They are not charged.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Listing page details",
            "type": "boolean",
            "description": "Open each listing's own page and add what is on it: the description, its photos and video, variations, stock, cart and favorite counts, the item's own rating, where it ships from, the delivery estimate, returns, and the shop's name, location, sales and badges. Charged as an extra on top of each listing, and slower.",
            "default": false
          },
          "includeReviews": {
            "title": "Reviews",
            "type": "boolean",
            "description": "Add review rows: the reviews shown on each listing page this run opens (listing links, or searches with listing page details on), and each shop's reviews page by page.",
            "default": false
          },
          "maxReviewsPerItem": {
            "title": "Reviews per listing or shop",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Most reviews to return for each listing or shop.",
            "default": 20
          },
          "reviewRating": {
            "title": "Only reviews with this many stars",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "1 to 5. Leave empty for every review."
          },
          "includeShopListings": {
            "title": "Each shop's listings",
            "type": "boolean",
            "description": "For each shop, also return its listings, page by page, one row each.",
            "default": false
          },
          "maxListingsPerShop": {
            "title": "Listings per shop",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most listings to return for each shop.",
            "default": 100
          },
          "shopListingsQuery": {
            "title": "Search inside the shops",
            "type": "string",
            "description": "Only the shop listings that match these words, for example \"necklace\". Leave empty for all of them."
          },
          "requireEtsySortAndType": {
            "title": "Only pages Etsy sorted and narrowed itself",
            "type": "boolean",
            "description": "Ends a search or category with a free NOT_SERVED note instead of rows when Etsy's own page isn't in the price order you picked under Order, or isn't narrowed to the Item type you picked. Nothing from it is charged. Off by default, and then those rows come back in the price order you picked.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}