# Swiggy City Restaurant Ratings & Delivery Data Extractor (`dataspryva/swiggy-city-restaurant-ratings-and-delivery-data`) Actor

Get Swiggy restaurant listings for major Indian cities with ratings, cuisines, cost for two, delivery time, and live offers. Filter by cuisine, minimum rating, or vegetarian-only.

- **URL**: https://apify.com/dataspryva/swiggy-city-restaurant-ratings-and-delivery-data.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Automation, E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

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

Learn more: https://docs.apify.com/actors/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 City Restaurant Ratings & Delivery Data Extractor

Pull restaurant listings from [Swiggy](https://www.swiggy.com), India's major food-delivery platform, for any of eight supported cities. Get ratings, cuisines, cost-for-two, delivery estimates, and live offer text, with optional filters for cuisine type, minimum rating, and vegetarian-only restaurants.

### What this actor does

- Lists restaurants delivering in a chosen Indian city, paging through Swiggy's own listing feed automatically up to `maxItems`.
- Filters results by cuisine keyword, minimum average rating, or vegetarian-only restaurants.
- Returns each restaurant's cost-for-two estimate, delivery time, rating, and any active offer banner.
- Builds a direct Swiggy listing URL for every restaurant from its ID and name.
- Empty fields are omitted from records — a restaurant with no coordinates or no active offer simply won't carry those keys.

### Output per restaurant

- `restaurantId` — Swiggy's internal restaurant ID
- `name` — restaurant name
- `city`, `area`, `address` — location details
- `latitude`, `longitude` — coordinates, when Swiggy reports them
- `rating`, `ratingCount` — average rating (0–5) and how many ratings it's based on
- `costForTwo` — Swiggy's own cost-for-two estimate text
- `deliveryTimeMinutes` — estimated delivery time in minutes
- `cuisines[]` — cuisine types served
- `imageUrl` — restaurant banner/cover image
- `isVeg` — `true` when the listing is marked pure-vegetarian
- `offerText` — the current promotional offer headline, when one is running
- `isOpen` — whether the restaurant is currently accepting orders
- `sourceUrl` — the restaurant's Swiggy listing page
- `recordType: "restaurant"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `city` | string | `mumbai` | City to scrape: `mumbai`, `delhi`, `bangalore`, `hyderabad`, `pune`, `chennai`, `kolkata`, or `ahmedabad`. |
| `cuisine` | string | – | Keep only restaurants whose cuisines include this text (e.g. `biryani`, `pizza`). |
| `minRating` | number | – | Keep only restaurants rated at least this (1.0–5.0). |
| `vegOnly` | boolean | `false` | Keep only restaurants marked pure-vegetarian. |
| `maxItems` | integer | `20` | Maximum restaurants to return (1–500). |

#### Example: top-rated biryani spots in Hyderabad

```json
{
  "city": "hyderabad",
  "cuisine": "biryani",
  "minRating": 4.0,
  "maxItems": 30
}
```

#### Example: vegetarian restaurants in Ahmedabad

```json
{
  "city": "ahmedabad",
  "vegOnly": true,
  "maxItems": 50
}
```

#### Example: broad listing for one city

```json
{
  "city": "bangalore",
  "maxItems": 100
}
```

### Use cases

- **Food-delivery market research** comparing cuisine mix, pricing, and delivery times across Indian cities.
- **Competitive restaurant intelligence** tracking ratings and active offers for a city's restaurant scene.
- **Cuisine discovery apps** building a curated, filtered restaurant list by cuisine or rating.
- **Vegetarian dining directories** pulling only `vegOnly` listings for a city.
- **Local business analytics** monitoring which restaurants are currently open and what they're promoting.

### FAQ

**Does this need a Swiggy account or API key?**
No. It reads Swiggy's public listing feed, which requires no login.

**Which cities are supported?**
Mumbai, Delhi, Bangalore, Hyderabad, Pune, Chennai, Kolkata, and Ahmedabad.

**Why is `rating` or `ratingCount` missing on some restaurants?**
Those fields only appear when Swiggy's listing includes a parsed rating value; new or unrated restaurants omit them.

**What does `offerText` show?**
The headline of whatever promotional offer Swiggy is currently displaying for that restaurant (e.g. a discount banner). It's left out entirely when no offer is running.

**Can I combine `cuisine`, `minRating`, and `vegOnly` filters?**
Yes — all three filters apply together, narrowing the listing feed before `maxItems` is applied.

**How current is the data?**
Each run queries Swiggy's listing feed live, so ratings, offers, and open/closed status reflect the current state at run time.

**Is this affiliated with Swiggy?**
No. This is an independent third-party actor and is not affiliated with Swiggy.

# Actor input Schema

## `city` (type: `string`):

Indian city to scrape restaurants from

## `cuisine` (type: `string`):

Filter restaurants by cuisine type (e.g. 'pizza', 'biryani')

## `minRating` (type: `number`):

Minimum rating filter (1.0 to 5.0)

## `vegOnly` (type: `boolean`):

Return only vegetarian restaurants

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

Maximum number of results to return

## Actor input object example

```json
{
  "city": "mumbai",
  "vegOnly": false,
  "maxItems": 20
}
```

# Actor output Schema

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

Dataset of scraped records.

# 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 = {
    "city": "mumbai",
    "vegOnly": false,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/swiggy-city-restaurant-ratings-and-delivery-data").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 = {
    "city": "mumbai",
    "vegOnly": False,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/swiggy-city-restaurant-ratings-and-delivery-data").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 '{
  "city": "mumbai",
  "vegOnly": false,
  "maxItems": 20
}' |
apify call dataspryva/swiggy-city-restaurant-ratings-and-delivery-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/swiggy-city-restaurant-ratings-and-delivery-data"
        }
    }
}
```

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/PKJFwVQVEPJcp0CDQ/builds/aLQ1nkhEQBQrsTq5h/openapi.json
