Swappa Scraper
Extract used electronics listings, device conditions, pricing history, and seller verification data from Swappa. Powered by spider-browser .
Extract data in minutes
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(); Structured data endpoint
Extract structured JSON from swappa.com with a single POST request. AI-configured selectors, cached for fast repeat calls.
curl -X POST https://api.spider.cloud/fetch/swappa.com/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"return_format": "json"}' import requests
resp = requests.post(
"https://api.spider.cloud/fetch/swappa.com/",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={"return_format": "json"},
)
print(resp.json()) const resp = await fetch("https://api.spider.cloud/fetch/swappa.com/", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({ return_format: "json" }),
});
const data = await resp.json();
console.log(data); Data you can extract
Classified ads data
Extract listings, prices, and seller info from swappa.com.
Location targeting
Access location-specific listings with geo-targeted proxies.
Infinite scroll
Navigate paginated results and infinite scroll feeds automatically.
More Classifieds & Marketplace scrapers
Extract classified listings, pricing, location data, and seller contact info from Craigslist across all categories and regions.
Extract product listings, prices, seller profiles, and location data from Facebook Marketplace with anti-bot bypass.
Extract local marketplace listings, pricing, seller ratings, and item conditions from OfferUp classified ads.
Start scraping swappa.com
Get your API key and start extracting data in minutes.