# Necc Egg Price Scraper (`akash9078/necc-egg-price-scrap222`) Actor

NECC Egg Price Scraper is a tool that automatically extracts real-time egg prices published by the National Egg Coordination Committee (NECC). It enables users to track daily price fluctuations across different regions, ensuring accurate, up-to-date market data for analysis, trading, or business.

- **URL**: https://apify.com/akash9078/necc-egg-price-scrap222.md
- **Developed by:** [Akash Kumar Naik](https://apify.com/akash9078) (community)
- **Categories:** AI, Developer tools, E-commerce
- **Features:** Limited permissions
- **Stats:** 8 total users, 1 monthly users, 78.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00005 / actor start

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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

NECC Egg Price Scraper is an Apify Actor that scrapes **daily egg prices** from the National Egg Co-ordination Committee (NECC) website for any date range and district. Extract date-wise egg prices across **35+ Indian production and consumption centres** — perfect for **market analysis, price tracking, and agricultural research**.

### What Is NECC Egg Price Scraper?

The Actor automates the NECC egg price portal at [e2necc.com](https://www.e2necc.com/home/eggprice) with a Playwright headless browser. Give it a start date, an end date, and an optional district list, and it returns one dataset item per date with prices for every selected district — plus a formatted Excel (.xlsx) file stored in the Key-Value Store.

### Key Features

- **Scrape NECC egg prices** for any custom date range with datepicker inputs
- **Select specific districts** or scrape all 35+ available centres across India
- **Date-wise daily price extraction** from NECC's official suggested prices
- **Export to Excel (.xlsx)** with organized columns per district
- **JSON dataset output** for API integration and programmatic access
- **Handle ASP.NET form postbacks** reliably with headless browser automation
- **No proxy required** — NECC website has no anti-bot protection

### Supported Districts

**Production Centres:** Namakkal, Warangal, Vijayawada, Chittoor, E.Godavari, W.Godavari, Vizag, Pune, Surat, Ludhiana, Barwala, Hospet, Mysuru, Jabalpur, Raipur, Nagpur, Bhopal, Ajmer, Ahmedabad, Hyderabad

**Consumption Centres:** Mumbai (CC), Delhi (CC), Chennai (CC), Bengaluru (CC), Kolkata (WB), Kanpur (CC), Luknow (CC), Allahabad (CC), Varanasi (CC), Ranchi (CC), Muzaffurpur (CC), Indore (CC), Brahmapur (OD), Berhampur (OD)

Leave the `districts` input empty to scrape all available centres — the Actor auto-detects district names from the NECC website.

### Use Cases

- **Egg price trend analysis** — track daily egg price fluctuations across Indian markets for commodities research
- **Agricultural market monitoring** — monitor NECC suggested prices for production centres (Namakkal, Warangal, Pune) and consumption centres (Mumbai, Delhi, Chennai)
- **Supply chain planning** — use historical egg price data to optimize procurement and logistics for poultry businesses
- **Academic research** — access structured NECC egg price datasets for economic studies on food inflation
- **Competitor intelligence** — compare prevailing prices across regions for trading decisions
- **Automated data pipelines** — integrate NECC egg price data into dashboards, spreadsheets, or analytics platforms via Apify API

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `startDate` | date (YYYY-MM-DD) | Yes | Today | Start date for scraping egg prices |
| `endDate` | date (YYYY-MM-DD) | Yes | Today | End date for scraping egg prices |
| `districts` | array of strings | No | All districts | Select specific districts to scrape. Leave empty for all 35+ centres |

Input example:

```json
{
  "startDate": "2025-04-01",
  "endDate": "2026-04-02",
  "districts": ["Namakkal", "Raipur", "Mumbai (CC)", "Delhi (CC)"]
}
```

### Sample Output

#### Dataset (JSON)

Each item represents one date with prices for all selected districts:

```json
{
  "date": "2026-04-01",
  "Berhampur (OD)": "455",
  "Raipur": "425",
  "Namakkal": "405",
  "Mumbai (CC)": "470",
  "Delhi (CC)": "460"
}
```

#### Excel File (Key-Value Store)

A formatted `.xlsx` file with columns: `Date`, followed by one column per selected district. Downloadable from the run's Key-Value Store.

#### Run Statistics

```json
{
  "totalRows": 367,
  "totalDistricts": 35,
  "districts": ["Namakkal", "Raipur", "Mumbai (CC)"],
  "startDate": "2025-04-01",
  "endDate": "2026-04-02",
  "monthsScraped": 13
}
```

### How to Use NECC Egg Price Scraper

1. Open the [Actor page on Apify Store](https://apify.com/akash9078/necc-egg-price-scraper).
2. Set `startDate` and `endDate` for the range you need.
3. Optionally list specific districts, or leave `districts` empty for all centres.
4. Run the Actor — it fetches available district names, iterates through each month in the range, submits the NECC form month by month, and parses daily rates (days 1-31).
5. Results are filtered to your exact date range and exported to the Apify Dataset (JSON) and an Excel file in the Key-Value Store.

#### Connect via API

cURL:

```bash
curl -X POST "https://api.apify.com/v2/acts/akash9078/necc-egg-price-scraper/runs" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"startDate": "2025-04-01", "endDate": "2026-04-02", "districts": ["Namakkal", "Raipur"]}'
```

Python with the [Apify Client](https://docs.apify.com/api/client/python):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("akash9078/necc-egg-price-scraper").call(
    run_input={
        "startDate": "2025-04-01",
        "endDate": "2026-04-02",
        "districts": ["Namakkal", "Raipur", "Mumbai (CC)"],
    }
)

items = client.dataset(run["defaultDatasetId"]).list_items().items
print(f"Scraped {len(items)} days of NECC egg prices")
```

Node.js with the [Apify Client](https://docs.apify.com/api/client/js):

```javascript
const { ApifyClient } = require('apify-client');

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('akash9078/necc-egg-price-scraper').call({
    startDate: '2025-04-01',
    endDate: '2026-04-02',
    districts: ['Namakkal', 'Raipur', 'Mumbai (CC)', 'Delhi (CC)'],
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Scraped ${items.length} days of egg prices`);
```

### Pricing

This Actor is available under Apify's [Pay Per Event (PPE)](https://docs.apify.com/platform/pricing/pay-per-event) pricing model:

| Event | Price | Description |
|-------|-------|-------------|
| Scraper Start (`scraper-start`) | $0.01 | One-time charge when the scraper begins execution |
| Month Scraped (`month-scraped`) | $0.005 | Charged for each month of egg price data successfully scraped |
| Egg Price Record (`egg-price-data`) | $0.0025 | Charged per daily egg price record pushed to the dataset |

Estimated cost: a 1-month, all-districts run (about 30 daily records) ≈ $0.01 + $0.005 + 30 × $0.0025 ≈ **$0.09**.

### Why Use NECC Egg Price Scraper?

NECC publishes prices month-by-month through an ASP.NET form that is painful to query manually, and there is no official API. This Actor automates the form postbacks, matches district names to daily values, filters to your exact date range, and delivers both JSON and Excel — so a year of historical prices across 35+ centres is one scheduled run.

### Limitations

- NECC publishes data month-by-month; each month requires a separate form submission
- Historical data availability depends on what NECC has published on their website (from 2009 onwards)
- Prices shown are NECC suggested prices, which are advisory and not mandatory
- The website may occasionally return 500 errors during peak hours; retries are handled automatically

### FAQ

#### What are NECC egg prices?

NECC (National Egg Co-ordination Committee) publishes daily suggested egg prices for major production and consumption centres across India. These prices serve as a benchmark for the poultry industry.

#### How many districts are available?

The scraper auto-detects all available districts from the NECC website. Currently there are 35+ centres including Namakkal, Warangal, Mumbai, Delhi, Chennai, Kolkata, and more.

#### Can I scrape only specific districts?

Yes. Use the `districts` input field to select specific centres. Leave it empty to scrape all available districts.

#### What date range can I scrape?

Any range from 2009 (earliest available on NECC) to the current date. The default is set to today's date for single-day lookups.

#### Is the data updated daily?

NECC updates their website with new prices regularly. Run this Actor whenever you need the latest data.

#### Do I need a proxy?

No. The NECC website does not employ anti-bot measures, so proxy is not required.

#### What format is the output?

Data is available as JSON via Apify Dataset and as a formatted Excel (.xlsx) file in the Key-Value Store.

***

*Data sourced from NECC (National Egg Co-ordination Committee). Prices are suggestive only and not mandatory. This Actor is not affiliated with NECC.*

### Related Actors

If you need more India trade and commodity data from Apify, check out my other [Apify Actors](https://apify.com/akash9078):

- [HSN Code Finder India](https://apify.com/akash9078/hsn-code-finder-india)
- [Import Export Leads Finder](https://apify.com/akash9078/import-export-leads-finder)
- [Indian Stocks Financial Data Scraper](https://apify.com/akash9078/indian-stocks-financial-data-scraper)

***

Built and maintained by [akash9078](https://apify.com/akash9078) on the [Apify platform](https://docs.apify.com).

# Actor input Schema

## `startDate` (type: `string`):

Start date for scraping egg prices

## `endDate` (type: `string`):

End date for scraping egg prices

## `places` (type: `array`):

Select places to scrape egg prices. Leave empty to scrape all available places.

## Actor input object example

```json
{
  "startDate": "2026-04-02",
  "endDate": "2026-04-02"
}
```

# Actor output Schema

## `dataset` (type: `string`):

Date-wise egg prices for all selected places in JSON format

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("akash9078/necc-egg-price-scrap222").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("akash9078/necc-egg-price-scrap222").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 '{}' |
apify call akash9078/necc-egg-price-scrap222 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,akash9078/necc-egg-price-scrap222"
        }
    }
}
```

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/ybkTeiLHZObAZpOiC/builds/4mSmbBaQuJQNRnr0e/openapi.json
