{
  "openapi": "3.0.1",
  "info": {
    "title": "Gumroad Scraper: products and prices at $1 per 1,000",
    "description": "Scrape Gumroad Discover, categories, tags, storefronts and product pages: name, price, USD price, rating, seller, type, link; optional description, sales count, variants. Price, rating and file-type filters, only-new mode. $1.00 per 1,000 products, first 25 free.",
    "version": "0.0",
    "x-build-id": "5svOfJlPJKdEMiott"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/daedal_quintuplet~gumroad-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-daedal_quintuplet-gumroad-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/daedal_quintuplet~gumroad-scraper/runs": {
      "post": {
        "operationId": "runs-sync-daedal_quintuplet-gumroad-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/daedal_quintuplet~gumroad-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-daedal_quintuplet-gumroad-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 terms",
            "type": "array",
            "description": "Words to search in Gumroad Discover, one search per entry, as you would type them in Gumroad's search box. Each search returns matching products page by page (36 per page) until the results or your limits run out. Example: [\"notion template\", \"lightroom presets\"]",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "Gumroad tags to browse, one listing per tag (the same as clicking a tag on Gumroad Discover). Example: [\"procreate\", \"notion\"]",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Gumroad category paths as they appear in Gumroad URLs, e.g. design, 3d, 3d/vrchat, drawing-and-painting, software-development, business-and-money. With search terms or tags, each search runs inside each category; alone, each category is listed in full. all_products means all of Discover. Example: [\"3d/vrchat\"]",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Gumroad URLs",
            "type": "array",
            "description": "Gumroad links: Discover searches (https://gumroad.com/discover?query=notion), category pages (https://gumroad.com/design), creator storefronts (https://name.gumroad.com) or single products (https://name.gumroad.com/l/permalink). Filters and sort order in a Discover link are kept. Product links always return full details. Example: [{\"url\": \"https://gumroad.com/discover?query=notion\"}]",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "default",
              "featured",
              "trending",
              "hot_and_new",
              "best_sellers",
              "highest_rated",
              "most_reviewed",
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order of search, tag and category results, as on Gumroad Discover. default keeps Gumroad's own order. Example: best_sellers",
            "default": "default"
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or above this, in US dollars. 0 means no minimum. Applies to searches, tags and categories. Example: 5",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or below this, in US dollars. 0 means no maximum. Example: 50",
            "default": 0
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "Only products with at least this average star rating (1 to 4). 0 means no rating filter. Example: 4",
            "default": 0
          },
          "fileTypes": {
            "title": "File types",
            "type": "array",
            "description": "Only products containing these file types, as Gumroad lists them (pdf, zip, mp4, png, psd, fig, xlsx, ...). Empty means all. Example: [\"pdf\"]",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum products in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the run after this many products across all inputs. 0 means no limit. Example: 100",
            "default": 100
          },
          "maxItemsPerSource": {
            "title": "Maximum products per search, tag, category or URL",
            "minimum": 0,
            "type": "integer",
            "description": "Take at most this many products from each input, in Gumroad's order. 0 means no per-input limit. Example: 200",
            "default": 0
          },
          "productDetails": {
            "title": "Add product details",
            "type": "boolean",
            "description": "Off (default): one request per 36 products, with name, price, currency, rating, seller, type and links. On: also open each product page to add the description, summary, sales count (when the seller shows it), rating breakdown, cover images, variants and their prices, membership tiers and refund policy. Slower, same price per product. Example: false",
            "default": false
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Return only products this actor has not returned to you before under the same state key (remembered for 180 days). Use it with a schedule to catch new products in a search, tag, category or storefront. Example: false",
            "default": false
          },
          "stateKey": {
            "title": "State key for only-new mode",
            "type": "string",
            "description": "Name of the memory used by 'Only new since last run'. Use a different key for each schedule that tracks its own list. Letters, digits and - _ . only. Example: notion-templates",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. The default Apify datacenter proxy works for Gumroad. You can supply your own proxy URLs instead. Example: {\"useApifyProxy\": true}",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}