# Worms Marine Species Scraper (`bigibyte/worms-marine-species-scraper`) Actor

Look up marine species by scientific name using the World Register of Marine Species service. Instantly export clean records with Aphia IDs, ranks, authorities, and status fields to JSON, CSV, or Excel.

- **URL**: https://apify.com/bigibyte/worms-marine-species-scraper.md
- **Developed by:** [BigiByte](https://apify.com/bigibyte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## WoRMS Marine Species Scraper

![WoRMS Marine Species Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/worms-marine-species-scraper-cover.png)

Discover and collect marine species taxonomy records with the WoRMS Marine Species Scraper. Look up scientific names and retrieve Aphia IDs, taxonomic ranks, authorities, classification details, and accepted-name information in structured datasets ready for research and biodiversity analysis.

### What It Does

The WoRMS Marine Species Scraper retrieves marine taxonomic records from the **World Register of Marine Species (WoRMS)**.

Provide one or more scientific names to find matching marine taxon records. Each result includes scientific names, classification details, taxonomic authorities, acceptance status, and related identifiers.

The actor supports paginated collection, removes duplicate records using their Aphia IDs, and lets you control the maximum number of results per run.

### Why Use This Scraper?

- **Scientific Name Lookup:** Find marine taxonomic records using scientific names.
- **Taxonomic Identification:** Retrieve Aphia IDs, taxonomic ranks, and authority information.
- **Accepted Name Information:** Examine accepted names and related taxonomic identifiers.
- **Structured Biodiversity Data:** Collect marine species information in an organized dataset.
- **Multiple Name Searches:** Submit a list of scientific names in a single run.
- **Flexible Exports:** Download results in JSON, CSV, Excel, and other supported Apify formats.

### Collection Mode

**By Name (`by_name`)**

Searches the WoRMS database using one or more scientific names and returns matching marine taxonomic records.

The actor supports partial name matching, allowing it to discover relevant taxonomic records beyond an exact name match. Results are collected across multiple pages, with duplicate records removed using `AphiaID`.

### Input Parameters

| Parameter | Description | Default |
|---|---|---|
| `mode` | Selects the collection mode. Currently, `by_name` is supported. | `by_name` |
| `names` | Array of scientific names to search for. | `["Delphinus"]` |
| `maxItems` | Maximum number of successful records to collect. Maximum: 1,000. | `100` |
| `timeoutSecs` | Maximum duration allowed for the overall run, in seconds. | `300` |
| `requestTimeoutSecs` | Maximum waiting time for an individual request, in seconds. | `30` |
| `proxyConfiguration` | Optional proxy configuration for collection requests. | Disabled |

### Input Example

```json
{
  "mode": "by_name",
  "names": [
    "Delphinus"
  ],
  "maxItems": 50
}
```

You can also search for multiple taxonomic names in one run:

```json
{
  "mode": "by_name",
  "names": [
    "Delphinus",
    "Orcinus",
    "Balaenoptera"
  ],
  "maxItems": 100
}
```

### Output Example

Each dataset item represents a matching marine taxonomic record.

```json
{
  "AphiaID": 137015,
  "url": "https://www.marinespecies.org/aphia.php?p=taxdetails&id=137015",
  "scientificname": "Delphinus",
  "authority": "Linnaeus, 1758",
  "status": "accepted",
  "unacceptreason": null,
  "taxonRankID": 180,
  "rank": "Genus",
  "valid_AphiaID": 137015,
  "valid_name": "Delphinus",
  "valid_authority": "Linnaeus, 1758",
  "parentNameUsageID": 136980,
  "originalNameUsageID": null,
  "kingdom": "Animalia",
  "scrapedAt": "2026-10-12T05:30:00+00:00"
}
```

### Output Fields

| Field | Description |
|---|---|
| `AphiaID` | Unique identifier assigned to the taxonomic record. |
| `url` | Link to the taxonomic record in WoRMS. |
| `scientificname` | Scientific name of the taxon. |
| `authority` | Taxonomic authority associated with the name. |
| `status` | Current taxonomic status, such as accepted. |
| `unacceptreason` | Explanation for why a name is not accepted, when available. |
| `taxonRankID` | Numeric identifier representing the taxonomic rank. |
| `rank` | Taxonomic rank, such as genus or species. |
| `valid_AphiaID` | Identifier of the accepted taxonomic record. |
| `valid_name` | Accepted scientific name associated with the record. |
| `valid_authority` | Authority associated with the accepted name. |
| `parentNameUsageID` | Identifier of the parent taxonomic record. |
| `originalNameUsageID` | Identifier of the original name record, when available. |
| `kingdom` | Biological kingdom associated with the taxon. |
| `scrapedAt` | Timestamp indicating when the record was collected. |

### Use Cases

- **Taxonomy Research:** Match scientific names with their corresponding Aphia IDs and taxonomic ranks.
- **Marine Biodiversity Studies:** Build structured datasets of marine organisms for scientific analysis.
- **Species Classification:** Review accepted names, taxonomic authorities, and classification relationships.
- **Educational Projects:** Collect marine taxonomic records for teaching, demonstrations, and research exercises.
- **Dataset Maintenance:** Re-run searches periodically to refresh taxonomic records for a predefined list of names.

### Collection Limits and Fair Use

- **Maximum records:** 1,000 successful records per run.
- **Default records:** 100.
- **Search input:** Supports multiple scientific names.
- **Pagination:** Retrieves matching records across multiple pages.
- **Duplicate handling:** Uses `AphiaID` to avoid duplicate records.
- **Request handling:** Retries temporary throttling and server errors with backoff.
- **Failed requests:** Saves error records instead of unnecessarily stopping the entire run.

Collect data responsibly, maintain reasonable request activity, and follow WoRMS usage and attribution requirements.

### FAQ

**What is WoRMS?**

The World Register of Marine Species (WoRMS) is a comprehensive taxonomic reference that provides information about marine organisms, including scientific names, classification, and taxonomic status.

**Who can use this scraper?**

This actor is useful for marine biologists, biodiversity researchers, taxonomists, educators, data analysts, and developers working with marine species information.

**Can I search for multiple scientific names?**

Yes. Provide an array of names through the `names` parameter to search for multiple taxa in one run.

**Does it return accepted scientific names?**

Yes. Available fields include `status`, `valid_name`, `valid_AphiaID`, and `valid_authority`, which help distinguish accepted names from other taxonomic records.

**Can I export results to Excel or CSV?**

Yes. You can export the Apify dataset in JSON, CSV, Excel, and other supported formats.

**Can I schedule recurring collections?**

Yes. Use Apify Schedules to run the actor automatically at your preferred intervals.

### Related Tools

Explore other data collection solutions that may complement this scraper:

- **JPL Asteroid Close Approach Scraper** – Collect astronomical information about asteroids and their close approaches to Earth.
- **JPL Fireball Events Scraper** – Retrieve fireball and bolide observations for astronomical research.
- **Scientific Research Data Scrapers** – Collect structured information from publicly accessible scientific and research sources.

Looking to collect data from another scientific database or specialized platform? **BigiByte** builds custom web scrapers, automation solutions, and data APIs tailored to your requirements.

Visit [BigiByte](https://bigibyte.com) to discuss your project.

### Trademark Notice

WoRMS, World Register of Marine Species, and their associated names, logos, and trademarks belong to their respective owners. They are referenced solely to identify the dataset of the collected information. This actor does not imply affiliation, sponsorship, endorsement, or partnership with WoRMS or its associated organizations.

### Disclaimer

This actor is an independent data collection tool. It is not affiliated with, endorsed by, sponsored by, or officially associated with the World Register of Marine Species or its owners.

The collected information comes from publicly accessible dataset. Users are responsible for verifying the accuracy of collected records and complying with applicable usage, attribution, and licensing requirements.

### Is Web Scraping Legal?

This actor extracts publicly accessible data without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal Data:** Follow applicable privacy regulations, including GDPR and CCPA where relevant, and handle personal identifiers responsibly.
- **Copyrighted Content:** Public accessibility does not automatically remove copyright protections. Respect the CC BY 4.0 licence and provide appropriate attribution when using or redistributing WoRMS data.
- **Platform Terms and Rate Limits:** Collect data responsibly, avoid excessive traffic, and respect the source platform's applicable usage policies and rate limits.

**Disclaimer:** This information is provided for educational purposes only and does not constitute legal advice. Consult a qualified legal professional if you need guidance about your specific use case.

For more information, read Apify's guide: [Is Web Scraping Legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

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

What to scrape. by_name calls AphiaRecordsByName with like=true.

## `names` (type: `array`):

Taxon names to look up (for example Delphinus).

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

Stop after this many successful rows. Hard max is 1000.

## `userAgent` (type: `string`):

Identify your scraper. Prefer a string that includes contact info.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it. WoRMS is public and usually works without a proxy.

## Actor input object example

```json
{
  "mode": "by_name",
  "names": [
    "Delphinus"
  ],
  "maxItems": 100,
  "userAgent": "BigiByteActorResearch/1.0 (contact: hello@bigibyte.com)",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "names": [
        "Delphinus"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/worms-marine-species-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 = { "names": ["Delphinus"] }

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/worms-marine-species-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 '{
  "names": [
    "Delphinus"
  ]
}' |
apify call bigibyte/worms-marine-species-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/worms-marine-species-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/ec10c6ogVHxbpcrgV/builds/mtZl386INh2LSZHfZ/openapi.json
