{
  "openapi": "3.0.1",
  "info": {
    "title": "OfferUp Scraper - Listings, Details, Sellers & Price Monitor",
    "description": "Scrape OfferUp listings by keyword, ZIP or city, category, search URL, listing URL or seller: price, location, photos; full details with description, coordinates, seller rating, shipping, vehicle VIN; new-listing and price-change monitor. $0.09 per 1,000 listings, details $1.10 per 1,000.",
    "version": "0.1",
    "x-build-id": "6DKgId5mci7rm3Pvd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~offerup-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-offerup-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/topapi~offerup-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-offerup-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/topapi~offerup-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-offerup-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 keywords",
            "type": "array",
            "description": "One search per line, typed as in the OfferUp search box. Example: iphone 15, sectional couch, honda civic.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "OfferUp URLs",
            "type": "array",
            "description": "Paste OfferUp URLs: a search (offerup.com/search?q=...; every filter in the URL is kept), a category page (offerup.com/explore/...), a listing (offerup.com/item/detail/...) or a seller profile (offerup.com/p/...).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingUrls": {
            "title": "Listing URLs or ids",
            "type": "array",
            "description": "Listings to read in full (offerup.com/item/detail/<id>, the listing id, or the numeric item id). Each comes with its full record and is billed listing + listing-details.",
            "items": {
              "type": "string"
            }
          },
          "sellerUrls": {
            "title": "Seller profiles",
            "type": "array",
            "description": "A seller's listings: profile URLs (offerup.com/p/<id>) or user ids. Every row carries the seller's profile (name, rating, items sold, joined, followers, badges).",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "A US ZIP code, a city (\"Seattle, WA\") or coordinates (\"47.61,-122.33\"). Without one, searches run around New York (10001)."
          },
          "locations": {
            "title": "More locations",
            "type": "array",
            "description": "Search every keyword around several places (ZIP codes, cities or coordinates). A listing found by two searches is delivered once.",
            "items": {
              "type": "string"
            }
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 1500,
            "type": "integer",
            "description": "Distance around the location. OfferUp's steps: 5, 10, 20, 30 (its default), 50, 80 (its maximum for most items); vehicles also 100, 200 and 1500. Other values round up to the next step."
          },
          "minPrice": {
            "title": "Minimum price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings at or above this price (OfferUp applies it)."
          },
          "maxPrice": {
            "title": "Maximum price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings at or below this price (OfferUp applies it)."
          },
          "conditions": {
            "title": "Condition",
            "type": "array",
            "description": "Leave empty for any condition.",
            "items": {
              "type": "string",
              "enum": [
                "NEW",
                "OPEN_BOX",
                "REFURBISHED",
                "USED",
                "BROKEN",
                "OTHER"
              ],
              "enumTitles": [
                "New",
                "Open box",
                "Reconditioned",
                "Used",
                "For parts",
                "Other"
              ]
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "bestMatch",
              "recent",
              "closest",
              "lowPrice",
              "highPrice",
              "newestYear",
              "lowestMileage"
            ],
            "type": "string",
            "description": "OfferUp's own sort. Default: best match (monitor mode always reads recent first)."
          },
          "category": {
            "title": "Category id",
            "type": "string",
            "description": "An OfferUp category id, alone (browse the category) or with keywords. Examples: 1 Electronics & Media, 1.2 Cell phones, 2 Home & Garden, 4.1 Furniture, 5 Vehicles, 5.1 Cars & Trucks, 5.3 Motorcycles, 7 Clothing & Shoes, 8 Baby & Kids, 9 Toys, Games & Hobbies, 10 Sports & Outdoors. The id is the number at the end of an offerup.com/explore/... URL."
          },
          "sellerType": {
            "title": "Seller type (vehicles)",
            "enum": [
              "all",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "OfferUp's seller-type filter on vehicle searches."
          },
          "vehicleMakes": {
            "title": "Vehicle makes",
            "type": "array",
            "description": "Toyota, Honda, Ford, Mercedes Benz ... (61 makes OfferUp lists). Without keywords or a category, a vehicle filter browses Cars & Trucks.",
            "items": {
              "type": "string"
            }
          },
          "vehicleYearMin": {
            "title": "Vehicle year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Vehicles of this model year or newer."
          },
          "vehicleYearMax": {
            "title": "Vehicle year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Vehicles of this model year or older."
          },
          "vehicleMaxMileage": {
            "title": "Vehicle mileage up to",
            "minimum": 0,
            "type": "integer",
            "description": "OfferUp's steps: 25,000 to 200,000 in steps of 25,000 (rounded up)."
          },
          "vehicleBodyStyles": {
            "title": "Vehicle body",
            "type": "array",
            "description": "OfferUp's body filter on vehicle searches.",
            "items": {
              "type": "string",
              "enum": [
                "car",
                "suv",
                "truck",
                "van"
              ],
              "enumTitles": [
                "Car",
                "SUV",
                "Truck",
                "Van"
              ]
            }
          },
          "vehicleTransmission": {
            "title": "Transmission",
            "enum": [
              "any",
              "automatic",
              "manual"
            ],
            "type": "string",
            "description": "OfferUp's transmission filter on vehicle searches."
          },
          "vehicleDrivetrain": {
            "title": "Drivetrain",
            "enum": [
              "any",
              "awd",
              "fwd",
              "rwd"
            ],
            "type": "string",
            "description": "OfferUp's drivetrain filter on vehicle searches."
          },
          "vehicleMinMpg": {
            "title": "MPG at least",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "OfferUp's steps: 10, 20, 30, 40 (rounded down)."
          },
          "includeDetails": {
            "title": "Full listing details",
            "type": "boolean",
            "description": "Read every delivered listing in full: description, all photos, coordinates, posted date, category path, item specifics, seller profile (rating, items sold, joined, TruYou, business / dealer), shipping, and vehicle make / model / year / VIN. Billed listing-details per row that carries it.",
            "default": false
          },
          "deliveryMethod": {
            "title": "Delivery method",
            "enum": [
              "all",
              "localPickup",
              "shipping"
            ],
            "type": "string",
            "description": "Keep only listings with local pickup / with shipping. OfferUp's search page does not show this, so it turns on full details (billed only for the rows kept).",
            "default": "all"
          },
          "postedWithinHours": {
            "title": "Posted within (hours)",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only listings posted in the last N hours. Reads recent first and turns on full details (the post date is in the full record)."
          },
          "excludePromoted": {
            "title": "Skip promoted listings",
            "type": "boolean",
            "description": "Leave out the seller ads OfferUp mixes into the results.",
            "default": false
          },
          "strictTitleMatch": {
            "title": "Every keyword in the title",
            "type": "boolean",
            "description": "Keep only listings whose title contains every word of the keyword (OfferUp's search also matches descriptions and related items).",
            "default": false
          },
          "maxItems": {
            "title": "Maximum listings (whole run)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows in total. 0 or empty = no total limit. The run never delivers or charges more."
          },
          "maxItemsPerSearch": {
            "title": "Maximum listings per search",
            "minimum": 1,
            "type": "integer",
            "description": "Per keyword x location, category, search URL or seller. About 49 listings come per results page.",
            "default": 100
          },
          "monitorMode": {
            "title": "Monitor mode (new listings + price changes)",
            "type": "boolean",
            "description": "Deliver only listings not delivered by an earlier run of the same input, and listings whose price changed (changeType priceChanged, previousPrice). Reads recent first and stops at the first page with nothing new. A run with nothing new charges nothing.",
            "default": false
          },
          "alertPriceChanges": {
            "title": "Also deliver price changes",
            "type": "boolean",
            "description": "In monitor mode, re-deliver a known listing whose price changed (billed as a listing).",
            "default": true
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps separate memories for monitors with the same searches."
          },
          "resetMonitor": {
            "title": "Reset the monitor",
            "type": "boolean",
            "description": "Forget what earlier runs delivered (the next run delivers everything again).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Without it, the run asks OfferUp directly and moves to Apify datacenter and then US residential proxies only when OfferUp refuses."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}