{
  "openapi": "3.0.1",
  "info": {
    "title": "Etsy Search Listings: In-Cart, Sold-24h & Niche Summary",
    "description": "Search Etsy by keyword: each listing's exact in-cart count, bought-in-last-24-hours count, favorites, price, ad flag and the shop's total sales, to see if a niche is selling. Optional one-row niche summary. $0.0015 per listing, $0.003 more with full details, $0.01 per summary.",
    "version": "0.0",
    "x-build-id": "3g7h1SNJPDPeos7zS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~etsy-search-listings-in-cart-sold-counts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-etsy-search-listings-in-cart-sold-counts",
        "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/scrapebench~etsy-search-listings-in-cart-sold-counts/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-etsy-search-listings-in-cart-sold-counts",
        "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/scrapebench~etsy-search-listings-in-cart-sold-counts/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-etsy-search-listings-in-cart-sold-counts",
        "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": {
          "queries": {
            "title": "Search words",
            "type": "array",
            "description": "Search words as you would type them on Etsy, one search each (for example ceramic mug). Prefer this over 'query'. Each search returns up to maxResults listings; Etsy lists at most about 1,290 results per search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search word",
            "type": "string",
            "description": "One search, same as 'queries'. Prefer 'queries' (many per run); this one is kept for saved tasks and is added to the list."
          },
          "maxResults": {
            "title": "Maximum results (per search)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on listings returned PER search word. Each listing is billed $0.0015 ($1.50 per 1,000), plus $0.003 more with Include details; notices are free. The default 20 costs $0.03 per search. Above 1,000 the search is re-run in price bands to go past Etsy's limit.",
            "default": 20
          },
          "includeSummary": {
            "title": "Include niche summary",
            "type": "boolean",
            "description": "Add one summary row per search word after its listings: listings read, share with items in carts, median in-cart count, share bought in the last 24 hours, ad share, price quartiles, top tags and shops. Billed $0.01 per search word.",
            "default": false
          },
          "summaryOnly": {
            "title": "Summary only",
            "type": "boolean",
            "description": "Return only the niche summary row per search word, no listing rows. The listings are still read (up to maxResults, the sample size) and are not billed; $0.01 per search word. Use it to answer 'is this niche selling?' with one small row.",
            "default": false
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Add tags, materials, description, images, variations, category path, shipping, returns, video link and every other label Etsy shows, to each listing row. Billed $0.003 more per listing.",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "price-low-to-high",
              "price-high-to-low",
              "newest"
            ],
            "type": "string",
            "description": "relevance (default, Etsy's own order), price-low-to-high, price-high-to-low or newest. Etsy applies the order before it cuts the list, so it changes which listings come back.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only listings priced at least this many US dollars. Etsy applies it before it cuts the list, so it changes how many listings match. Empty = no minimum."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only listings priced at most this many US dollars. Applied by Etsy before it cuts the list. Empty = no maximum."
          },
          "freeShipping": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only listings that ship free. Applied by Etsy before it cuts the list, so it changes how many listings match.",
            "default": false
          },
          "starSellerOnly": {
            "title": "Star Sellers only",
            "type": "boolean",
            "description": "Only listings from Etsy Star Sellers. Applied by Etsy before it cuts the list, so it changes how many listings match.",
            "default": false
          },
          "bestSellerOnly": {
            "title": "Bestsellers only",
            "type": "boolean",
            "description": "Only listings that carry Etsy's Bestseller flag. Etsy cannot filter a search by it, so each listing is read to check: up to 8 times maxResults are read (not billed) to find them.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Off by default: Etsy's app API answered plain requests from an Apify datacenter in testing. Switch an Apify proxy on only if a run reports the source as blocked."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}