---
type: "firecrawl-provider"
description: "The store's promo codes merged across coupon sites and deduplicated, each with its discount, expiry, when it last worked, a high, medium or low confidence and the sites that reported it, plus every site asked. status is hit, miss, error, budget_exhausted, stopped or no_provider; never treat stopped as a miss. error means every provider asked failed; a miss with summary.providers_failed is not a full miss."
use_when: "When the user wants coupon codes, promo codes or discount codes for a store, e.g. 'any promo codes for nike.com?', 'Brooklinen discount code' or 'a Black Friday coupon for Home Depot'. One call checks up to ten coupon sites (CouponFollow, Honey, Promocodes.com, Coupons.com, Savings.com, DealSea and DealNews, with hotukdeals, mydealz or OzBargain first for UK, German and Australian stores), merges and deduplicates their codes, and puts codes that worked in the last week first, then verified codes and codes more sites reported. Prefer it to calling one coupon site at a time. Pass a domain, store URL or store name. Nothing is checked at a checkout. Provider calls are billed separately; the wrapper is free."
credits_per_call: 0
options: 8
---
# Firecrawl: All coupon codes for a store

The store's promo codes merged across coupon sites and deduplicated, each with its discount, expiry, when it last worked, a high, medium or low confidence and the sites that reported it, plus every site asked. status is hit, miss, error, budget_exhausted, stopped or no_provider; never treat stopped as a miss. error means every provider asked failed; a miss with summary.providers_failed is not a full miss.

## Agent instructions

When the user wants coupon codes, promo codes or discount codes for a store, e.g. 'any promo codes for nike.com?', 'Brooklinen discount code' or 'a Black Friday coupon for Home Depot'. One call checks up to ten coupon sites (CouponFollow, Honey, Promocodes.com, Coupons.com, Savings.com, DealSea and DealNews, with hotukdeals, mydealz or OzBargain first for UK, German and Australian stores), merges and deduplicates their codes, and puts codes that worked in the last week first, then verified codes and codes more sites reported. Prefer it to calling one coupon site at a time. Pass a domain, store URL or store name. Nothing is checked at a checkout. Provider calls are billed separately; the wrapper is free.

- Category file: [Tools category](https://alexandria.firecrawl.dev/agents/categories/tools)
- Provider file: [Provider guide](https://alexandria.firecrawl.dev/agents/providers/firecrawl)
- Provider key: `firecrawl`
- Capability: `coupon-waterfall`
- Cost: 0 credits per call

## Request options

- `store` (string, required): Store domain (brooklinen.com), a store URL, or a store name (Home Depot, 楽天). Reduced to a bare domain, a stem and a display name. A name with no Latin letters or digits has no slug, so slug-keyed providers wait until a provider reports the store's domain. Example: `<store>`
- `country` (string): Market that picks the default provider order. Default: from the domain's TLD (.co.uk GB, .de DE, .com.au AU), otherwise US. Example: `US`
- `mode` (string): first_hit asks one provider at a time and stops at min_codes codes. merge asks every planned provider in parallel. Example: `first_hit`
- `min_codes` (number): first_hit only. Unique unexpired codes needed to stop; with include_expired, expired codes are returned but never count. Example: `1`
- `providers` (string[]): Only these providers, in this order: couponfollow-com, joinhoney-com, promocodes-com, coupons-com, savings-com, dealsea-com, dealnews-com, hotukdeals-com, mydealz-de, ozbargain-com-au. Default: the country's order. Example: `[]`
- `include_expired` (boolean): Also return codes a provider marks expired or whose expiry date has passed. Example: `false`
- `resolve_stores` (boolean): When a guessed slug misses on promocodes-com or coupons-com, spend one search_stores call to find the store's slug. Billed even when it finds nothing. Example: `false`
- `max_credits` (number): Most provider credits the whole call may spend. A provider is started only while its price still fits. Example: `25`

## Request shape

Call `POST https://api.firecrawl.dev/v2/scrape` with `{ alexandria: <request> }` and your Firecrawl API key.

```json
{
  "provider": "firecrawl",
  "capability": "coupon-waterfall",
  "options": {
    "store": "<store>",
    "mode": "first_hit",
    "min_codes": 1,
    "max_credits": 25
  }
}
```

### JavaScript

```javascript
const result = await firecrawl.scrape({
  alexandria: {
    provider: "firecrawl",
    capability: "coupon-waterfall",
    options: {
      store: "<store>",
      mode: "first_hit",
      min_codes: 1,
      max_credits: 25,
    },
  },
});
```

### Python

```python
result = firecrawl.scrape_alexandria({
  "provider": "firecrawl",
  "capability": "coupon-waterfall",
  "options": {
    "store": "<store>",
    "mode": "first_hit",
    "min_codes": 1,
    "max_credits": 25
  }
})
```

### cURL

```sh
curl https://api.firecrawl.dev/v2/scrape \
  -H "Authorization: Bearer $FIRECRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "alexandria": {
    "provider": "firecrawl",
    "capability": "coupon-waterfall",
    "options": {
      "store": "<store>",
      "mode": "first_hit",
      "min_codes": 1,
      "max_credits": 25
    }
  }
}'
```

### CLI

```sh
firecrawl scrape 'firecrawl/coupon-waterfall' \
  --options '{"store":"<store>","mode":"first_hit","min_codes":1,"max_credits":25}'
```


## Response data

The response includes `success`, `provider`, `capability`, `creditsCost` and `data`. These fields and the example below describe the provider payload in `data`.

```json
{
  "status": "<status>",
  "store": {},
  "coupons": [],
  "tried": [],
  "summary": {},
  "providerCredits": 0,
  "maxCredits": 0,
  "billingComplete": false,
  "billingNotice": "<billingNotice>",
  "observed_at": "<observed_at>"
}
```