# Swappa Listings Scraper (`parseforge/swappa-scraper`) Actor

Scrapes Swappa listings by search query or category. Returns price, condition, storage, carrier, and seller details for each listing.

- **URL**: https://apify.com/parseforge/swappa-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** E-commerce, Lead generation, Marketing
- **Features:** Limited permissions
- **Stats:** 7 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $19.00 / 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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner-v4.webp)](https://apify.com/parseforge?fpr=vmoqkp)

### Swappa Listings Scraper

**Scrape Swappa listings for any phone, laptop, or gadget, up to a million per run.** Every listing comes with its price, condition, storage, carrier, and seller details. No login or API key. Export to CSV, JSON, Excel, or XML.

Swappa's marketplace pages are built for browsing, not for bulk analysis. This Actor reads the public listing feeds directly, filtered by search term, category, or condition, and returns each match in one fixed schema. Use it to track used electronics prices, monitor inventory, or feed your own pricing engine.

| Who uses it | What they scrape Swappa for |
|---|---|
| Market researchers | Track used phone and laptop prices across conditions and carriers |
| Resellers | Find undervalued listings to flip on other marketplaces |
| Price comparison sites | Feed current Swappa asking prices into their own comparison tables |
| Data analysts | Build historical price datasets for depreciation models |

### What it does

This Actor collects Swappa listings by search query or category, and returns each one as a flat row with price, condition, storage, carrier, and seller information.

- 🔍 **Search or browse:** Enter a keyword like 'iphone 13' or pick a category like 'laptops' to collect matching listings.
- 📱 **Condition filter:** Narrow results to Mint, Good, or Fair condition, or leave it open for all listings.
- 📊 **Structured rows:** Each listing returns as a flat record with price, condition, storage, carrier, and seller details.
- ⚡ **Scale to a million:** Set maxItems from 1 to 1,000,000 listings per run, with pagination handled for you.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with Swappa data

**📈 Track used phone prices.**

A market researcher runs the Actor daily for 'iphone 13' and charts the average asking price by condition and storage to spot seasonal trends.

**🛒 Find resale opportunities.**

A reseller scrapes all Mint condition MacBook Pro listings under a price threshold, then buys and relists them on eBay for a margin.

**📊 Build a pricing dataset.**

A data analyst collects every listing in the 'cell-phones' category for a month and trains a model to predict fair market value.

**🔔 Monitor inventory.**

A price comparison site scrapes Swappa every hour for a list of popular models and updates its own comparison tables with current asking prices.

### Why choose this scraper

|  | What you get |
|---|---|
| **No API key needed** | Reads Swappa's public listing pages directly, so you can start scraping in minutes. |
| **One fixed schema** | Every listing returns the same fields, so your downstream code never breaks. |
| **Export anywhere** | Save results as CSV, JSON, Excel, or XML, or push them to Apify storage. |

### How it compares

This Actor and the competitor both scrape Swappa listings, but this Actor offers a simpler input schema with search, category, and condition filters, while the competitor emphasizes pagination and proxy configuration.

| Feature | ParseForge | Swappa Scraper |
|---|---|---|
| Search by keyword | Yes | Not listed |
| Filter by category | Yes | Not listed |
| Filter by condition | Yes | Not listed |
| Structured data fields | Yes | Yes |
| Pagination support | Yes | Yes |
| Proxy configuration | Not listed | Yes |

### Configure the run

Drive the Actor from a search query or a category slug, and narrow results by condition. Filters run as each listing is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "searchQuery": "iphone 13",
  "maxItems": 10
}
```

A larger pull:

```json
{
  "searchQuery": "iphone 13",
  "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.021 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $2.10 |
| 1,000 results | $21.00 |
| 10,000 results | $210.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [Swappa Listings Scraper](https://apify.com/parseforge/swappa-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to Swappa through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/swappa-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that your searchQuery or category is spelled correctly and that the condition filter is not too restrictive. Try removing the condition filter or using a broader search term.

**The Actor stops before reaching maxItems.**

Swappa may not have enough listings matching your filters. Try broadening your search or removing the condition filter.

**Some listings are missing fields like storage or carrier.**

Not all sellers provide complete information. The Actor returns whatever is available on the listing page, so some fields may be empty.

**I get an error about invalid category.**

Make sure you use the exact category slug from the input schema, such as 'cell-phones' or 'laptops'. The enum list in the input editor shows all valid options.

**The run is slow.**

Swappa's pages can be slow to load. You can increase the timeout or reduce maxItems to speed up the run.

### FAQ

| Question | Answer |
|---|---|
| Do I need a Swappa account or API key? | No. This Actor reads Swappa's public listing pages directly, so you can start scraping without any registration or authentication. |
| Can I scrape a specific category? | Yes. Set the category input to a slug like 'cell-phones' or 'laptops'. If you leave searchQuery empty, the Actor browses that category. |
| How do I filter by condition? | Use the condition input and choose Mint, Good, or Fair. Leave it empty to include all conditions. |
| What is the maximum number of listings I can scrape? | You can set maxItems up to 1,000,000 listings per run. The Actor handles pagination automatically. |
| What data does each listing include? | Each row includes the listing title, price, condition, storage capacity, carrier, seller name, and other details available on the listing page. |
| Can I export the results? | Yes. Results can be saved as CSV, JSON, Excel, or XML, or pushed to Apify's dataset storage. |
| Does this work for all Swappa categories? | The Actor supports all major categories, including cell phones, laptops, tablets, smartwatches, gaming consoles, cameras, and more. |
| Is this legal? | Scraping public data is generally allowed, but you should review Swappa's terms of service and comply with any applicable laws and regulations. |
| Can I schedule this Actor to run automatically? | Yes. On Apify, you can set up a schedule to run the Actor at regular intervals, such as hourly or daily. |
| What if I need data from a specific search query? | Enter your keyword in the searchQuery input, like 'iphone 13' or 'macbook pro', and the Actor will collect matching listings. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Swappa, LLC. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `searchQuery` (type: `string`):

Keyword to search for on Swappa (e.g. 'iphone 13', 'macbook pro', 'ps5'). Leave empty to browse a category.

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

How many listings to collect per run.

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

Filter by Swappa category slug (e.g. 'cell-phones', 'laptops'). Used when searchQuery is empty.

## `condition` (type: `string`):

Filter listings by condition.

## Actor input object example

```json
{
  "searchQuery": "iphone 13",
  "maxItems": 10,
  "category": "cell-phones",
  "condition": ""
}
```

# 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 = {
    "searchQuery": "iphone 13",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/swappa-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 = {
    "searchQuery": "iphone 13",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/swappa-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 '{
  "searchQuery": "iphone 13",
  "maxItems": 10
}' |
apify call parseforge/swappa-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/swappa-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/SNWvRCA12bGCM2Ar4/builds/lMqVLdXgOcbw7aeck/openapi.json
