# Swappa Scraper: iPhone, MacBook, Galaxy Prices (`getascraper/swappa-scraper`) Actor

Get current used and refurbished iPhone, MacBook, Samsung Galaxy, Google Pixel, and other Swappa.com listings in your spreadsheet in under 60 seconds. Prices, conditions, storage, carrier, seller ratings, and full descriptions.

- **URL**: https://apify.com/getascraper/swappa-scraper.md
- **Developed by:** [GetAScraper](https://apify.com/getascraper) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 5 total users, 0 monthly users, 60.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.87 / 1,000 listing scrapeds

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

### 🔍 What does Swappa Scraper do?

Get current Swappa listings for used and refurbished iPhones, MacBooks, Samsung Galaxies, Google Pixels, iPads, smartwatches, and gaming consoles, ready for your spreadsheet in under 60 seconds. It extracts prices, condition grades, carrier options, storage specs, seller reviews, and images from public archives, meaning no login or complex proxies are required. Ideal for price monitoring, resale arbitrage, trade-in comparisons, and electronics market research.

### 💡 Why use Swappa Scraper?

- **I am an electronics reseller** comparing used phone and laptop prices on Swappa against eBay and Amazon trade-in values to spot high-margin arbitrage deals.
- **I am a deal hunter** watching used iPhone and MacBook pricing to purchase a certified pre-owned device when it hits my target budget.
- **I am a market-research analyst** building weekly reports on secondary electronics market trends, tracking depreciation curves and supply volume across different brands and models.
- **I am a buyback program manager** comparing real-time retail listing prices on Swappa against my store's buyback values to keep our margins competitive.
- **I am an AI developer** training a valuation model on historical retail listings to predict secondary market price changes over time.

### 🚀 How to use Swappa Scraper

1. Create a free Apify account (no credit card needed).
2. Open the Swappa Scraper in the Apify Console.
3. Paste one or more search queries (e.g. `iPhone 14`, `MacBook Pro M1`) or direct Swappa category links.
4. Set optional filters for price range, carrier, device condition, or max results limit.
5. Click **Start** and download your dataset as CSV, Excel, or JSON.

### 📥 Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `searchQueries` | array of strings | No | Fuzzy-match terms (e.g. `iPhone 14` maps to `/listings/apple-iphone-14`). Leave blank if using direct Start URLs. |
| `startUrls` | array of URLs | No | Direct Swappa listings URLs (e.g. `https://swappa.com/listings/apple-iphone-15`). Bypasses search mapping completely. |
| `category` | enum | No | Narrow search queries to a specific device class: `all`, `iphones`, `macbooks`, `galaxy`, `ipads`, `watches`, `consoles`. |
| `minPrice` | integer | No | Only include devices priced at or above this value. 0 = no minimum. |
| `maxPrice` | integer | No | Only include devices priced at or below this value. 0 = no maximum. |
| `carrier` | enum | No | Cellular carrier: `any`, `unlocked`, `verizon`, `att`, `t-mobile`, `sprint`, `xfinity`. |
| `condition` | enum | No | Restrict to device conditions: `any`, `mint`, `good`, `fair`, `poor`. |
| `dataSource` | enum | No | Choose where to pull listings from: `wayback` (recommended, unblocked), `live` (storefront), or `auto` (live then Wayback). |
| `scrapeDetails` | boolean | No | Fetch individual listing detail pages in parallel for full JSON-LD specs. Note: this is slower. Defaults to false. |
| `maxItems` | integer | No | Maximum listings to extract per category. Defaults to 100. |
| `maxConcurrency` | integer | No | Maximum parallel requests (1-20). Defaults to 5. |
| `debugLogging` | boolean | No | Print detailed tags (WAYBACK-CDX, WAYBACK-FETCH, EMIT) to the run log. Defaults to false. |
| `proxyConfiguration` | object | No | Proxy settings. Not needed for the recommended Internet Archive source. |

### 📤 Output

A structured dataset of electronics listings with pricing, condition, carrier, storage, color, seller details, and image URLs. Free users get up to 50 results per run, paid plans scale to 1,000,000.

```json
{
  "productID": "LXKJ43930",
  "title": "Apple iPhone 14 - Cricket, Midnight, 128 GB, A2649",
  "price": 255,
  "currency": "USD",
  "brand": "Apple",
  "color": "Midnight",
  "storage": "128 GB",
  "carrier": "Cricket",
  "model": "A2649",
  "condition": "Mint",
  "availability": "InStock",
  "sellerName": "The Cellular Resource",
  "sellerUrl": "",
  "sellerRating": "",
  "reviewCount": 7936,
  "shippingCost": 0,
  "imageUrl": "https://static.swappa.com/images/cache/a5/34/a53447e9b36d5bd1fd69f22af909e708.jpg",
  "description": "",
  "listingUrl": "https://swappa.com/listing/view/LXKJ43930",
  "waybackUrl": "https://web.archive.org/web/20250912111521id_/https://swappa.com/listings/apple-iphone-14",
  "snapshotDate": "20250912",
  "source": "swappa-wayback"
}
```

### 📊 Data table

| Field | Type | Description |
| --- | --- | --- |
| `productID` | string | Unique Swappa listing identifier (8-character alphanumeric). |
| `title` | string | Full listing title. |
| `price` | number | Listed price in US dollars. |
| `currency` | string | ISO 4217 currency code, always USD. |
| `brand` | string | Device brand (Apple, Samsung, Google, etc.). |
| `color` | string | Device color (Midnight, Starlight, etc.). |
| `storage` | string | Storage capacity (128 GB, 256 GB, etc.). |
| `carrier` | string | Cellular carrier (Unlocked, Verizon, AT\&T, T-Mobile, etc.). |
| `model` | string | Apple-style hardware model number (A2649, etc.). |
| `condition` | string | Device condition grade (Mint, Good, Fair, Poor). |
| `availability` | string | Listing availability, always InStock. |
| `sellerName` | string | Display name of the seller. |
| `sellerUrl` | string | Link to the seller profile (only present in detail mode). |
| `sellerRating` | string | Seller rating out of 5 stars (only present in detail mode). |
| `reviewCount` | number | Total number of seller reviews. |
| `shippingCost` | number | Shipping cost in USD (0 = free shipping). |
| `imageUrl` | string | Primary listing image URL. |
| `description` | string | Detailed seller description or battery health summary. |
| `listingUrl` | string | Canonical link to the live listing. |
| `waybackUrl` | string | Full Wayback snapshot URL. |
| `snapshotDate` | string | Date the Wayback snapshot was captured (YYYY-MM-DD). |
| `source` | string | Data origin (`swappa-wayback`). |

### 💰 Pricing

The Actor costs **$7.00 per 1,000 results**. A typical run extracting 100 listings costs about $0.70. No proxy bandwidth is consumed for the recommended archive source, so your run costs stay at the absolute minimum.

### ⭐ Enjoying Swappa Scraper?

<table width="100%">
<tr>
<td style="padding:20px 24px 14px;background:#F1F9F4;border:1px solid #F1F9F4;border-left:5px solid #16A34A;border-radius:10px 10px 0 0">
<span style="font-size:20px;letter-spacing:4px">⭐ ⭐ ⭐ ⭐ ⭐</span><br>
<span style="font-size:17px;font-weight:800;color:#1C1917">If this Actor helped you spot a used-electronics arbitrage deal, leave a quick review.</span><br>
<span style="font-size:14px;color:#57534E">A 5-star rating takes 10 seconds and helps other resellers and deal hunters find it. Your feedback also tells us what to build next.</span>
</td>
</tr>
<tr>
<td style="padding:0;background:#16A34A;border:1px solid #F1F9F4;border-top:none;border-radius:0 0 10px 10px;text-align:center">
<a href="https://apify.com/getascraper/swappa-scraper/reviews" style="display:block;padding:13px 16px;color:#FFFFFF;text-decoration:none;font-weight:800;font-size:15px;letter-spacing:0.3px">★&nbsp;&nbsp;Rate this Actor on Apify</a>
</td>
</tr>
</table>

### ✨ Tips or advanced options

- **Use the Wayback Machine source by default.** It is unblocked and costs $0 in proxy fees. It fetches the latest available snapshot of Swappa's listings and extracts clean product data.
- **Set filters to slim down the run.** Use the Carrier, Price, and Condition filters to target the exact listings you need. Filters are applied during extraction to save you time.
- **List-only mode is 10x faster.** Keep `scrapeDetails: false` (the default) to capture listings straight from the index page. Turn it on only if you need full seller reviews, shipping details, and descriptions.
- **Direct links bypass search.** Paste category URLs directly into `startUrls` to bypass search mapping and scrape niche models or accessories instantly.
- **Data snapshots are reproducible.** Because the snapshots are immutable, running the same Wayback URL with the same parameters will always produce identical, reliable results, which is perfect for backtesting and price history comparison.

### ❓ FAQ, disclaimers, and support

##### Is the Swappa scraper legal and compliant?

Yes. The Swappa scraper reads from the public Internet Archive Wayback Machine, which only crawls public web pages. It does not access private databases or require accounts. You are responsible for compliance with Swappa terms of service and applicable local laws.

##### Does this scraper get blocked by Cloudflare?

No. While direct cloud access to Swappa is heavily filtered by Cloudflare, our Wayback Machine route pulls data from public archives which are unblocked. This ensures your runs compile successfully and reliably on every single attempt.

##### How fresh is the pricing data?

The public archive snapshots are typically 1-7 days behind Swappa's live storefront. For price monitoring, market research, and trade-in comparison, this is fresh enough. If you require sub-second live pricing, you will need to enable live mode combined with residential proxies.

##### Which Swappa models and categories are supported?

All major consumer electronics classes, including iPhones, MacBooks, iPads, Samsung Galaxies, Google Pixels, smartwatches, and gaming consoles (PS5, Xbox, Nintendo Switch). You can filter the catalog by carrier, price, or condition grade.

**Disclaimer:** This Actor accesses public Internet Archive data only. It does not bypass authentication, paywalls, or anti-bot systems on the live Swappa site. Swappa is the registered trademark of Swappa, LLC. This Actor is not affiliated with, endorsed by, or sponsored by Swappa, LLC.

### 🔗 Other actors

- [Cashify India Scraper](https://apify.com/getascraper/cashify-scraper) ↗ - tracks used device buyback and resale prices in India.
- [Whatnot Scraper](https://apify.com/getascraper/whatnot-scraper) ↗ - extracts live shopping shows, products, and sellers.
- [ShopGoodwill Scraper](https://apify.com/getascraper/shopgoodwill-scraper) ↗ - pulls active and sold charity auction listings.
- [AuctionNinja Scraper](https://apify.com/getascraper/auctionninja-scraper) ↗ - collects estate sale and online auction listings.
- [Mercari US Scraper](https://apify.com/getascraper/mercari-us-scraper) ↗ - extracts sold prices, conditions, and sellers on Mercari.

# Actor input Schema

## `searchQueries` (type: `array`):

Fuzzy-match terms (e.g. 'iPhone 14' maps to '/listings/apple-iphone-14'). Leave blank if using direct Start URLs.

## `startUrls` (type: `array`):

Direct Swappa listings URLs (e.g. 'https://swappa.com/listings/apple-iphone-15'). Bypasses search mapping completely.

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

Narrow search queries to a specific device class (e.g. iPhones, MacBooks, iPads).

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

Only include devices priced at or above this value. 0 = no minimum.

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

Only include devices priced at or below this value. 0 = no maximum.

## `carrier` (type: `string`):

Restrict to listings under this cellular network.

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

Restrict to listings matching this physical condition grade.

## `dataSource` (type: `string`):

Where to pull listings from. Wayback Machine is unblocked and costs $0 in proxies. Live storefront is often blocked.

## `scrapeDetails` (type: `boolean`):

Fetch individual listing detail pages in parallel for JSON-LD specs. Note: this is slower and multiplies requests.

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

Maximum number of listings to output per category (0 = unlimited).

## `maxConcurrency` (type: `integer`):

Maximum parallel requests (1-20). Higher is faster but may trigger CDX rate limits.

## `debugLogging` (type: `boolean`):

Print granular tracing tags (WAYBACK-CDX, WAYBACK-FETCH, EMIT) to the run logs.

## `proxyConfiguration` (type: `object`):

Proxy options. Required only if fetching from the live Swappa storefront.

## Actor input object example

```json
{
  "searchQueries": [
    "iPhone 14"
  ],
  "startUrls": [],
  "category": "all",
  "minPrice": 0,
  "maxPrice": 0,
  "carrier": "any",
  "condition": "any",
  "dataSource": "wayback",
  "scrapeDetails": false,
  "maxItems": 100,
  "maxConcurrency": 5,
  "debugLogging": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "searchQueries": [
        "iPhone 14"
    ],
    "startUrls": [],
    "category": "all",
    "minPrice": 0,
    "maxPrice": 0,
    "carrier": "any",
    "condition": "any",
    "dataSource": "wayback",
    "scrapeDetails": false,
    "maxItems": 100,
    "maxConcurrency": 5,
    "debugLogging": false,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getascraper/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 = {
    "searchQueries": ["iPhone 14"],
    "startUrls": [],
    "category": "all",
    "minPrice": 0,
    "maxPrice": 0,
    "carrier": "any",
    "condition": "any",
    "dataSource": "wayback",
    "scrapeDetails": False,
    "maxItems": 100,
    "maxConcurrency": 5,
    "debugLogging": False,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("getascraper/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 '{
  "searchQueries": [
    "iPhone 14"
  ],
  "startUrls": [],
  "category": "all",
  "minPrice": 0,
  "maxPrice": 0,
  "carrier": "any",
  "condition": "any",
  "dataSource": "wayback",
  "scrapeDetails": false,
  "maxItems": 100,
  "maxConcurrency": 5,
  "debugLogging": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call getascraper/swappa-scraper --silent --output-dataset

```

## MCP server setup

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