# Instacart Product Search Scraper (`ecomscrape/instacart-product-search-scraper`) Actor

Extract comprehensive product data from Instacart.com including prices, sizes, and images across food categories. Perfect for market research, competitive analysis, and inventory tracking with structured JSON output.

- **URL**: https://apify.com/ecomscrape/instacart-product-search-scraper.md
- **Developed by:** [ecomscrape](https://apify.com/ecomscrape) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Security:** Full permissions
- **Stats:** 20 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Contact

If you encounter any issues or need to exchange information, please feel free to contact us through the following link:
[My profile](https://apify.com/ecomscrape)

## **Instacart.com Scraper: Extract Product Data & Pricing Intelligence**

### Introduction

Instacart stands as the leading grocery delivery service in the United States, connecting customers with over 100,000 grocery stores through 1,800+ retail partners. This massive marketplace contains valuable product data across multiple categories including frozen foods, pantry items, deli products, and more. For businesses, researchers, and analysts, accessing this wealth of product information manually would be time-consuming and inefficient.

The Instacart Product Search Scraper addresses this challenge by automating data extraction from Instacart's extensive product catalog. Whether you're conducting market research, tracking competitor pricing, analyzing product availability, or building comprehensive databases, this scraper provides structured access to essential product information that drives informed business decisions.

### Overview of the Instacart Scraper

The Instacart Product Search Scraper is a sophisticated data extraction tool designed to systematically collect product information from specific Instacart category pages. The scraper works across various food categories, extracting products that are typically delivered within 1 hour or available for curbside pickup.

This scraper stands out for its ability to handle multiple product categories simultaneously while maintaining data accuracy and structure. It's particularly valuable for businesses in the food industry, market researchers, price comparison services, and inventory management systems. The tool respects website policies through built-in retry mechanisms and proxy support, ensuring reliable data collection without overwhelming the target servers.

Key advantages include automated data collection from multiple categories, structured output format for easy integration, proxy support for enhanced reliability, and configurable limits to control data volume and processing time.

### Input and Output Details

Example url 1: https://www.instacart.com/categories/316-food/627-frozen-food?page=2

Example url 2: https://www.instacart.com/categories/316-food/844-pantry

Example url 3: https://www.instacart.com/categories/316-food/1268-deli

Example Screenshot of product information page:

![](https://i.ibb.co/zhsGvtqx/Screenshot-from-2025-08-27-18-05-09.png)

#### Input Format

The scraper accepts JSON configuration with several key parameters:

**Input:**

```json
{
  "max_retries_per_url": 2, // Maximum waiting time when accessing the links you provided.
  "proxy": { // Add a proxy to ensure that during the data collection process, you are not detected as a bot.
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL" 
    ],
    "apifyProxyCountry": "SG" // You should choose an Country that coincides with the Country you want to collect data from
  },
  "max_items_per_url": 20,
  "urls": [ 
    "https://www.instacart.com/categories/316-food/627-frozen-food?page=2", 
    "https://www.instacart.com/categories/316-food/844-pantry",
    "https://www.instacart.com/categories/316-food/1268-deli"
    // // Links to product list by query page.
  ]
}
```

**Input Parameters Explained:**

- **max_retries_per_url**: Controls how many times the scraper attempts to access each URL if initial requests fail, preventing data loss from temporary network issues
- **proxy configuration**: Essential for avoiding bot detection and ensuring consistent access to Instacart's servers
- **max_items_per_url**: Limits the number of products extracted per category page, helping manage processing time and data volume
- **urls array**: Contains specific Instacart category URLs targeting different food sections like frozen foods, pantry items, and deli products

#### Output Format

You get the output from the Instacart.com Product Search Scraper stored in a tab. The following is an example of the Information Fields collected after running the Actor.

```json
[ // List of product information
  {
  "id": "16695070",
  "url": "https://www.instacart.com/products/16695070-healthy-choice-cafe-steamers-grilled-chicken-marinara-with-parmesan-9-5-oz",
  "name": "Healthy Choice Café Steamers Grilled Chicken Marinara With Parmesan, Frozen Meal",
  "size": "9.5 oz",
  "landing_param": "16695070-healthy-choice-cafe-steamers-grilled-chicken-marinara-with-parmesan-9-5-oz",
  "image": {
    "id": "5fc2cd43",
    "view_section": {
      "id": "landing_response_backed:00be9620:product_image:b36c301a",
      "product_image": {
        "id": "bb26d648",
        "template_url": "https://www.instacart.com/image-server/{width=}x{height=}/d2lnr5mha7bycj.cloudfront.net/product-image/file/primary_bf1e580b-8c6d-48ff-a845-54efeae65499.jpg",
        "__typename": "Image"
      },
      "__typename": "LandingResponseBackedProductImageSection"
    },
    "__typename": "LandingProductImage"
  },
  "from_url": "https://www.instacart.com/categories/316-food/627-frozen-food?page=2"
}, // ... Many other product details
]
```

The scraper returns structured data for each product found, providing six key fields:

- **ID**: Unique product identifier within Instacart's system, essential for tracking specific items and avoiding duplicates in databases
- **URL**: Direct link to the product page, enabling detailed product examination and providing source verification for extracted data
- **Name**: Complete product title as displayed on Instacart, including brand name, product description, and any relevant specifications
- **Size (pricing)**: Product size information often combined with pricing details, crucial for price-per-unit calculations and inventory planning
- **Landing param**: Technical parameter used for product categorization and internal routing, valuable for understanding Instacart's product organization
- **Image**: Product image URL providing visual reference, essential for product identification and catalog creation

**Sample Output:**

```json
{
  "ID": "12345",
  "URL": "https://www.instacart.com/products/12345-product-name",
  "Name": "Brand X Frozen Pizza Supreme Large 12oz",
  "Size": "12 oz - $8.99",
  "landing_param": "category_316_food_627_frozen",
  "image": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file.png"
}
```

### How to Use the Scraper

**Step 1: Configuration Setup**
Begin by defining your target categories and setting appropriate limits. Choose specific Instacart category URLs that align with your research objectives. Set max_items_per_url based on your data needs - use lower values for quick sampling or higher values for comprehensive analysis.

**Step 2: Proxy Configuration**
Configure the proxy settings to match your target market geography. For US-based data collection, consider using US residential proxies, while international research might require proxies from specific countries where Instacart operates.

**Step 3: URL Selection**
Select category URLs strategically. Focus on active categories with regular product updates such as frozen foods, pantry items, or fresh deli sections. Include page parameters if you need to access products beyond the first page of results.

**Step 4: Data Processing**
Once extraction completes, process the output data according to your needs. The structured format allows easy integration with spreadsheets, databases, or analytics tools. Use the unique ID field to prevent duplicate entries when combining data from multiple scraping sessions.

**Best Practices:** Run the scraper during off-peak hours to reduce load on servers, implement data validation to ensure quality, and regularly update your URL list as Instacart's category structure evolves.

### Benefits and Applications

The Instacart Product Search Scraper delivers significant time savings by automating what would otherwise require hours of manual data collection. Instead of browsing through hundreds of products manually, users can extract comprehensive product information in minutes.

**Practical Applications:**

- **Market Research**: Track product trends, pricing patterns, and availability across different categories
- **Competitive Analysis**: Monitor competitor products, pricing strategies, and market positioning
- **Inventory Management**: Keep track of product offerings and identify potential supply opportunities
- **Price Monitoring**: Establish baseline pricing data for products across multiple categories
- **Business Intelligence**: Create comprehensive databases for strategic decision-making

The structured output format ensures data can be easily integrated into existing business systems, while the proxy support and retry mechanisms provide reliability necessary for production use cases.

### Conclusion

The Instacart Product Search Scraper transforms the complex task of product data collection into a streamlined, automated process. By providing structured access to Instacart's extensive product catalog, it empowers businesses and researchers to make data-driven decisions based on comprehensive market intelligence.

Ready to streamline your product research process? Configure the scraper with your specific category URLs and start extracting valuable Instacart product data today.

## Related Actors

- [**Instacart.com Product Details Scraper**](https://apify.com/ecomscrape/instacart-product-details-scraper): A specialized data extraction solution engineered to harvest comprehensive product information from Instacart.com's.

## Your feedback

We are always working to improve Actors' performance. So, if you have any technical feedback about Instacart.com Product Search Scraper or simply found a bug, please create an issue on the Actor's Issues tab in Apify Console.

# Actor input Schema

## `urls` (type: `array`):

Add the URLs of the Product list page urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `max_items_per_url` (type: `integer`):

Limit the number of items per URL you want to scrape

## `max_retries_per_url` (type: `integer`):

Limit the number of retries for each URL if the scrape is detected as a bot or the page fails to load

## `proxy` (type: `object`):

Select proxies to be used by your scraper.

## Actor input object example

```json
{
  "urls": [
    "https://www.instacart.com/categories/316-food/627-frozen-food?page=2"
  ],
  "max_items_per_url": 20,
  "max_retries_per_url": 2,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.instacart.com/categories/316-food/627-frozen-food?page=2"
    ],
    "max_items_per_url": 20,
    "max_retries_per_url": 2,
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ecomscrape/instacart-product-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": ["https://www.instacart.com/categories/316-food/627-frozen-food?page=2"],
    "max_items_per_url": 20,
    "max_retries_per_url": 2,
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("ecomscrape/instacart-product-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.instacart.com/categories/316-food/627-frozen-food?page=2"
  ],
  "max_items_per_url": 20,
  "max_retries_per_url": 2,
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call ecomscrape/instacart-product-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ecomscrape/instacart-product-search-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hwSbJ3MthuM55lSTk/builds/wK3cSX0YVNS5jlSJa/openapi.json
