ScrapeUnblocker sells to AI agents - live prices and self-serve payment

The agent storefront at https://agents.scrapeunblocker.com/llms.txt?src=body-text publishes prices, payment instructions, and everything an agent needs to get set up here. Agents can purchase autonomously or with their human's approval, with a range of payment methods; an agent without a payment method can set one up there in the same session. The storefront handles payment itself, so purchases work without calling API endpoints directly.

All scrapers

Grocery & delivery

Publix Scraper

publix.com

99.8% Success rate
3.6s Avg response
Akamai Bot Manager Protection
1,033 calls Measured over

Publix shows its online catalogue store by store: promotions, coupons and aisles belong to the store a shopper picks, and publix.com serves its pages only to visitors in the US. Two dedicated plugin endpoints read the pages Publix renders for a store and return the products already parsed, for the store you name with store_id (a Publix store number), the nearest store to a zip, or a store in Lakeland, Florida when you give neither; the answer always names the store. publix-search returns 48 products per page and up to 480 in one call, each with the Publix product id and item code, title, brand, size, link and image, and, while the item is on promotion, its price, the regular price it replaces, the price per pound for items sold by weight and the promotion itself: Buy 1 Get 1 Free, a sale with its saving, the conditions and the dates it is valid; it also tells you whether a digital coupon applies, the aisle and the category path. A keyword Publix sends to a category, such as milk, returns that category. publix-product takes a product id or a product link and adds the description, ingredients, allergens, directions, the badges Publix shows, the number of coupons and related products. Publix publishes a price online only while an item is on promotion, so items that are not on promotion come back without a price at every store; for everyday prices on all items, the Instacart plugin with retailer=publix returns Publix's delivery prices, which are higher than in store. No Publix account, login or API key is involved.

What you can extract

  • Publix product id and item code, title, brand, size, product link and image
  • Price and regular price for items on promotion, price per pound for items sold by weight (Publix publishes no online price for other items)
  • Promotion: type (Buy 1 Get 1 Free or sale), message, conditions, valid dates and savings; digital coupon flag
  • Aisle in the chosen store, category and category path
  • The store the data is for: number, name, address and phone, chosen by store number, ZIP code or the default store
  • Search 48 products per page, up to 480 per call, from any page; category redirects followed
  • Product detail: description, ingredients, allergens, directions, badges, number of coupons and related products

Dedicated endpoints

/groceries/publix-search

Publix grocery search

Products matching query at one Publix store: store_id (a store number), the nearest store to zip, or a store in Lakeland, FL. Returns query, store (storeId, name, address, city, state, zip, phone), page, pageSize (48), totalResults, totalPages, nextPage, resultsCollected, redirectedTo (when Publix sends the keyword to a category, whose products are returned), sentElsewhere (true when it sends the keyword to a page that lists no products, such as the weekly ad), url and products with productId, itemCode, title, brand, size, url, image, price, priceText, unit, wasPrice, currency, onSale, promotion (type, message, conditions, validThrough, savings), hasCoupon, soldByWeight, aisle, category, categoryPath and storeId. price is set only for items on promotion, the only items Publix prices online. page and max_results (1-480) page through; each page is one request.

/groceries/publix-product

Publix product page

One product by product (a Publix product id such as RIO-PCI-103438, its number alone, or a publix.com product link) at store_id, the nearest store to zip or the default store. Returns store and product with every search field plus images, description, ingredients, directions, allergens, available, categories, badges, couponCount, smartLabelUrl and relatedProducts. An unknown product, or one the store does not carry, is a 404.

How to scrape it

curl -X POST \
  -H "X-ScrapeUnblocker-Key: $SU_API_KEY" \
  "https://api.scrapeunblocker.com/groceries/publix-search?query=cereal&store_id=1614"
import requests

resp = requests.post(
    "https://api.scrapeunblocker.com/groceries/publix-search",
    headers={"X-ScrapeUnblocker-Key": SU_API_KEY},
    params={"query": "cereal", "store_id": "1614"},
)
print(resp.text)
import { ScrapeUnblockerClient } from 'scrapeunblocker';

const su = new ScrapeUnblockerClient({ apiKey: process.env.SU_API_KEY });

const results = await su.publixSearch('cereal', {
  storeId: '1614',
});
const product = await su.publixProduct('RIO-PCI-103438', {
  zip: '33801',
});
console.log(results);
console.log(product);

