Skip to main content
AI Studio  add-on for Spider.
Classifieds & Marketplace
swappa.com Verified

Swappa Scraper

Extract used electronics listings, device conditions, pricing history, and seller verification data from Swappa. Built on spider-browser .

Get started Docs
target
swappa.com
success rate
99.9%
latency
~4ms
POST /fetch/swappa.com/
return_format
curl -X POST https://api.spider.cloud/fetch/swappa.com/ \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_format": "json"}'
200 OK · cache hit · response shape
{
  "url": "https://swappa.com/",
  "status": 200,
  "data": {
    "device_name": "string",
    "price": "string",
    "condition": "string",
    "storage": "string",
    "carrier": "string",
    "seller_rating": "string"
  }
}
Quick start

Extract data in minutes.

Structured JSON from swappa.com with a single POST. AI-resolved selectors, cached on the first call.

swappa-scraper.ts
import { SpiderBrowser } from "spider-browser";

const spider = new SpiderBrowser({
  apiKey: process.env.SPIDER_API_KEY!,
});

await spider.connect();
const page = spider.page!;
await page.goto("https://swappa.com/buy/apple-iphone-15-pro");
await page.content();

const data = await page.evaluate(`(() => {
  const listings = [];
  document.querySelectorAll(".listing_row").forEach(el => {
    const device = el.querySelector(".listing_title")?.textContent?.trim();
    const price = el.querySelector(".listing_price")?.textContent?.trim();
    const condition = el.querySelector(".listing_condition")?.textContent?.trim();
    const storage = el.querySelector(".listing_storage")?.textContent?.trim();
    if (device) listings.push({ device, price, condition, storage });
  });
  return JSON.stringify({ total: listings.length, listings: listings.slice(0, 10) });
})()`);

console.log(JSON.parse(data));
await spider.close();
ready to run · spider-browser · TypeScript
Extraction

Fields you can pull.

Device namePriceConditionStorageCarrierSeller rating
Listings

Classified ads data

Extract listings, prices, and seller info from swappa.com.

Geo

Location targeting

Access location-specific listings with geo-targeted proxies.

Pagination

Infinite scroll

Navigate paginated results and infinite scroll feeds automatically.

Related

More Classifieds & Marketplace scrapers.

Start

Start scraping swappa.com.

Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.