API reference

Base URL: https://scraperfeeds.com/api/public/v1

Authentication

Create an API key in your dashboard. Keys start with sf_live_ (older ff_live_ keys still work) and are shown only once — store them securely. Send it as a bearer token or the x-api-key header.

curl https://scraperfeeds.com/api/public/v1/feeds/cannabis-deals-api \
  -H "Authorization: Bearer $SCRAPERFEEDS_API_KEY"

Endpoints

GET/v1/feeds/{slug}

Returns the latest records for a subscribed feed. Query params are passed as filters (e.g. city, state, zip). Add format=csv for CSV.

POST/v1/tools/scrape

Scrape a single URL (beta).

POST/v1/tools/batch-scrape

Submit a batch scrape job (beta).

POST/v1/tools/contacts

Find business contacts for a domain (beta).

POST/v1/tools/events

Extract events from an ICS or calendar URL (beta).

Rate limits

Each key is limited to 60 requests per minute. Exceeding the limit returns 429. Paid tiers are coming soon.

Openings API

Query pre-opening and recently opened businesses (within 30 days) built from public permits, coming-soon listings, local news, and hiring signals. Authenticate with your sf_live_ key.

GET/v1/openings/count

Returns total matching active openings plus counts by contact_level (basic, contact, owner) and category. Query params: state, city, zip, radius_miles, categories (csv), stage (csv), opening_within_days, min_contact_level, first_seen_after, include_unnamed (boolean, default false), is_chain (boolean, filter national/regional chains vs independent businesses). Records flagged as existing_business, unmanned kiosks/vending/ATMs/EV chargers, and placeholder-named permit records are excluded by default. Counts also include independent_count, chain_count, and by_opening_confidence (low, med, high).

POST/v1/openings/search

Accepts the same filters (including include_unnamed, default false) plus limit (max 500), cursor, exclude_ids[], and preview (boolean). With preview: true returns up to 5 masked sample rows (partially masked name, city/state, category, stage, expected month, contact_level, opening_confidence, signal_types — no address or contact fields). Full rows include opening_confidence and the public opening_evidence used to assess it. Confidence combines listing review/status evidence with permit stage; it is not a guarantee that the business will open.

GET/v1/openings/{id}

Fetch a single full opening record and all observed signals by its stable opaque ID.

GET/v1/openings/states

Returns per-state totals of sellable records by contact_level, category, independent_count / chain_count, plus each state's covered metros and last-scraped timestamp so storefronts can show which states are available now.

GET/v1/openings/coverage

Check whether an area has been scraped recently, when it was last scraped, which sources apply (new Google listings, registered city permit feeds, state liquor feeds, news), and current sellable record counts. Query params: state, city.

POST/v1/openings/requests

Run an on-demand area scrape for { geo: { state, city, zip, radius_miles }, categories: [...] }. Runs new Google listings, matching registered permit feeds, state liquor feeds where available, one category news search, plus address resolution and contact enrichment. Repeat requests for the same area and categories within the 7-day cache window return immediately with status: "done" and cached: true. Subject to per-request and daily spend caps.

GET/v1/openings/requests/{id}

Check status (queued, running, done, failed), new_records, named_records, cached, and spend_usd for an on-demand request.

# Count matching openings in Michigan
curl "https://scraperfeeds.com/api/public/v1/openings/count?state=MI&categories=restaurant,coffee/cafe&min_contact_level=contact" \
  -H "Authorization: Bearer $SCRAPERFEEDS_API_KEY"

# Preview up to 5 masked rows
curl -X POST "https://scraperfeeds.com/api/public/v1/openings/search" \
  -H "Authorization: Bearer $SCRAPERFEEDS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"state":"MI","categories":["restaurant"],"preview":true}'

External menu worker

Base: https://scraperfeeds.com/api/public/worker/v1. Send x-worker-key: $SCRAPER_WORKER_KEY. Public menus only: honor robots.txt, identify ScraperFeeds, pace one request/second per host, no challenge bypass or logins.

POST /claim

