Skip to main content
AI Studio  add-on for Spider.
purple.com

Purple Scraper

Extract mattress and comfort product data, GelFlex grid specs, and pricing from Purple.

No key required
curl -X POST https://api.spider.cloud/scrape \
  -H "Content-Type: application/json" \
  -d '{"url": "https://purple.com/", "return_format": "markdown"}'

This exact call produced the response beside it. Get a key →

Content
120 lines 6.3 KB markdown
Render
No browser plain request is enough
Fetch time
179 ms one measured fetch
This fetch cost
$0.000795 bandwidth plus compute
Shop Purple Mattresses: Less pain. Better sleep. https://purple.com/
Learn what makes us different
Mattresses recommended for you
The GelFlex Grid contours to your body and draws away heat. Find your perfect sleep position, trigger your natural sleep cycle +drift off effortlessly.
The GelFlex Grid adapts instantly to absorb motion, equalize pressure, and balance temperature. Sleep deeper without interruptions or heat spikes.
The GelFlex Grid eases strain on joints + tender spots while aligning your spine. Wake up restored and ready for the day with less morning stiffness.
Get your mattress shipped straight to you at no extra cost – with complimentary in-home setup available for select mattresses.
If there's something wrong with your mattress, we'll replace it for up to 10 years, starting from the date of original purchase.
Find a lower price for your mattress, we’ll match it.
*according to 125k+ 5-star reviews*
> > The first night we slept on it...all we could say was how amazing we felt! We both woke refreshed and to my excitement I had no backaches!! Heidi R. PurplePlus® Mattress * Hot sleepers
> > It relieves every pressure point. It aligned my spine. It supports you, keeps you cool and alleviates pressure points without that sunken-in feeling.
> > I love this mattress! My chiropractor recommended it. I sleep well & wake without body pain. I also don't feel my spouse move which is a plus. Julie F. RestorePlus® Hybrid Mattress Next Step Next Step Go to slide 1 of 3 Go to slide 2 of 3 Go to slide 3 of 3 * Aches + pains
> > The first night we slept on it...all we could say was how amazing we felt! We both woke refreshed and to my excitement I had no backaches!!
> > It relieves every pressure point. It aligned my spine. It supports you, keeps you cool and alleviates pressure points without that sunken-in feeling. Daniel M. The Purple Mattress® * Couples
HTTP 200

You just saw the output.

That was one page. A key runs the same call across every URL on purple.com, with browser rendering, proxies, and concurrency. Sign up and a free balance lands on your account. No card required to test.

  • Free balance on signup, no card
  • Failed requests cost $0
  • robots.txt respected by default

The same call, in code.

The keyless call above returns markdown. These examples add a key, so you get browser rendering, proxies, and concurrency on purple.com.

purple-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://purple.com/mattresses");

// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();

console.log(data);
await spider.close();
ready to run · spider-browser, no selectors

Ready for volume? Get an API key →

Fields you can pull.

Product namePriceSize optionsComfort levelGrid typeRatingWarranty

Spider names these from the page. The capture above came back as markdown; the same call with return_format: "json" returns them as keys.

What purple.com costs to scrape.

The capture above cost $0.000795 to fetch. Pricing is $1 per GB of pre-transformation bandwidth plus $0.001 per CPU minute, so a page like this one lands at a fraction of a cent. Failed requests are billed at $0.

  • Free balance on signup
  • No card required to test
  • Balance never expires
See the full pricing →

More E-Commerce scrapers.

Start scraping purple.com.

You already have the call. A key raises the rate limit and turns on browser rendering, proxies, and concurrency. Balance never expires, and top-ups go through secure checkout.