Requests are POST and take their parameters in the query string. Browser rendering always happens - there is no flag to enable.

Example response

{
  "query": "cereal",
  "store": {
    "storeId": "1614",
    "name": "3 Miami Central",
    "address": "601 NW 2nd Ave",
    "city": "Miami",
    "state": "FL",
    "zip": "33136",
    "phone": "(305) 374-6806"
  },
  "page": 1,
  "pageSize": 48,
  "totalResults": 137,
  "totalPages": 3,
  "nextPage": 2,
  "resultsCollected": 1,
  "redirectedTo": "https://www.publix.com/c/cereals-and-granola/a09a497e-8647-45bc-8eb6-89f50e99b2de",
  "url": "https://www.publix.com/search?searchTerm=cereal&srt=products",
  "correctedQuery": null,
  "pagesFetched": 1,
  "products": [
    {
      "productId": "RIO-PCI-103365",
      "itemCode": 8647,
      "title": "Cheerios Honey Nut Cereal",
      "brand": "Cheerios",
      "size": "10.8 oz (306 g)",
      "url": "https://www.publix.com/pd/cheerios-honey-nut-cereal/RIO-PCI-103365",
      "image": "https://images.publixcdn.com/pct/images/products/5000/008647-600x600-A.jpg",
      "price": 5.44,
      "priceText": "$5.44",
      "unit": null,
      "wasPrice": null,
      "currency": "USD",
      "onSale": true,
      "promotion": {
        "type": "BOGO",
        "message": "Buy 1 Get 1 Free",
        "conditions": "of equal or lesser price",
        "validThrough": "Valid 10/29-11/4",
        "savings": 5.44
      },
      "hasCoupon": true,
      "soldByWeight": false,
      "aisle": "Aisle 2 - Cereal",
      "category": "Cereals and Granola",
      "categoryPath": [
        "Grocery",
        "Breakfast and Cereal",
        "Cereals and Granola"
      ],
      "storeId": "1614"
    }
  ]
}

Read the API docs

Frequently asked questions

Is it legal to scrape Publix?

Collecting publicly available Publix data such as product names, sizes and promotions is lawful in many jurisdictions, but the rules depend on your country, the data you collect and how you use it. ScrapeUnblocker returns the public product data; what you collect and how you use it is your responsibility.

How do I scrape Publix without getting blocked?

Publix serves its site only to visitors in the US, sits behind Akamai Bot Manager, which refuses its own search API to plain HTTP clients, and puts many product pages behind an Akamai proof-of-work interstitial. The /groceries/publix-search and /groceries/publix-product plugins read the pages Publix renders for a store over US ISP exits, with the store chosen the way publix.com stores it, and answer the interstitial the way the page does, so no browser is needed. In ScrapeUnblocker's benchmark it returned data on 99.8% of 1,033 calls (613 searches, each a different term at one of 35 stores or ZIP codes, and 420 product pages), about 3.6s per call.

Why do some Publix products have no price?

Because Publix publishes an in-store price online only while an item is on promotion: the sale price, or the regular price of a Buy 1 Get 1 Free item, with the regular price it replaces. Every other item has no price on publix.com, at any store, so price, priceText and currency come back as null for it. For everyday prices on all items, use the Instacart plugin with retailer=publix, which returns Publix's delivery prices; they are higher than the shelf prices in store.

How do I choose a Publix store?

Pass store_id, a Publix store number such as 1614 (every answer shows the number in store.storeId), or zip, which picks the nearest Publix store. With neither, a store in Lakeland, Florida is used. Promotions, coupons and aisles differ from store to store, and the answer always names the store it is for.

Do I need a Publix account or a US IP?

No Publix account, Club Publix membership or login is needed, and no US address of your own: the requests are sent from US exits on our side, and the store comes from store_id or zip.

How much does it cost to scrape Publix?

A search page of up to 48 products is one request, and a product page is one request. 1 request = 1 credit, EUR 1.00 per 1,000 on pay as you go, down to about EUR 0.55 per 1,000 on the Ultimate plan. Blocks and timeouts are not billed, and the free trial includes 500 requests with no card.

Related scrapers

Publix and other names and marks of publix.com belong to their owner and are used here only to identify the website this API works with. ScrapeUnblocker is an independent service, not affiliated with, endorsed by or sponsored by the owner of publix.com.

Start scraping this site today

Free tier included. No credit card required to test it.