{
  "worker_id": "fly-menu-1",
  "platforms": [
    "dutchie",
    "weedmaps"
  ],
  "limit": 20
}
{
  "jobs": [
    {
      "id": "job-uuid",
      "dispensary_id": "store-uuid",
      "platform": "weedmaps",
      "target_url": "https://weedmaps.com/dispensaries/store",
      "tier": "priority"
    }
  ],
  "lease_seconds": 600,
  "retry_after_seconds": 0,
  "throttled": null,
  "activation_backlog": 1
}

Job fields: id, dispensary_id, platform, target_url, tier, priority, due_at, status, attempts, claimed_by, claimed_at, lease_expires_at, last_error, result_counts, result_status, created_at, finished_at, chunk_total, snapshot_at. Claims are atomic and have ten-minute leases. Back-pressure: when menus are waiting to activate, the database is slow, or the per-minute claim cap is reached, fewer or no jobs are returned with retry_after_seconds (also sent as a Retry-After header) and throttled set to activation_backlog, database_slow, activation_stalled or claim_rate. Sleep that long before claiming again.

POST /heartbeat

{
  "worker_id": "fly-menu-1",
  "job_ids": [
    "job-uuid"
  ]
}

Returns { jobs: [{ job_id, lease_expires_at }] }. Requires owned, unexpired leases; maximum 20 jobs.

POST /result

{
  "worker_id": "fly-menu-1",
  "job_id": "job-uuid",
  "status": "ok",
  "complete": true,
  "chunk_index": 0,
  "chunk_total": 1,
  "store_meta": {
    "platform_store_id": "retailer-id"
  },
  "items": [
    {
      "external_product_id": "product-id",
      "external_variant_id": "variant-id",
      "product_name": "Product name",
      "brand_name": "Brand",
      "category": "Flower",
      "subcategory": null,
      "strain": "Hybrid",
      "thc_percentage": 24,
      "cbd_percentage": 0,
      "weight": "3.5g",
      "total_grams": 3.5,
      "price": 25,
      "original_price": 30,
      "is_deal": true,
      "in_stock": true,
      "image": null,
      "source_url": "https://store.example/menu"
    }
  ]
}

Up to 5,000 items/call (500 recommended), 100 zero-based chunks. Product/variant IDs, product name and numeric price required. Aliases accepted: name, brand, strain_type, thc, cbd, size_label and grams. Intake only validates and stores the chunk, then returns 202. When the final chunk arrives with complete: true and every earlier chunk is present, the menu activates in the background (price history, out-of-stock marking and comparisons follow automatically). Identical retries are safe; a different payload for an already-received chunk returns 409. Failed or partial pulls never deactivate existing menus. Intake is capped per minute: 429 means resend the same chunk after retry_after_seconds.

{
  "job_id": "job-uuid",
  "status": "claimed",
  "activation": "awaiting_chunks",
  "received_chunks": 1,
  "chunk_total": 2
}
{
  "job_id": "job-uuid",
  "status": "staged",
  "activation": "queued",
  "received_chunks": 2,
  "chunk_total": 2,
  "items": 2140
}

POST /fail

{
  "worker_id": "fly-menu-1",
  "job_id": "job-uuid",
  "status": "challenge",
  "message": "Public menu requires a challenge"
}

Status: blocked, challenge, error or bad_url (the URL is not a store menu; it stops being queued). Returns { job_id, status: "failed", crawl_status }. Empty pulls use /result with status empty, complete false and items []. Errors: { error: { status, message }, retry_after_seconds? }; 400 invalid payload, 401 bad key, 409 lease/chunk conflict, 429 intake cap (retry), 503 database busy or unconfigured (retry after the given seconds; nothing was stored).

Response format

Feed JSON responses contain data and meta. When the scraper is not configured, sample responses have meta.sample: true; CSV responses use the x-scraperfeeds-sample header. Tool output follows the connected scraper’s response format.

{
  "data": [ { "...": "..." } ],
  "meta": { "count": 50, "page": 1, "next_page": 2 }
}

Errors

{ "error": { "status": 403, "message": "Not subscribed to this feed" } }
  • 401 missing, invalid or revoked key
  • 403 not subscribed to the feed
  • 404 feed not found or not yet available
  • 503 scraper not configured
  • 502 scraper request failed
  • 429 rate limit exceeded