# SEPA Open Dataset Catalogue (`vixendata/sepa-dataset-catalogue`) Actor

One catalogue page, explicitly OGL-labelled nonempty rows only. Attributed metadata only; no linked documents or datasets fetched.

- **URL**: https://apify.com/vixendata/sepa-dataset-catalogue.md
- **Developed by:** [Vixendata](https://apify.com/vixendata) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 85.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 source-linked publication/news/catalogue records

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

## SEPA Open Dataset Catalogue

Turn the official catalogue into structured, attributed metadata for publication discovery and change tracking. One catalogue page, explicitly OGL-labelled nonempty rows only. At most 100 matching records per run. JSON/CSV exports are available through the default Apify dataset.

### Useful workflows and source-specific gap

University of Stirling Data Commons Scotland catalogues SEPA waste datasets and licences for reuse: https://campuspress.stir.ac.uk/datacommonsscotland/tag/waste/ . Scotland government documents use for recycling targets: https://data.gov.scot/dataset/generation_and_management_of_household_waste . Bounded Store searches Scottish Environment Protection Agency and sepa.org.uk returned 0; SEPA environmental returned fuzzy unrelated results. UK flood-warning actors are adjacent, not dataset discovery catalogues. Evidence checked 6 October 2026. This demonstrates institutional use, not proven paying Apify demand. Fuzzy Store search is bounded evidence, not universal absence of competition. Generic regulatory monitors remain alternatives; this Actor adds source-specific typed record discovery rather than generic page downloads. No artificial source/category split.

### Scope, rights and attribution

Source: https://www.sepa.org.uk/environment/environmental-data
Rights: https://www.sepa.org.uk/media/162562/guide-to-information.pdf
Only nonempty rows explicitly containing Open Government Licence in the licence cell are emitted. Blank continuation rows and differently licensed rows are excluded. Exact licence text, including OS attribution restrictions, is retained. Do not generalize permissions to linked datasets. Runtime robots 404 is reported as absent policy, not an affirmative permission. Other robots HTTP failures stop. Links to external dataset/map services are output only, never fetched. Email contact links are excluded from URL arrays. No measurements, forecasts or environmental risk advice.
Preserve attribution, rightsUrl, sourceListingUrl and any licence conditions in downstream exports. Third-party images, logos and full document text are excluded.

### Inputs and outputs

maxItems: integer 1–100, default 100. keyword: optional local title substring, at most 200 characters. No custom URL, credentials or proxy inputs. Unsupported keys fail before source requests. See record.schema.json for the record contract. Missing values are null, never invented. retrievedAt is extraction time. contentHash excludes retrievedAt and supports change comparison; separate records retain distinct URLs/format links. Dates preserve source precision. RUN_REPORT contains bounded coverage, status, error class, numeric HTTP/request/byte/record diagnostics and zero documents fetched. Exceptions never log response bodies, URLs or raw error strings.

### Network safeguards

Strict official source hosts and validated catalogue paths only. robots.txt checked each run with longest-match REP wildcards and crawl delays. Minimum 2-second delay; honors larger robots delays. No redirects, retries, configured proxies, identity rotation or denial bypass. Maximum 2 requests, 120-second network budget, 25-second socket timeout, 2 MB response and 5 MB total caps. Unexpected status, content type, challenge or layout stops the Actor. All attachment/dataset links are output-only.

### Local verification

Python 3.12; install requirements.txt for runtime, or requirements-dev.txt for offline tests. Run python -m unittest discover -s tests -v, then python main.py for an actual local Apify SDK source smoke. No token required. Official HTML fixtures captured 6 October 2026 are in tests/fixtures; verification contains inspected live smoke records/report. Cloud build/deploy verification is a separate stage.

### Pricing and budget limits

The paid unit is one source-linked metadata record saved to the default dataset. The current Store price is $1 per 1,000 records, plus $0.00005 per run start; usage is included. Check the Store pricing panel for the price applying to your run. Source coverage, filters, availability and your spending limit can reduce the number returned; no minimum record count or historical completeness is guaranteed.

The SDK automatically handles record charges. Before source requests, the Actor checks whether the record budget is already exhausted; after each write it counts only records accepted by paid billing and stops at the limit. RUN_REPORT status budget_limit_reached means the spending limit stopped further work; coverage may be partial. The report is not an invoice. Local/non-monetized runs retain normal dataset counting. Zero matches can still incur the run-start charge.

Memory is capped at 256 MB, matching a successful hosted run. Source changes or different inputs may still cause failure; this is not a performance guarantee.

# Actor input Schema

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

Maximum matching metadata records from the bounded source scope, 1–100. Does not expand coverage.

## `keyword` (type: `string`):

Case-insensitive substring in source title/data area. Local filtering does not fetch extra pages.

## Actor input object example

```json
{
  "maxItems": 100,
  "keyword": ""
}
```

# Actor output Schema

## `records` (type: `string`):

No description

## `report` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("vixendata/sepa-dataset-catalogue").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("vixendata/sepa-dataset-catalogue").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 '{}' |
apify call vixendata/sepa-dataset-catalogue --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vixendata/sepa-dataset-catalogue"
        }
    }
}
```

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/8C2BZws9foDcps0p7/builds/ETYQlKaZseajeNgHq/openapi.json
