# TooGoodToGo Scraper (`saswave/toogoodtogo-scraper`) Actor

$0.5 / 1000 results. Extract Too Good To Go surprise bags around any location using latitude and longitude coordinates. Extracts available offers, store information, pickup times, prices, item categories, and geographic coordinates to help you analyze food-saving opportunities in a specific area.

- **URL**: https://apify.com/saswave/toogoodtogo-scraper.md
- **Developed by:** [SASWAVE](https://apify.com/saswave) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 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

### Too Good To Go Scraper

Discover and collect Too Good To Go surprise bags around any location using latitude and longitude coordinates.

Extracts available offers, store information, pickup times, prices, item categories, and geographic coordinates to help you analyze food-saving opportunities in a specific area.

Use it to find local bakeries, restaurants, grocery stores, and other businesses offering surplus food through toogoodtogo.com from any country / location

### FEATURES

Location-Based Search – Search for surprise bags around any latitude and longitude.

Store Information – Collect store names, IDs, branch details, addresses, and country information.

Geographic Coordinates – Extract store latitude and longitude for mapping and distance analysis.

Surprise Bag Details – Retrieve offer names, item IDs, categories, and subcategories.

Price and Value Data – Collect offer prices, currencies, and stated original values when available.

Availability Tracking – Extract available item quantities and sales-window status.

Pickup Time Information – Get pickup start and end times, plus purchase deadlines.

Store and Offer Images – Collect store logos and surprise bag cover images when available.

Localization Data – Retrieve locale information, such as fr-FR.

Structured JSON Output – Export results for analysis, dashboards, and automated workflows.

Flexible Geographic Coverage – Search different locations by supplying the appropriate coordinates and supported Actor inputs.

### USE CASES

🥐 Find Nearby Surprise Bags

Discover surplus bakery goods, restaurant meals, groceries, and other surprise bags around a chosen location.

📍 Map Too Good To Go Offers

Use store coordinates and addresses to build maps of participating businesses and available food-saving opportunities.

💰 Analyze Prices and Savings

Compare listed prices with stated item values to identify offers with attractive potential savings.

🏪 Research Local Businesses

Collect store names, locations, categories, and offer details to study the distribution of participating businesses.

📊 Monitor Offer Availability

Analyze available quantities, sales-window status, and pickup schedules across locations and collection runs.

🌱 Support Food Waste Reduction

Explore surplus-food availability and identify areas where food-saving opportunities are concentrated.

🤖 Build Data Pipelines

Send structured results to spreadsheets, databases, business intelligence tools, or other data-processing workflows.

### OUTPUT

```json
{
  "store": {
    "storeId": "28488",
    "storeName": "Les mignardises ",
    "branch": null,
    "storeLocation": {
      "address": {
        "country": {
          "isoCode": "FR",
          "name": "France"
        },
        "addressLine": "70 Rue de Neuilly, 92110 Clichy, France",
        "city": "Clichy"
      },
      "location": {
        "latitude": 48.9024358,
        "longitude": 2.303557
      }
    },
    "logoPicture": {
      "pictureId": "53061",
      "currentUrl": "https://images.tgtg.ninja/store/1515170859_dB279PLwC0E7q59FVzlnCx9htSg80XuN.jpg",
      "isAutomaticallyCreated": false
    }
  },
  "displayName": "Les mignardises  (Panier Surprise)",
  "pickupInterval": {
    "start": "2026-10-18T18:00:00Z",
    "end": "2026-10-18T18:30:00Z"
  },
  "purchaseEnd": "2026-10-18T18:30:00Z",
  "itemsAvailable": 5,
  "inSalesWindow": true,
  "localizationCode": "fr-FR",
  "itemTags": [],
  "itemId": "28651",
  "itemPrice": {
    "code": "EUR",
    "minorUnits": 349,
    "decimals": 2
  },
  "itemValue": {
    "code": "EUR",
    "minorUnits": 1200,
    "decimals": 2
  },
  "coverPicture": {
    "pictureId": "924679",
    "currentUrl": "https://images.tgtg.ninja/item/cover/9e559573-bf80-4ca6-834f-d6422e371c8d.jpg",
    "isAutomaticallyCreated": false
  },
  "logoPicture": {
    "pictureId": "53061",
    "currentUrl": "https://images.tgtg.ninja/store/1515170859_dB279PLwC0E7q59FVzlnCx9htSg80XuN.jpg",
    "isAutomaticallyCreated": false
  },
  "name": "Panier Surprise",
  "dietCategories": [],
  "itemCategory": "BAKED_GOODS",
  "itemCategoryV2": "BAKED_GOODS",
  "itemSubCategory": "BAKERY_MISC"
}
```

### 🛟 SUPPORT

Share your runs with the developer team and create issues on error to help us improve actor quality.

You might discover edge case we didn't test yet

We stay available anytime

# Actor input Schema

## `lat` (type: `string`):

No description

## `lng` (type: `string`):

No description

## `max_page` (type: `integer`):

Maximum depth to stop at (0 = no limit)

## `with_stock_only` (type: `boolean`):

Select if needed

## Actor input object example

```json
{
  "lat": "48.9026",
  "lng": "2.30551",
  "max_page": 1,
  "with_stock_only": false
}
```

# Actor output Schema

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

No description

# 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 = {
    "lat": "48.9026",
    "lng": "2.30551"
};

// Run the Actor and wait for it to finish
const run = await client.actor("saswave/toogoodtogo-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 = {
    "lat": "48.9026",
    "lng": "2.30551",
}

# Run the Actor and wait for it to finish
run = client.actor("saswave/toogoodtogo-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 '{
  "lat": "48.9026",
  "lng": "2.30551"
}' |
apify call saswave/toogoodtogo-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,saswave/toogoodtogo-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/lGFTKNC8NLYNXWCaR/builds/xG32aR0hXnOrALoAs/openapi.json
