{
  "openapi": "3.0.1",
  "info": {
    "title": "ShopGoodwill Auction Scraper — Keyword Search, Bids & Monitor",
    "description": "Scrape ShopGoodwill.com auctions by keyword, category, or seller — title, price, bids, end time, Buy Now, images, item URL. Optional detail enrichment (seller, pickup, bid history) plus a saved-search monitor with Slack/email/webhook alerts. No login or API key. From $4 per 1,000 items.",
    "version": "0.1",
    "x-build-id": "fAMJywozE6TckTwL0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~shopgoodwill-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-shopgoodwill-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/scrapersdelight~shopgoodwill-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-shopgoodwill-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/scrapersdelight~shopgoodwill-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-shopgoodwill-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": {
          "searchText": {
            "title": "Search keyword",
            "type": "string",
            "description": "Keyword matched against item titles (and descriptions when 'Search descriptions' is on). Leave empty to scrape ALL active listings (combine with a category or seller filter)."
          },
          "categoryId": {
            "title": "Category ID",
            "type": "integer",
            "description": "ShopGoodwill numeric category id, e.g. 7 = Computers & Electronics. 0 = all categories. Find ids in the category page URL on shopgoodwill.com.",
            "default": 0
          },
          "selectedCategoryIds": {
            "title": "Multiple category IDs",
            "type": "string",
            "description": "Comma-separated list of category ids to search across at once (overrides the single Category ID above when set)."
          },
          "selectedSellerIds": {
            "title": "Seller IDs",
            "type": "string",
            "description": "Comma-separated seller (regional Goodwill) ids to restrict the search to, e.g. '43'. Each seller's id appears in its shopgoodwill.com seller page URL."
          },
          "priceMin": {
            "title": "Min price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return items with a current price at/above this. Leave empty for no floor."
          },
          "priceMax": {
            "title": "Max price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return items with a current price at/below this — bargain filter. Leave empty for no cap."
          },
          "buyNowOnly": {
            "title": "Buy It Now only",
            "type": "boolean",
            "description": "Only listings that can be bought instantly at the Buy Now price.",
            "default": false
          },
          "pickupOnly": {
            "title": "Pickup-only listings",
            "type": "boolean",
            "description": "Only listings offered for local pickup (no shipping).",
            "default": false
          },
          "searchDescriptions": {
            "title": "Search descriptions too",
            "type": "boolean",
            "description": "Also match the keyword inside item descriptions (broader, noisier results).",
            "default": false
          },
          "includeClosedAuctions": {
            "title": "Search CLOSED auctions",
            "type": "boolean",
            "description": "Search recently ended auctions instead of active ones — great for sold-price research. Pair with 'Closed days back'.",
            "default": false
          },
          "closedAuctionDaysBack": {
            "title": "Closed days back",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "When searching closed auctions, how many days back to include (site default 7).",
            "default": 7
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "ending",
              "newest",
              "oldest",
              "price-low",
              "price-high"
            ],
            "type": "string",
            "description": "Result ordering (server-side). 'Newest first' surfaces freshly listed items — best for monitors.",
            "default": "ending"
          },
          "fetchDetails": {
            "title": "Fetch full details",
            "type": "boolean",
            "description": "Call the item-detail API for each item: full description, seller name, pickup city/state/zip, bid increment, bid history, reserve status, handling price, full-size photo gallery. One extra request per item.",
            "default": false
          },
          "maxItems": {
            "title": "Max items per run",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on items scraped this run (cost/safety guard). Defaults to 50 for a fast first run — set to 0 for an unlimited bulk scrape of the whole result set.",
            "default": 50
          },
          "monitorMode": {
            "title": "Monitor mode (saved-search watcher)",
            "type": "boolean",
            "description": "Recurring watcher: diff against the prior run's seen items (per search scope) and output/alert ONLY newly-listed items. Pair with an Apify Schedule and Sort by = Newest first.",
            "default": false
          },
          "alertOnNewItem": {
            "title": "Alert on new items",
            "type": "boolean",
            "description": "In monitor mode, deliver an alert for each newly-listed item via the channels below.",
            "default": true
          },
          "alertOnBidChange": {
            "title": "Alert on bid/price changes (watchlist)",
            "type": "boolean",
            "description": "Also alert when the current price changes on a watched item (see watchlist IDs).",
            "default": false
          },
          "watchlistItemIds": {
            "title": "Watchlist item IDs",
            "type": "array",
            "description": "Specific item ids to track for price changes when 'Alert on bid/price changes' is on.",
            "items": {
              "type": "string"
            }
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "POST endpoint for new-item alert payloads (Make / Zapier / n8n / custom). One JSON body per alert."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Slack incoming-webhook URL for formatted new-item cards."
          },
          "emailRecipients": {
            "title": "Email recipients",
            "type": "array",
            "description": "Email addresses for the new-item digest (sent via apify/send-mail).",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. Datacenter rotation is enough for this site (public JSON API, no anti-bot).",
            "default": {
              "useApifyProxy": true
            }
          },
          "requestConcurrency": {
            "title": "Request concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Max parallel requests for detail fetches. Keep modest to respect the site's rate limits.",
            "default": 5
          },
          "diagnose": {
            "title": "Diagnostic mode (dev)",
            "type": "boolean",
            "description": "Dev only. Dumps the raw search + detail API JSON to the key-value store (DEBUG_SEARCH_JSON / DEBUG_DETAIL_JSON) and logs the parsed first row + pagination check, then exits. Leave off for normal runs.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}