# Barnivore Vegan Alcohol Scraper (`crawlerbros/barnivore-scraper`) Actor

Scrape Barnivore, the free public directory of vegan-friendly beer, wine, cider and liquor. Search by name, browse by category or country, and get brewery/winery contact info and vegan status.

- **URL**: https://apify.com/crawlerbros/barnivore-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Automation, Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Barnivore Vegan Alcohol Scraper

Scrape [Barnivore](https://www.barnivore.com), the free, community-maintained directory of vegan-friendly beer, wine, cider and liquor. Find out which drinks are vegan, which brewery/winery/distillery makes them, and get direct company contact info — all without an account or API key.

### What You Get

For every product: name, brand/company (brewery, winery, or distillery), category (beer/wine/cider/liquor), vegan-friendliness status, company address/country, website, phone, email, community verification notes (who last verified the status and roughly when), and a direct link to the product page.

### Modes

| Mode | Description |
|---|---|
| `search` | Free-text search across all categories by product or brand name (e.g. "guinness", "heineken", "jack daniel"). Barnivore's search matches exact substrings and does not stem plurals, so "jack daniel" finds results but "jack daniels" does not. |
| `byCategory` | Browse an entire category — Beer, Wine, Cider, or Liquor — optionally narrowed to one country. |
| `byCountry` | Browse every product made by companies in a given country, across all categories (or one category if specified). |

### Input

- **mode** — `search`, `byCategory`, or `byCountry`.
- **searchQuery** — free-text product/brand name (mode=search).
- **category** — `beer`, `wine`, `cider`, or `liquor`. Required for `byCategory`; optional filter for `search`/`byCountry`.
- **country** — company country, e.g. `United States`, `Germany`, `Belgium`. Required for `byCountry`; optional filter for `search`.
- **veganStatus** — filter to only `vegan`, `not_vegan`, or `unknown` products.
- **fetchDetails** — visit each product's detail page for full company contact info and verification notes (default `true`). Turn off for a faster, lighter run.
- **maxItems** — maximum number of records to return (1-200, default 20).

### Sample Output

```json
{
  "productId": "34727",
  "name": "Guinness",
  "company": "Guinness",
  "category": "beer",
  "veganStatus": "vegan",
  "companyAddress": "Ireland",
  "companyWebsite": "https://www.guinness.com/en",
  "companyEmail": "info@guinness.com",
  "companyUrl": "https://www.barnivore.com/beer/26/guinness",
  "verificationNotes": "Update (October 2025) re: Rockshore ...",
  "verifiedBy": "Jeroen",
  "verifiedAt": "About 6 years ago",
  "productUrl": "https://www.barnivore.com/products/34727-guinness",
  "sourceUrl": "https://www.barnivore.com/search?q=guinness",
  "scrapedAt": "2026-07-01T12:00:00+00:00",
  "recordType": "product"
}
````

### FAQs

**Do I need an account, cookies, or API key?**
No. Barnivore is a fully public directory — this actor uses no login, no cookies, and no paid proxy.

**What does "vegan status" mean?**
Barnivore tracks whether a beer/wine/cider/liquor is made without animal-derived ingredients or processing aids (e.g. gelatin, isinglass, casein, honey). Status is one of `vegan`, `not_vegan`, or `unknown` (not yet confirmed by the community).

**Can I get numeric ratings like RateBeer or BeerAdvocate?**
No — Barnivore does not publish star ratings or review counts. It focuses purely on vegan-friendliness verification. RateBeer's domain is no longer registered and BeerAdvocate actively blocks automated access, so this actor surfaces the closest freely-accessible, reliable alternative: real vegan-certification data for the same beer/wine/spirits universe.

**Does this work for every country?**
Yes — Barnivore lists products from over 80 countries and territories. Use the `country` filter with the company's country name (e.g. `England`, `Brasil`, `Czech Republic` — Barnivore uses its own spelling conventions per entry).

**Are `companyWebsite` links always live?**
`companyWebsite` is a third-party contact link maintained by the Barnivore community, not a URL this actor generates. Every `productUrl` (the Barnivore page itself) is guaranteed reachable, but a small brewery/winery's own website can occasionally go offline over time — the same real-world link decay you'd see in any directory of small producers.

**Where does `companyEmail` come from?**
Barnivore publishes each company's contact email on the product detail page (Cloudflare-obfuscated to deter scraper spam bots; this actor decodes it using Cloudflare's own published encoding scheme). Present whenever the company has a contact email on file.

**Is a phone number included?**
`companyPhone` is the producer's contact phone number as listed on the Barnivore detail page, in whatever local format the community entered it (e.g. `(512) 593-1262`, `0191 447 6543`). It's included whenever the company has a phone number on file.

**What do `verifiedBy` / `verifiedAt` mean?**
Barnivore's vegan status for each product is manually checked by a community volunteer. `verifiedBy` is that volunteer's username; `verifiedAt` is Barnivore's own relative-time label (e.g. "About 6 years ago") — Barnivore does not expose an absolute verification date.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

## `searchQuery` (type: `string`):

Free-text product or brand/brewery name (mode=search).

## `category` (type: `string`):

Alcohol category. Required for mode=byCategory; optional filter for mode=search/byCountry.

## `country` (type: `string`):

Company country, e.g. `United States`, `Germany`, `Belgium`, `France`, `England`. Required for mode=byCountry; optional filter for mode=search.

## `veganStatus` (type: `string`):

Only emit products with this vegan-friendliness status.

## `fetchDetails` (type: `boolean`):

Visit each product's detail page to include company address, website, phone, and verification notes. Slower but richer.

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

Hard cap on emitted records.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "guinness",
  "category": "beer",
  "veganStatus": "",
  "fetchDetails": true,
  "maxItems": 20
}
```

# Actor output Schema

## `products` (type: `string`):

Dataset containing all scraped Barnivore products.

# 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 = {
    "mode": "search",
    "searchQuery": "guinness",
    "category": "beer",
    "veganStatus": "",
    "fetchDetails": true,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/barnivore-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 = {
    "mode": "search",
    "searchQuery": "guinness",
    "category": "beer",
    "veganStatus": "",
    "fetchDetails": True,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/barnivore-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "mode": "search",
  "searchQuery": "guinness",
  "category": "beer",
  "veganStatus": "",
  "fetchDetails": true,
  "maxItems": 20
}' |
apify call crawlerbros/barnivore-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/barnivore-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Barnivore Vegan Alcohol Scraper",
        "description": "Scrape Barnivore, the free public directory of vegan-friendly beer, wine, cider and liquor. Search by name, browse by category or country, and get brewery/winery contact info and vegan status.",
        "version": "1.0",
        "x-build-id": "GilQB1JL4gHazKlau"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~barnivore-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-barnivore-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/crawlerbros~barnivore-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-barnivore-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/crawlerbros~barnivore-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-barnivore-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "byCategory",
                            "byCountry"
                        ],
                        "type": "string",
                        "description": "What to fetch.",
                        "default": "search"
                    },
                    "searchQuery": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Free-text product or brand/brewery name (mode=search).",
                        "default": "guinness"
                    },
                    "category": {
                        "title": "Category",
                        "enum": [
                            "beer",
                            "wine",
                            "cider",
                            "liquor"
                        ],
                        "type": "string",
                        "description": "Alcohol category. Required for mode=byCategory; optional filter for mode=search/byCountry.",
                        "default": "beer"
                    },
                    "country": {
                        "title": "Country",
                        "type": "string",
                        "description": "Company country, e.g. `United States`, `Germany`, `Belgium`, `France`, `England`. Required for mode=byCountry; optional filter for mode=search."
                    },
                    "veganStatus": {
                        "title": "Vegan status filter",
                        "enum": [
                            "",
                            "vegan",
                            "not_vegan",
                            "unknown"
                        ],
                        "type": "string",
                        "description": "Only emit products with this vegan-friendliness status.",
                        "default": ""
                    },
                    "fetchDetails": {
                        "title": "Fetch full product details",
                        "type": "boolean",
                        "description": "Visit each product's detail page to include company address, website, phone, and verification notes. Slower but richer.",
                        "default": true
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Hard cap on emitted records.",
                        "default": 20
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
