# OfferUp API

> OfferUp returns local sale listings, prices, and seller details, available as a workflow and API.

OfferUp searches items for sale near a US city or ZIP code, returning listing titles, prices, conditions, seller details, and links. Search listings requires a query and US location; optional inputs include price range, condition, sort order, result count, and maximum distance.

- Page: https://fous.com/workflows/offerup
- Handle: `@offerup`
- Category: [Commerce](https://fous.com/workflows/category/commerce)
- Source website: https://offerup.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with OfferUp.

## Methods

### Search listings

Operation `search_listings`, version 1. 1 credit per call.

Find OfferUp items for sale near a US city or ZIP code, with prices, seller details and links. Distances use approximate listing locations; listings can change or disappear.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `sort` | string | no | `"newest"` | Listing order, such as newest. |
| `query` | string | yes | `"table"` | What to search for, such as couch. |
| `location` | string | yes | `"Portland, OR"` | US ZIP code or city and state, such as Seattle, WA or 98101. |
| `condition` | string | no | `"new"` | Item condition, such as used. |
| `max_price` | number | no | `1000` | Maximum price in USD, such as 500. |
| `min_price` | number | no | `100` | Minimum price in USD, such as 100. |
| `max_results` | integer | no | `55` | Maximum listings to return, such as 30. |
| `max_distance_miles` | integer | no | `100` | Maximum distance from the place in miles, such as 20. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query",
    "location"
  ],
  "properties": {
    "sort": {
      "enum": [
        "best_match",
        "newest",
        "closest",
        "price_low_to_high",
        "price_high_to_low"
      ],
      "type": "string",
      "default": "best_match",
      "description": "Listing order, such as newest.",
      "examples": [
        "newest",
        "price_low_to_high"
      ]
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "What to search for, such as couch.",
      "examples": [
        "table",
        "iphone",
        "couch"
      ]
    },
    "location": {
      "type": "string",
      "minLength": 1,
      "description": "US ZIP code or city and state, such as Seattle, WA or 98101.",
      "examples": [
        "Portland, OR",
        "98101",
        "Seattle, WA"
      ]
    },
    "condition": {
      "enum": [
        "any",
        "new",
        "open_box",
        "reconditioned",
        "used"
      ],
      "type": "string",
      "default": "any",
      "description": "Item condition, such as used.",
      "examples": [
        "new"
      ]
    },
    "max_price": {
      "type": "number",
      "minimum": 0,
      "description": "Maximum price in USD, such as 500.",
      "examples": [
        1000
      ]
    },
    "min_price": {
      "type": "number",
      "minimum": 0,
      "description": "Minimum price in USD, such as 100.",
      "examples": [
        100
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 30,
      "maximum": 100,
      "minimum": 1,
      "description": "Maximum listings to return, such as 30.",
      "x-fous-developer": true,
      "examples": [
        55,
        5
      ]
    },
    "max_distance_miles": {
      "enum": [
        5,
        10,
        20,
        30,
        50,
        100
      ],
      "type": "integer",
      "default": 30,
      "description": "Maximum distance from the place in miles, such as 20.",
      "examples": [
        100,
        20
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "sort": "newest",
      "query": "table",
      "location": "Portland, OR",
      "max_results": 55,
      "max_distance_miles": 100
    },
    {
      "sort": "price_low_to_high",
      "query": "iphone",
      "location": "98101",
      "condition": "new",
      "max_price": 1000,
      "min_price": 100,
      "max_results": 5,
      "max_distance_miles": 20
    },
    {
      "query": "couch",
      "location": "Seattle, WA",
      "max_results": 5
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `listings` | array |  |  |
| `listings[].city` | string or null | `"Seattle"` |  |
| `listings[].price` | number or null | `100` | Price in USD. |
| `listings[].state` | string or null | `"WA"` |  |
| `listings[].title` | string or null | `"iPhone SE (2016) asking $100"` |  |
| `listings[].currency` | string | `"USD"` | Price currency code. |
| `listings[].condition` | string or null | `"New"` |  |
| `listings[].image_link` | string or null | `"https://images.offerup.com/QgnfH9eAldxkuMTfYDpoN-bEqOw=/250x333/453c/453cb01de66a48db9e08a4c9e92c6a01.jpg"` |  |
| `listings[].listing_id` | string | `"3de04997-ef23-31c6-b249-f728cede8f2b"` |  |
| `listings[].seller_name` | string or null | `"The price is right bob!!"` |  |
| `listings[].listing_link` | string | `"https://offerup.com/item/detail/3de04997-ef23-31c6-b249-f728cede8f2b"` |  |
| `listings[].distance_miles` | number or null | `6.4` |  |
| `listings[].shipping_available` | boolean | `false` |  |

**Example input**

```json
{
  "sort": "price_low_to_high",
  "query": "iphone",
  "location": "98101",
  "condition": "new",
  "max_price": 1000,
  "min_price": 100,
  "max_results": 5,
  "max_distance_miles": 20
}
```

**Example output**

```json
{
  "listings": [
    {
      "city": "Seattle",
      "price": 100,
      "state": "WA",
      "title": "iPhone SE (2016) asking $100",
      "currency": "USD",
      "condition": "New",
      "image_link": "https://images.offerup.com/QgnfH9eAldxkuMTfYDpoN-bEqOw=/250x333/453c/453cb01de66a48db9e08a4c9e92c6a01.jpg",
      "listing_id": "3de04997-ef23-31c6-b249-f728cede8f2b",
      "seller_name": "The price is right bob!!",
      "listing_link": "https://offerup.com/item/detail/3de04997-ef23-31c6-b249-f728cede8f2b",
      "distance_miles": 6.4,
      "shipping_available": false
    },
    {
      "city": "Seattle",
      "price": 100,
      "state": "WA",
      "title": "Apple AirPods Pro 3",
      "currency": "USD",
      "condition": "New",
      "image_link": "https://images.offerup.com/_4V8mNj8Uds5iznI7ofT3Rn-OUc=/250x333/91e8/91e8b231951047479d5ae3a3ce1257af.jpg",
      "listing_id": "10be4b5e-7f22-3974-a6b4-de1309ed449d",
      "seller_name": "Mako Evans",
      "listing_link": "https://offerup.com/item/detail/10be4b5e-7f22-3974-a6b4-de1309ed449d",
      "distance_miles": 6.3,
      "shipping_available": false
    },
    {
      "city": "Kent",
      "price": 100,
      "state": "WA",
      "title": "iphone 5s 16gb new $95",
      "currency": "USD",
      "condition": "New",
      "image_link": "https://images.offerup.com/xDQdE11LKWfvwiFqGdrWN9Jl4U0=/250x333/81ea/81ea948bd16642159d4076d96050e594.jpg",
      "listing_id": "9d838325-daed-3f94-be3d-2d1c36c02031",
      "seller_name": "David Dudas",
      "listing_link": "https://offerup.com/item/detail/9d838325-daed-3f94-be3d-2d1c36c02031",
      "distance_miles": 15.6,
      "shipping_available": false
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@offerup",
  "visibility": "public",
  "operation": "search_listings",
  "version": 1,
  "input": {
    "sort": "newest",
    "query": "table",
    "location": "Portland, OR",
    "max_results": 55,
    "max_distance_miles": 100
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@offerup\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_listings\",\n  \"version\": 1,\n  \"input\": {\n    \"sort\": \"newest\",\n    \"query\": \"table\",\n    \"location\": \"Portland, OR\",\n    \"max_results\": 55,\n    \"max_distance_miles\": 100\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@offerup",
  "visibility": "public",
  "operation": "search_listings",
  "version": 1,
  "input": {
    "sort": "newest",
    "query": "table",
    "location": "Portland, OR",
    "max_results": 55,
    "max_distance_miles": 100
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@offerup","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Find local items within a target price range
- Compare listing prices across nearby sellers
- Identify used goods available in a city
- Review seller details before contacting sellers
- Filter listings by condition and distance

## FAQ

### Is Fous affiliated with OfferUp?

No. Fous is not affiliated with OfferUp. This workflow reads the public offerup.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a OfferUp account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from offerup.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What listings match a search near a US location?

Search listings returns matching items near the supplied city or ZIP code, with prices, seller details, and links.

### Which listings fall within a price range?

Search listings accepts minimum and maximum prices in USD and returns matching listings.

### How far away are matching listings?

Search listings can filter by maximum distance and returns approximate distances from the supplied location.

## Related

- [eBay API](https://fous.com/workflows/ebay.md): eBay provides listings, listing details, seller reputation and newest feedback; shipping varies by destination, and some details or counts may be missing or approximate.
- [Mercari API](https://fous.com/workflows/mercari.md): Search secondhand and sold listings on Mercari US.
- [Cars.com API](https://fous.com/workflows/cars-com.md): Cars.com finds car listings by make, model, and U.S. ZIP code, and provides dealerships’ latest customer reviews when available.
- [Autotrader API](https://fous.com/workflows/autotrader.md): Search new, used and certified cars for sale across the United States.
- [CarGurus API](https://fous.com/workflows/cargurus.md): CarGurus helps shoppers browse dealer-listed new and used cars with deal ratings, and view average used prices, price ranges and 12-month price history by model year.
- [Mercado Libre API](https://fous.com/workflows/mercado-libre.md): Search public marketplace listings in Latin America.
- [Craigslist API](https://fous.com/workflows/craigslist.md): Craigslist offers local ads and searches public listings newest by search order; available listing details omit hidden contacts, and renewals may have older dates.
- [Carfax API](https://fous.com/workflows/carfax.md): Carfax provides used-car listings near a US ZIP code with free history highlights, plus open safety recalls reported by CARFAX for a VIN or US plate.
- [All Commerce workflows](https://fous.com/workflows/category/commerce)
