# Datamuse Word Scraper - Rhymes, Synonyms & Related Words API (`ninhothedev/datamuse-scraper`) Actor

$0.3/1K 🔥 Fast Datamuse word finder! Synonyms, rhymes, related & similar words with scores. No key. JSON, CSV, Excel or API in seconds. Enter words & pull thousands of suggestions for writing, SEO & NLP ⚡

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

## Pricing

from $0.30 / 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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Datamuse Word Finder Scraper 🔤

Find **synonyms, antonyms, rhymes, related, similar-meaning, sounds-like and associated words** for any list of words — powered by the free, clean [Datamuse API](https://www.datamuse.com/api/). No API key, no login, datacenter-proxy-friendly, and fast.

Give it a list of words and a relation, and get back a tidy dataset of matching words with relevance **scores** and part-of-speech **tags** — one row per returned word, always traceable back to the query word.

***

### ✨ What you get

For every query word, one item per returned word:

| Field | Description |
|-------|-------------|
| `query_word` | The word you asked about |
| `relation` | The relation you requested (means-like, synonyms, rhymes, …) |
| `word` | A matching word |
| `score` | Datamuse relevance score (higher = stronger match) |
| `tags` | Part-of-speech / relation tags (e.g. `n`, `adj`, `syn`) |
| `scraped_at` | ISO timestamp of the run |

### 🧩 Relations supported

| Relation | Datamuse param | Example (`happy`) |
|----------|---------------|-------------------|
| Means like | `ml` | cheerful, glad, content |
| Synonyms | `rel_syn` | content, halcyon, bright |
| Antonyms | `rel_ant` | sad, distressed, unhappy |
| Rhymes | `rel_rhy` | snappy, nappy, scrappy |
| Sounds like | `sl` | happi, hippy |
| Spelled like | `sp` | wildcard/spelling matches |
| Triggers (associated) | `rel_trg` | birthday, smile, joy |

### 🔧 Input

```json
{
  "mode": "words",
  "words": ["ocean", "happy"],
  "relation": "means-like",
  "maxPerWord": 20,
  "maxItems": 500
}
```

- **mode** — `words`: a list of query words.
- **words** — array of query words (prefilled with `["ocean", "happy"]`).
- **relation** — which kind of related words to return (default `means-like`).
- **maxPerWord** — max returned words per query word (default `20`, max `100`).
- **maxItems** — hard cap on total dataset items (default `500`, max `5000`).

### 📦 Example output

```json
{
  "query_word": "ocean",
  "relation": "means-like",
  "word": "sea",
  "score": 40041792,
  "tags": ["syn", "n"],
  "scraped_at": "2026-07-18T10:00:00+00:00"
}
```

### 💸 Pricing

Pay-per-result — roughly **~$0.50 per 1,000 words** returned (plus minimal Apify platform usage). A single word with `maxPerWord=100` costs a fraction of a cent. Because Datamuse is a clean JSON API, runs are quick and cheap — no browser, no proxy needed.

### 🎯 Use cases

- **Writing & content tools** — build a thesaurus, paraphraser, or headline helper.
- **SEO keyword research** — expand seed keywords into synonyms, related and associated terms.
- **NLP & data science** — bootstrap lexicons, query-expansion, and word-embedding evaluation sets.
- **Word games & education** — generate rhymes, anagram candidates, and vocabulary lists.

### 🆚 Comparison

| | Datamuse Word Finder Scraper | Generic thesaurus scrapers |
|---|---|---|
| API key needed | ❌ No | Often yes |
| Relations | 7 (synonyms → rhymes → triggers) | Usually 1 |
| Relevance scores | ✅ Yes | Rarely |
| Proxy required | ❌ Datacenter-friendly | Frequently residential |
| Speed | ⚡ JSON, no browser | Slow HTML parsing |

### 🔗 Related actors by ninhothedev

- [Dictionary Scraper](https://apify.com/ninhothedev/dictionary-scraper) — definitions, phonetics & examples.
- [Wikipedia Scraper](https://apify.com/ninhothedev/wikipedia-scraper) — article content & metadata.
- [WikiQuote Scraper](https://apify.com/ninhothedev/wikiquote-scraper) — quotations by author/topic.
- [PoetryDB Scraper](https://apify.com/ninhothedev/poetrydb-scraper) — poems, authors & lines.

**Keywords:** datamuse, word finder, synonyms scraper, rhymes, antonyms, related words, thesaurus API, SEO keywords, NLP lexicon, word games.

***

Built by [ninhothedev](https://apify.com/ninhothedev). Data © [Datamuse](https://www.datamuse.com/api/).

# Actor input Schema

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

Scraping mode. 'Words' takes a list of query words and finds related words for each using the selected relation.

## `words` (type: `array`):

The query words to look up. One Datamuse request is made per word using the selected relation.

## `relation` (type: `string`):

Which kind of related words to return. Each option maps to a Datamuse relation: means-like (ml), synonyms (rel\_syn), antonyms (rel\_ant), rhymes (rel\_rhy), sounds-like (sl), spelled-like (sp), triggers/associated (rel\_trg).

## `maxPerWord` (type: `integer`):

Maximum number of returned words per query word (Datamuse 'max' parameter).

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

Hard cap on the total number of result items pushed to the dataset across all query words.

## Actor input object example

```json
{
  "mode": "words",
  "words": [
    "ocean",
    "happy"
  ],
  "relation": "means-like",
  "maxPerWord": 20,
  "maxItems": 500
}
```

# Actor output Schema

## `overview` (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 = {
    "words": [
        "ocean",
        "happy"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ninhothedev/datamuse-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 = { "words": [
        "ocean",
        "happy",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ninhothedev/datamuse-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 '{
  "words": [
    "ocean",
    "happy"
  ]
}' |
apify call ninhothedev/datamuse-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ninhothedev/datamuse-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/4jXC1c9cDaPN3YxNg/builds/SdQdHaoq8VVtP8BWn/openapi.json
