{
  "openapi": "3.0.1",
  "info": {
    "title": "OfferUp Scraper — Deal Radar",
    "description": "OfferUp under-$X deal radar: maxPrice/minPrice packs, dealScore, multi-metro alerts. Pay per listing. Lawful use only.",
    "version": "1.0",
    "x-build-id": "rHYxh3tcINA4f0g61"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/intelscrape~offerup-deal-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-intelscrape-offerup-deal-radar",
        "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/intelscrape~offerup-deal-radar/runs": {
      "post": {
        "operationId": "runs-sync-intelscrape-offerup-deal-radar",
        "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/intelscrape~offerup-deal-radar/run-sync": {
      "post": {
        "operationId": "run-sync-intelscrape-offerup-deal-radar",
        "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": {
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "OfferUp search keywords (e.g. iPhone, sofa, mountain bike)."
          },
          "metros": {
            "title": "Metros / cities",
            "type": "array",
            "description": "Metro/city names to fan out across (e.g. Austin TX, Houston TX, Dallas TX). Alias of cities[].",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities (alias of metros)",
            "type": "array",
            "description": "Optional alias for metros[]. Same city/metro names.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum listings to push across all metros.",
            "default": 50
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Filter out listings cheaper than this (0 = no min).",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Filter out listings more expensive than this (0 = no max).",
            "default": 0
          },
          "minDealScore": {
            "title": "Minimum dealScore",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only push listings with dealScore >= this (0–100).",
            "default": 0
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Search radius in miles (best-effort for live OfferUp search).",
            "default": 30
          },
          "newOnly": {
            "title": "New listings only",
            "type": "boolean",
            "description": "Skip IDs already stored in KeyValueStore (offerup-deal-seen-ids). Schedule-friendly.",
            "default": false
          },
          "discordWebhook": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Optional Discord incoming webhook for new deal alerts. Live runs: a successful Discord post bills the deal-alert PPE event ($0.002)."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional HTTP POST of each new listing JSON. Live runs: a successful POST bills deal-alert ($0.002). One alert charge per listing even if both Discord + CRM fire."
          },
          "demoMode": {
            "title": "Demo mode",
            "type": "boolean",
            "description": "Load bundled demo listings (no live scrape). Use when OfferUp blocks or for Store try-outs.",
            "default": false
          },
          "condition": {
            "title": "Condition",
            "type": "array",
            "description": "Filter by item condition (igolaizola/crowdpull parity). Leave empty for any. Values: new, openBox, reconditioned, used, forParts, other (aliases NEW/OPEN_BOX/USED accepted).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "conditions": {
            "title": "Conditions (alias)",
            "type": "array",
            "description": "Alias of condition[]. Same condition tokens.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "bestMatch",
              "recent",
              "closest",
              "lowPrice",
              "highPrice"
            ],
            "type": "string",
            "description": "Sort listings (igolaizola). bestMatch | recent | closest | lowPrice | highPrice.",
            "default": "bestMatch"
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Fetch listing detail pages for description/photos/condition (igolaizola fetchDetails / crowdpull includeDetails). Extra requests per item.",
            "default": true
          },
          "onlyWithPhotos": {
            "title": "Only with photos",
            "type": "boolean",
            "description": "Skip listings without an image.",
            "default": false
          },
          "delivery": {
            "title": "Delivery method",
            "enum": [
              "p",
              "s",
              "p_s"
            ],
            "type": "string",
            "description": "Filter delivery (crowdpull): p=pickup, s=shipping, p_s=both.",
            "default": "p_s"
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "1.1",
              "1.2",
              "1.3",
              "1.4",
              "1.5",
              "1.6",
              "1.7",
              "1.8",
              "1.9",
              "1.10",
              "1.11",
              "1.12",
              "2.1",
              "2.2",
              "2.3",
              "2.4",
              "2.5",
              "2.6",
              "2.7",
              "2.8",
              "2.9",
              "2.10",
              "3.1",
              "3.2",
              "3.3",
              "3.4",
              "3.5"
            ],
            "type": "string",
            "description": "OfferUp category id (cid) — igolaizola parity. Top picks or raw cid like 1.2 (Electronics). Leave empty for all.",
            "default": ""
          },
          "zipCode": {
            "title": "ZIP code",
            "type": "string",
            "description": "US ZIP search center (igolaizola). Merged into metros/cities fanout when set."
          },
          "latitude": {
            "title": "Latitude",
            "type": "number",
            "description": "Search center latitude (crowdpull). Pair with longitude."
          },
          "longitude": {
            "title": "Longitude",
            "type": "number",
            "description": "Search center longitude (crowdpull). Pair with latitude."
          },
          "maxAgeHours": {
            "title": "Max age (hours)",
            "minimum": 0,
            "maximum": 8760,
            "type": "integer",
            "description": "Only keep listings newer than this many hours (igolaizola maxAge). 0 = no filter. Uses postedAt/daysSinceListed when available.",
            "default": 0
          },
          "onlyListingsNewerThan": {
            "title": "Only listings newer than",
            "type": "string",
            "description": "Crowdpull-style date filter. ISO date (2024-01-15) or relative (7d, 30d, 6m, 24h). Leave empty for none. Combined with maxAgeHours (stricter wins)."
          },
          "searchQueries": {
            "title": "Search queries (batch)",
            "type": "array",
            "description": "Run multiple keywords in one job (lulzasaur/abotapi/memo23). When set, overrides singular query for fanout. Cap 10.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "OfferUp item or search URLs (memo23). Item detail URLs are enriched; search URLs are crawled. Cap 20.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings. Residential recommended for OfferUp.",
            "default": {
              "useApifyProxy": false
            }
          },
          "minSellerRating": {
            "title": "Minimum seller rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only keep listings whose sellerRating >= this (0–5). 0 = no filter. Rival parity with crowdpull/piotrv seller trust gates. Pair with includeDetails for live seller ratings.",
            "default": 0
          },
          "requireVerifiedSeller": {
            "title": "Require verified seller",
            "type": "boolean",
            "description": "Skip listings where sellerVerified is not true. Best with includeDetails. Rival seller-trust gate.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}