# OfferUp Scraper (`igolaizola/offerup-scraper`) Actor

Extract OfferUp marketplace listings by keyword and ZIP code. Get titles, prices, images, locations, seller info, and optional full details. Export JSON/CSV from Apify to track local deals, monitor price trends, and build lead pipelines. Uses US residential proxies.

- **URL**: https://apify.com/igolaizola/offerup-scraper.md
- **Developed by:** [Iñigo Garcia Olaizola](https://apify.com/igolaizola) (community)
- **Categories:** E-commerce, Social media, Other
- **Stats:** 118 total users, 27 monthly users, 99.4% runs succeeded, 5 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.40 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## OfferUp Scraper

### 🤖 What does OfferUp Scraper do?

OfferUp Scraper extracts marketplace listings from [offerup.com](https://offerup.com) so you can analyze local supply, monitor prices, or generate leads.
It supports keyword search around a U.S. ZIP code and (optionally) enriches each result with a full **details** payload.

What you can do with it:

- 🔎 Track prices for items like phones, consoles, tools, furniture, etc.
- 📈 Build time-series dashboards for local market trends
- 🛍️ Generate leads for reselling or sourcing
- 🔔 Watch new listings for specific keywords

### 🚀 How to run

1. **Add the actor** to your Apify account.
2. **Configure inputs** (query, ZIP code, etc.).
3. **Run the actor**.
4. **Get results** from the **Dataset** tab (JSON, CSV, API).

### 💳 Cost & plans

You can try it on the Apify **Free plan** with monthly free credits. For heavier workloads, consider upgrading your plan on Apify for higher resource limits.

### 📝 Input Parameters

Supply inputs in JSON. Here are all available fields:

| Parameter            | Type    | Default       | Description                                                                                                                                                         |
| -------------------- | ------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `maxItems`           | integer | `10`          | Maximum number of items to scrape (minimum `1`).                                                                                                                    |
| `query`              | string  | `iphone`      | Search query (e.g., `"iphone 15"`, `"sofa"`, `"PS5"`).                                                                                                              |
| `zipCode`            | string  | `10001`       | U.S. ZIP code to search around.                                                                                                                                     |
| `category`           | string  | —             | Category id in the format `1.3` (parent.child). Select from the category list in the input UI.                                                                       |
| `minPrice`           | number  | `0`           | Minimum price filter (USD). Set to `0` to disable.                                                                                                                  |
| `maxPrice`           | number  | `0`           | Maximum price filter (USD). Set to `0` to disable.                                                                                                                  |
| `conditions`         | array   | —             | Filter by item condition. Supported values: `new`, `openBox`, `reconditioned`, `used`, `forParts`, `other`.                                                         |
| `sortBy`             | string  | `"bestMatch"` | Sort by: `"bestMatch"` (Best match), `"recent"` (Recent first), `"closest"` (Closest first), `"lowPrice"` (Price: Low to High), `"highPrice"` (Price: High to Low). |
| `fetchDetails`       | boolean | `false`       | If `true`, performs **1 extra request per item** and adds a rich `_details` object to each result.                                                                  |
| `maxAge`             | integer | `0`           | Maximum age of ads in hours. Only applies when sorting by `"recent"` and `fetchDetails` is enabled.                                                                 |

#### Example input

```json
{
  "maxItems": 50,
  "query": "playstation",
  "zipCode": "94102",
  "category": "1.5",
  "minPrice": 50,
  "maxPrice": 500,
  "conditions": ["new", "used"],
  "fetchDetails": true
}
```

### 📊 Output

The actor returns an array of listing objects. By default (without details), each item includes key marketplace fields such as `listingId`, `title`, `price`, `locationName`, `formattedPrice`, `image`, and `url`.

If `fetchDetails: true`, each item additionally contains a `_details` object with deeper listing, seller, photos, location, category, fulfillment, and status info.

#### Sample output (truncated)

```json
[
  {
    "__typename": "ModularFeedListing",
    "conditionText": null,
    "flags": [
      "LOCAL_PICKUP"
    ],
    "formattedOriginalPrice": "",
    "formattedPrice": "$60",
    "image": {
      "height": 250,
      "url": "https://images.offerup.com/N1wPg330VacF585Fn8fh7HyNyMA=/250x250/6a83/6a8304a772c54d709caafe1c1a35a481.jpg",
      "width": 250,
      "__typename": "ModularFeedImage"
    },
    "isFirmPrice": null,
    "listingId": "ac5f8f61-a479-3a3b-bd0b-6dbcea95ea9d",
    "locationName": "Newark, CA",
    "price": "60",
    "priceDropPercentage": null,
    "title": "Backbone PlayStation ",
    "url": "https://offerup.com/item/detail/ac5f8f61-a479-3a3b-bd0b-6dbcea95ea9d",
    "vehicleMiles": null,

    "_details": {
      "id": "1794044546",
      "listingId": "ac5f8f61-a479-3a3b-bd0b-6dbcea95ea9d",
      "additionalDetails": [],
      "availabilityConfirmedAt": null,
      "condition": 100,
      "conditionDisplayText": "New",
      "description": null,
      "details": [],
      "fulfillmentDetails": {
        "buyItNowEnabled": false,
        "canShipToBuyer": false,
        "isFreeShipping": false,
        "localPickupEnabled": true,
        "shippingEnabled": false,
        "shippingPrice": null,
        "shippingType": "LocalOnly",
        "showBuyNow": false,
        "__typename": "FullfilmentDetails"
      },
      "isFirmOnPrice": false,
      "isLocal": true,
      "isAutosPost": false,
      "isSold": false,
      "isUnlisted": false,
      "isRemoved": false,
      "lastEdited": null,
      "listingCategory": {
        "id": "ac5f8f61-a479-3a3b-bd0b-6dbcea95ea9d:1.5",
        "categoryAttributeMap": [
          {
            "attributeName": "type",
            "attributeUILabel": "Type",
            "attributeValue": [],
            "__typename": "CategoryAttributeMap"
          },
          {
            "attributeName": "platform",
            "attributeUILabel": "Platform",
            "attributeValue": [],
            "__typename": "CategoryAttributeMap"
          }
        ],
        "categoryV2": {
          "id": "1.5",
          "l1Name": "Electronics \u0026 Media",
          "l2Name": "Video games \u0026 Consoles",
          "__typename": "CategoryV2"
        },
        "__typename": "ListingCategory"
      },
      "locationDetails": {
        "latitude": "37.539",
        "locationName": "Newark, CA",
        "longitude": "-122.041",
        "zipcode": "94560",
        "__typename": "LocationDetails"
      },
      "originalPrice": "60",
      "owner": {
        "id": 33409521,
        "profile": {
          "avatars": {
            "squareImage": "https://images.offerup.com/8cT5piruV38pMcoHSPw5R6_iyys=/100x100/smart/f09d/f09d906ab21d4b93a83fe3e589e856c8.jpg",
            "__typename": "UserProfileAvatars"
          },
          "businessInfo": null,
          "clickToCallEnabled": false,
          "dateJoined": "2017-08-21T20:17:58Z",
          "isAutosDealer": false,
          "isBusinessAccount": false,
          "isSubPrimeDealer": false,
          "isTruyouVerified": null,
          "lastActive": "Active a few hours ago",
          "name": "Michael",
          "notActive": false,
          "ratingSummary": {
            "average": 5,
            "count": 7,
            "__typename": "RatingSummary"
          },
          "reviews": null,
          "sellerType": "Consumer",
          "websiteLink": null,
          "profileFeatures": {
            "canClickToCall": false,
            "canViewItemsFromThisSeller": false,
            "canViewStoreInventory": false,
            "__typename": "ProfileFeatures"
          },
          "__typename": "UserProfile"
        },
        "__typename": "User"
      },
      "ownerId": "33409521",
      "photos": [
        {
          "uuid": "34ac4cffea864afd80ffb4a04a29eb8e",
          "detailFull": {
            "url": "https://images.offerup.com/8iW_BGoiaeAKziF-qF5JwaNdexA=/1440x1920/34ac/34ac4cffea864afd80ffb4a04a29eb8e.jpg",
            "width": 1440,
            "height": 1920,
            "__typename": "Image"
          },
          "detailSquare": {
            "uuid": "6a8304a772c54d709caafe1c1a35a481",
            "height": 1440,
            "url": "https://images.offerup.com/M75M0Bm43h_eOiXcV6lAZnCB9t0=/1440x1440/6a83/6a8304a772c54d709caafe1c1a35a481.jpg",
            "width": 1440,
            "__typename": "Image"
          },
          "__typename": "Photo"
        },
        {
          "uuid": "a5cf4c1be824400289f2f3e075e9d3a8",
          "detailFull": {
            "url": "https://images.offerup.com/mJIC_rDJvYXUgWxgOVdm09sdw5k=/1440x1920/a5cf/a5cf4c1be824400289f2f3e075e9d3a8.jpg",
            "width": 1440,
            "height": 1920,
            "__typename": "Image"
          },
          "detailSquare": null,
          "__typename": "Photo"
        },
        {
          "uuid": "097e1b776cdd463da0672b559fe6a9e3",
          "detailFull": {
            "url": "https://images.offerup.com/bMnlO_Wx3aI4x15sllvK13rLwaQ=/886x1920/097e/097e1b776cdd463da0672b559fe6a9e3.jpg",
            "width": 886,
            "height": 1920,
            "__typename": "Image"
          },
          "detailSquare": null,
          "__typename": "Photo"
        }
      ],
      "postDate": "2025-08-23T19:26:33.743Z",
      "price": "60",
      "title": "Backbone PlayStation ",
      "vehicleAttributes": {
        "vehicleCityMpg": null,
        "vehicleEpaCity": null,
        "vehicleEpaHighway": null,
        "vehicleExternalHistoryReport": null,
        "vehicleFundamentals": [],
        "vehicleHighwayMpg": null,
        "vehicleMake": null,
        "vehicleMiles": null,
        "vehicleModel": null,
        "vehicleVin": null,
        "vehicleYear": null,
        "__typename": "VehicleAttributes"
      },
      "__typename": "Listing",
      "formattedOriginalPrice": "$60",
      "formattedPrice": "$60",
      "isOwnItem": false,
      "priceDropPercentage": "",
      "showOriginalPrice": false,
      "isGoodDeal": false
    },
  },
  ...
]
```

#### Quick schema reference

**Top-level fields** (always present):

- `listingId`, `title`, `price`, `formattedPrice`
- `locationName`
- `image.{url,width,height}`
- `flags[]` (e.g., `LOCAL_PICKUP` or `SHOW_SHIPPING_ICON`)
- `url`

**When `fetchDetails: true`** (selected highlights under `_details`):

- `condition`, `conditionDisplayText`, `postDate`
- `locationDetails.{latitude,longitude,zipcode,locationName}`
- `owner.profile.{name,lastActive,ratingSummary}`
- `photos[].detailFull.url`
- `listingCategory.categoryV2.{l1Name,l2Name}`
- `fulfillmentDetails.{localPickupEnabled,shippingEnabled}`
- Various status flags (e.g., `isSold`, `isUnlisted`, …) and price info

### 🧠 Tips & best practices

- ⏱️ **Control scope** with `maxItems` to manage run time and cost.
- 🧩 Only enable **`fetchDetails`** when you need granular data (it adds **one extra request per item**).
- 📍 Use a **specific ZIP code** close to your market of interest to improve relevance.
- 🔁 Schedule frequent, smaller runs to track price changes and new listings.

### ⚠️ Notes & limitations

- Results are influenced by OfferUp’s ranking and proximity to the provided ZIP code.
- Data fields may change over time as OfferUp updates its platform.
- Images are returned via OfferUp CDN links; availability can change.

### 📥 Exporting data

From the **Dataset** tab, export your results to **JSON** or **CSV**. You can also query datasets via the Apify API for automation.

### ⚖️ Legal

Before scraping, review OfferUp’s Terms of Service and applicable laws (e.g., privacy regulations). Use this actor responsibly and only for legitimate purposes. If unsure, consult your legal advisor.

### 🆘 Support

If you have questions, feature requests, or need a custom tweak (new filters, fields, or integrations), open an issue or reach out. Happy scraping!

# Actor input Schema

## `maxItems` (type: `integer`):

Maximum number of items to scrape

## `query` (type: `string`):

Query to search

## `zipCode` (type: `string`):

Zip code to search in (default: 10001)

## `category` (type: `string`):

Category id (cid). Select from the list.

## `minPrice` (type: `integer`):

Minimum price filter (USD). Set to 0 to disable.

## `maxPrice` (type: `integer`):

Maximum price filter (USD). Set to 0 to disable.

## `conditions` (type: `array`):

Filter by item condition. You can select multiple (Leave empty for any).

## `sortBy` (type: `string`):

Sort items by selected criteria

## `fetchDetails` (type: `boolean`):

Whether to fetch detailed information for each item. Each item will have an extra field '\_details' in the results.

## `maxAge` (type: `integer`):

Maximum age of ads in hours. Only applies when sorting by 'recent' and 'fetchDetails' is enabled.

## Actor input object example

```json
{
  "maxItems": 10,
  "query": "iphone",
  "zipCode": "10001",
  "category": "",
  "minPrice": 0,
  "maxPrice": 0,
  "conditions": [],
  "sortBy": "bestMatch",
  "fetchDetails": false,
  "maxAge": 0
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "iphone",
    "zipCode": "10001"
};

// Run the Actor and wait for it to finish
const run = await client.actor("igolaizola/offerup-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "iphone",
    "zipCode": "10001",
}

# Run the Actor and wait for it to finish
run = client.actor("igolaizola/offerup-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "iphone",
  "zipCode": "10001"
}' |
apify call igolaizola/offerup-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,igolaizola/offerup-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/gdNuzNbMmj6DRW5FJ/builds/nJuBWOHbjksmXbceg/openapi.json
