# 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
- **Features:** Limited permissions
- **Stats:** 228 total users, 62 monthly users, 96.6% 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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# 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, direct item URL/listing-ID lookups, 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. Use `0` for unlimited.                                                                            |
| `query`              | string  | `iphone`      | Optional search query (e.g., `"iphone 15"`, `"sofa"`, `"PS5"`). Leave empty for direct item lookups.                                                                |
| `listingIds`         | array   | `[]`          | Optional OfferUp listing IDs or item URLs. When present, direct lookup mode skips search and extracts IDs from valid item URLs.                                        |
| `zipCode`            | string  | `10001`       | U.S. ZIP code to search around. Not needed for direct `listingIds` lookups.                                                                                           |
| `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`       | For search results, if `true`, performs **1 extra request per item** and adds `_details`. Direct `listingIds` lookups always include `_details`.                     |
| `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
}
```

#### Direct item lookup

Use `listingIds` to retry individual listings without running a search. Values may be IDs or item URLs. Direct lookups populate `_details`.

```json
{
  "maxItems": 2,
  "listingIds": [
    "50f175dd-7dfd-35ea-875e-2349b92554d5",
    "https://offerup.com/item/detail/ac5f8f61-a479-3a3b-bd0b-6dbcea95ea9d"
  ]
}
```

Direct lookup mode deduplicates IDs and preserves input order.

### 📊 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`.

Search results include a `_details` object when `fetchDetails: true` and the detail request succeeds. Direct `listingIds` lookups request details and include `_details` when successful.
`_detailsStatus` is `success` when details were fetched, `not-found` when the listing was not found, and `error` for other detail failures.

#### 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. Use 0 for unlimited.

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

Optional search query. Leave empty when using listingIds.

## `listingIds` (type: `array`):

Optional OfferUp listing IDs or item URLs to process directly. URLs must use https://offerup.com/item/detail/<listing-id>. When provided, the actor skips search.

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

U.S. ZIP code to search around (default: 10001). Not needed for direct listingIds lookups.

## `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 search results. Direct listingIds lookups always include '\_details'.

## `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",
  "listingIds": [],
  "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/giaeNezmLIrffct03/openapi.json
