# Swiggy Restaurants Scraper (`scrapeverse/swiggy-restaurants-scraper`) Actor

Swiggy restaurants around any PIN code, area or coordinates: name, rating, rating count, cuisines, cost for two, delivery time, distance, offers, veg flag. No login.

- **URL**: https://apify.com/scrapeverse/swiggy-restaurants-scraper.md
- **Developed by:** [ScrapeVerse](https://apify.com/scrapeverse) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.37 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### Swiggy Restaurants Scraper: restaurants by PIN code or area

**Swiggy Restaurants Scraper** lists the Swiggy restaurants that deliver to any PIN code, area or coordinates: name, rating, **rating count**, cuisines, cost for two, **delivery time and distance**, pure-veg flag and open status. **No login, no cookies, no Swiggy account.** It costs **$0.40 per 1,000 restaurants**, with a **$0.005** start fee per run.

- **Type a PIN code:** `560034`, `Bandra West, Mumbai` or `12.9352, 77.6245` all work.
- **Each location stands alone:** delivery time and distance are measured from that location, so you can compare areas.
- **Broad coverage by default:** 34 popular searches (biryani, pizza, dosa, cake and more) collect an area's restaurants. Add your own terms to collect only matches.
- **The $5 monthly Apify credit covers about 12,500 restaurants.**

> **Where this fits in ScrapeVerse**
>
> 1. **See who delivers in an area** → **Swiggy Restaurants Scraper** (you are here)
> 2. **Find the same restaurants on Zomato** → [Zomato & Swiggy Restaurant URL Finder](https://apify.com/scrapeverse/zomato-swiggy-url-finder)
> 3. **Get phone numbers and coordinates** → [Zomato Restaurant Details Scraper](https://apify.com/scrapeverse/zomato-restaurant-details-scraper)

***

### What it does

| You give it | You get |
| --- | --- |
| 📍 `560034` | Restaurants delivering to that PIN code, nearest and most popular first |
| 📍 `Koramangala, Bangalore` | The same for an area name |
| 📍 A list of 50 PIN codes | One block of rows per PIN code, labelled with `searchLocation` |
| 🔎 `searchTerms: ["biryani"]` | Only restaurants that match the term |

Use it for cloud-kitchen site selection, competitor density by area, or a list of restaurants to pitch.

### How to scrape Swiggy restaurants

1. Open **Swiggy Restaurants Scraper** and click **Try for free**.
2. Type one or more PIN codes or areas into **Locations**.
3. Set **Restaurants per location** (`30` for a first test).
4. Click **Start**. A location takes about 10 seconds.
5. Open the **Output** tab and export CSV or Excel.

#### Input example

```json
{
  "locations": ["560034", "Bandra West, Mumbai"],
  "maxRestaurantsPerLocation": 200,
  "searchTerms": []
}
```

#### Output example

```json
{
  "restaurantId": "241027",
  "name": "Namaste",
  "url": "https://www.swiggy.com/city/bangalore/namaste-3rd-sector-hsr-layout-rest241027",
  "city": "bangalore",
  "locality": "3rd Sector",
  "area": "Hsr Layout",
  "cuisines": "South Indian, North Indian",
  "rating": 4.3,
  "ratingCount": 42000,
  "ratingCountText": "42K+",
  "costForTwo": 100,
  "isPureVeg": true,
  "deliveryTimeMinutes": 31,
  "deliveryTimeText": "30-35 mins",
  "distanceKm": 3.9,
  "isOpen": true,
  "isPromoted": false,
  "brandId": "20078",
  "searchLocation": "560034",
  "searchLatitude": 12.9261382,
  "searchLongitude": 77.6221091,
  "foundBy": "home listing",
  "status": "success"
}
```

### How much does it cost to scrape Swiggy?

| Restaurants | Price |
| --- | --- |
| 1,000 | $0.405 |
| 10,000 | $4.005 |

Apify compute and proxies are included. A location that saves nothing gets one free status row.

### Limitations

- **What Swiggy shows a logged-out visitor:** no phone numbers, and offers are often hidden until login. Use the Zomato Details Scraper for contact details.
- **Rating counts are rounded by Swiggy** (`22K+`); `ratingCount` is the rounded number.
- **Coverage grows with searches:** busy areas list more restaurants than 34 searches reach. Add specific terms for complete coverage of a niche.
- **No menus:** Swiggy restaurant menus are not part of this Actor.

### FAQ

#### Can I search a whole city?

Add several PIN codes or areas across the city. Each one is searched separately, and a restaurant can appear once per location.

#### Why does the same restaurant appear twice?

Once per location in your input, each time with the delivery time and distance from that location. Within one location, each restaurant is saved once.

#### Is scraping Swiggy legal?

The Actor collects business information Swiggy shows publicly. How you use it is your responsibility under Swiggy's terms and the laws that apply to you.

### Support

Email **support@scrapeverse.in** or open an issue on the **Issues** tab. We answer within 24 hours.

# Actor input Schema

## `locations` (type: `array`):

One per line: a 6-digit PIN code (<code>560034</code>), an area with its city (<code>Koramangala, Bangalore</code>), or coordinates (<code>12.9352, 77.6245</code>). Each location is searched separately, so the same restaurant can appear once per location with that location's delivery time and distance.

## `maxRestaurantsPerLocation` (type: `integer`):

How many restaurants to save for each location. Busy city areas have several hundred.

## `searchTerms` (type: `array`):

Leave empty to cover an area broadly with 34 popular searches (biryani, pizza, north indian, dosa, cake and more). Add your own terms, such as <code>biryani</code> or <code>pure veg</code>, to collect only matching restaurants.

## `maxItems` (type: `integer`):

Stops the run after this many restaurants, across all locations. 0 means no limit. You can also set a maximum cost per run in the run options.

## `proxyConfiguration` (type: `object`):

The default Apify datacenter proxy works and costs least.

## Actor input object example

```json
{
  "locations": [
    "560034"
  ],
  "maxRestaurantsPerLocation": 30,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Restaurants, one row each. Inputs that saved nothing get one row with a `status` that says why.

## `runSummaryHtml` (type: `string`):

What each input saved, and why any input saved nothing.

## `runSummaryJson` (type: `string`):

The same run summary as JSON.

# 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 = {
    "locations": [
        "560034"
    ],
    "maxRestaurantsPerLocation": 30,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeverse/swiggy-restaurants-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 = {
    "locations": ["560034"],
    "maxRestaurantsPerLocation": 30,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeverse/swiggy-restaurants-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 '{
  "locations": [
    "560034"
  ],
  "maxRestaurantsPerLocation": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapeverse/swiggy-restaurants-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeverse/swiggy-restaurants-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/OMtqeTwmwtgEiKgb8/builds/skuadbctk2EuO9Tz5/openapi.json
