{
  "openapi": "3.0.1",
  "info": {
    "title": "ShopGoodwill Scraper",
    "description": "Scrape ShopGoodwill.com - Goodwill's official online auction marketplace for secondhand clothing, shoes, accessories, and jewelry. Search by keyword, browse by category or seller, or fetch full item detail by ID.",
    "version": "1.0",
    "x-build-id": "BJDsbQUNFIecnnICK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~shopgoodwill-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-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/crawlerbros~shopgoodwill-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-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/crawlerbros~shopgoodwill-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byCategory",
              "bySeller",
              "byItemIds"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text keyword search (mode=search). Combine with `brand` / `sizeKeyword` to narrow results — ShopGoodwill has no separate brand/size facets, so these terms are ANDed into the search text.",
            "default": "nike"
          },
          "brand": {
            "title": "Brand keyword",
            "type": "string",
            "description": "Optional brand name to AND into the search text (e.g. `levis`, `coach`, `nike`). ShopGoodwill does not expose a structured brand facet — this is a keyword narrowing, not an exact filter."
          },
          "sizeKeyword": {
            "title": "Size keyword",
            "type": "string",
            "description": "Optional size to AND into the search text (e.g. `medium`, `size 8`, `xl`). ShopGoodwill does not expose a structured size facet on most categories — this is a keyword narrowing, not an exact filter."
          },
          "categoryId": {
            "title": "Category",
            "enum": [
              "",
              "10",
              "27",
              "28",
              "29",
              "1729",
              "453",
              "137",
              "2272",
              "169",
              "6",
              "84",
              "100",
              "91",
              "2240",
              "90",
              "2241",
              "85",
              "102",
              "436",
              "101",
              "86",
              "87",
              "353",
              "88",
              "89"
            ],
            "type": "string",
            "description": "Fashion category to browse or narrow by (mode=byCategory uses this as the primary filter; other modes use it as an optional narrowing filter). Includes both top-level departments and their live subcategories.",
            "default": ""
          },
          "sellerId": {
            "title": "Seller ID (mode=bySeller)",
            "minimum": 1,
            "maximum": 999999,
            "type": "integer",
            "description": "Numeric ShopGoodwill seller/store ID, e.g. `16` (Goodwill Industries of South Florida). Found in an item's `sellerId` output field or the store's URL."
          },
          "itemIds": {
            "title": "Item IDs (mode=byItemIds)",
            "type": "array",
            "description": "Numeric ShopGoodwill item IDs to fetch full detail for, e.g. `269254306`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 999999,
            "type": "integer",
            "description": "Drop items priced below this (current bid / buy-now price)."
          },
          "priceMax": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 999999,
            "type": "integer",
            "description": "Drop items priced above this (current bid / buy-now price)."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "endingSoonest",
              "endingLatest",
              "priceLowToHigh",
              "priceHighToLow"
            ],
            "type": "string",
            "description": "Result ordering.",
            "default": "endingSoonest"
          },
          "buyNowOnly": {
            "title": "Buy-it-now listings only",
            "type": "boolean",
            "description": "Only include items with an active Buy-It-Now price (skip bid-only auctions).",
            "default": false
          },
          "pickupOnly": {
            "title": "Local pickup listings only",
            "type": "boolean",
            "description": "Only include items offered for local pickup (skip shipped-only listings).",
            "default": false
          },
          "includeClosedAuctions": {
            "title": "Include closed/ended auctions",
            "type": "boolean",
            "description": "Search recently-ended (sold) listings instead of only live auctions — useful for sold-price research.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 40
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}