# EU Flavourings (FIP) & CosIng Compliance Checker (`alexsyin/eu-flavour-cosing-compliance`) Actor

Batch-check CAS numbers, flavourings, fragrance allergens, and INCI ingredients against official European Commission databases: EU Food Flavourings & Additives (FIP, EC 1334/2008) and EU CosIng (EC 1223/2009 Annex II–VI). Built for compliance teams, formulators, n8n workflows, and AI Agents via MCP.

- **URL**: https://apify.com/alexsyin/eu-flavour-cosing-compliance.md
- **Developed by:** [Shilin (Alex) Yin](https://apify.com/alexsyin) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 substance compliance screeneds

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

## EU Flavourings (FIP) & Cosmetics / Fragrance (CosIng) Compliance Checker

Batch-screen **CAS numbers, flavouring substances, fragrance allergens, and INCI ingredients** directly against two official European Commission regulatory databases in one call:

1. **EU Food & Feed Information Portal (DG SANTE FIP)** — Union list of authorised food flavourings (**Regulation (EC) No 1334/2008**), food additives (**EC 1333/2008**), and smoke flavourings.
2. **EU CosIng Database (DG GROW)** — Cosmetic & fragrance ingredient inventory and **Annex II (Prohibited) / Annex III (Restricted & Fragrance Allergens) / Annex IV–VI** under **Regulation (EC) No 1223/2009**.

Built for **e-liquid & flavouring formulators, fragrance/cosmetics compliance teams, regulatory consultants, n8n/Make workflows, and AI Agents via MCP (`mcp.apify.com`)**.

### Why use this Actor?

- **Deterministic official EU data**: LLMs hallucinate CAS numbers and EU Annex II/III restrictions—this MCP tool queries live European Commission endpoints directly.
- **Auto-detects CAS numbers vs substance/INCI names**: Pass mixed lists like `["121-33-5", "Menthol", "Linalool"]`.
- **Fast & low-cost**: Pure async HTTP JSON queries (256 MB RAM, zero headless browser overhead).

### Input Example

```json
{
  "queries": ["121-33-5", "Menthol", "Linalool"],
  "databases": ["eu_fip", "eu_cosing"],
  "maxMatchesPerSource": 10
}
```

### Output Example

```json
{
  "query": "121-33-5",
  "queryType": "cas_number",
  "jurisdiction": "EU",
  "euFoodFlavouringAuthorized": true,
  "euFoodAdditiveAuthorized": false,
  "euSmokeFlavouringAuthorized": false,
  "euCosmeticProhibitedAnnexII": false,
  "euCosmeticRestrictedAnnexIII": true,
  "cosingAnnexes": ["III"],
  "cosingRestrictions": ["III/346"],
  "casNumbers": ["121-33-5"],
  "ecNumbers": ["204-465-2"],
  "fipMatchCount": 2,
  "cosingMatchCount": 2,
  "fipMatches": [...],
  "cosingMatches": [...]
}
```

### Disclaimer

Data is retrieved live from public European Commission databases for compliance screening and research purposes. Always verify final regulatory submissions against the Official Journal of the European Union.

# Actor input Schema

## `queries` (type: `array`):

List of CAS numbers (e.g. '121-33-5', '89-78-1') and/or substance/flavouring/INCI names (e.g. 'Vanillin', 'Menthol', 'Linalool') to screen in batch. Automatically detects CAS vs name.

## `databases` (type: `array`):

Select which official European Commission databases to query.

## `maxMatchesPerSource` (type: `integer`):

Maximum number of matching regulatory records to attach per database for each query (1 to 25).

## Actor input object example

```json
{
  "queries": [
    "121-33-5",
    "Menthol",
    "Linalool"
  ],
  "databases": [
    "eu_fip",
    "eu_cosing"
  ],
  "maxMatchesPerSource": 10
}
```

# 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 = {
    "queries": [
        "121-33-5",
        "Menthol",
        "Linalool"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("alexsyin/eu-flavour-cosing-compliance").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 = { "queries": [
        "121-33-5",
        "Menthol",
        "Linalool",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("alexsyin/eu-flavour-cosing-compliance").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 '{
  "queries": [
    "121-33-5",
    "Menthol",
    "Linalool"
  ]
}' |
apify call alexsyin/eu-flavour-cosing-compliance --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alexsyin/eu-flavour-cosing-compliance"
        }
    }
}
```

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/NulAd3Rnr8M11hhay/builds/ns1OzrWPaUKE6yDVJ/openapi.json
