# Urban Dictionary Scraper (`zerobreak/urban-dictionary-scraper`) Actor

This Actor collects public slang definitions, usage examples, and community metadata from Urban Dictionary based on search terms or featured entries. It extracts definitions, example sentences, authors, submission dates, and permalinks to support cultural trend monitoring, social listening

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

## Pricing

from $2.99 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### Urban Dictionary Scraper — Slang Definitions and Language Data

![Urban Dictionary Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/urban-dictionary-scraper-cover.png)

### Overview

Urban Dictionary Scraper collects slang definitions and examples for a search term from Urban Dictionary. It extracts definition text, example sentences, authors, voting information, publication dates, and related media links.

Enter a term, choose your collection limit, and export structured results in JSON, CSV, Excel, or other supported dataset formats.

### Features

- Search slang definitions by term
- Extract definitions and example sentences
- Collect author names and definition IDs
- Capture thumbs-up and thumbs-down counts
- Retrieve definition permalinks
- Collect written dates and related image URLs
- Capture available audio playback links
- Export structured definition records

### Collection Mode

**Search:** Look up slang definitions for a single term.

### Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `mode` | string | No | `search` | Collection mode. Search is supported. |
| `term` | string | Yes | `yeet` | Slang term to look up. |
| `maxItems` | integer | No | `50` | Maximum number of definitions to save. Maximum: 1000. |
| `requestDelayMs` | integer | No | `1000` | Delay between requests in milliseconds. |

### Example Input

```json
{
  "mode": "search",
  "term": "yeet",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

### Extracted Data

Each dataset record represents an individual slang definition and can include:

| Field | Description |
|---|---|
| `author` | Definition author |
| `current_vote` | Current vote information |
| `defid` | Unique definition ID |
| `definition` | Slang term definition |
| `example` | Example sentence showing usage |
| `permalink` | Direct link to the definition |
| `thumbs_down` | Number of thumbs-down votes |
| `thumbs_up` | Number of thumbs-up votes |
| `word` | Slang word |
| `written_on` | Definition publication date |
| `udimg_url` | Related image URL |
| `play_sound_url` | Available audio playback URL |
| `scrapedAt` | Collection timestamp |

### Example Output

```json
{
  "author": "Le anonymous",
  "current_vote": "",
  "defid": 12339851,
  "definition": "To discard an item at a high velocity",
  "example": "Alex finishes his soda and proceeds to yeet his empty can into a trash bin.",
  "permalink": "https://www.urbandictionary.com/define.php?term=Yeet&defid=12339851",
  "thumbs_down": 0,
  "thumbs_up": 0,
  "word": "Yeet",
  "written_on": "2018-04-22T00:00:00.000Z",
  "udimg_url": "https://udimg.com/v1/social/twitter.webp?word=Yeet&meaning=To+discard",
  "play_sound_url": "https://cdn.urbdic.com/audio/tts/f/4/f4990c-yeet.mp3",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

*The example illustrates the output structure. Actual definitions, votes, and media links depend on the selected term and available records.*

### Use Cases

- **Slang research:** Collect definitions and examples for words and phrases.
- **Language datasets:** Build structured datasets of slang vocabulary and usage.
- **Trend monitoring:** Repeat searches and track newly appearing definition IDs.
- **Writing and content research:** Explore informal language and real-world usage examples.
- **Dashboard feeds:** Organize slang definitions and voting data for reports and analysis.

### FAQ

**Who is this scraper for?**

Researchers, writers, language enthusiasts, and developers who need structured slang definitions.

**What information does it collect?**

It can collect definitions, examples, authors, voting counts, publication dates, permalinks, and available media links.

**Can I search for any slang term?**

Enter the term in the `term` field to look up its available definitions.

**Can I run it on a schedule?**

Yes. Use Apify schedules to repeat searches at your preferred intervals.

**How many definitions can it collect?**

You can configure `maxItems` up to 1000. The number of results depends on the definitions available for the searched term.

**What formats are supported?**

Results can be exported as JSON, CSV, Excel, and other supported Apify dataset formats.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

Search terms collects definitions for supplied terms. Random definitions repeatedly fetches random entries to reach maxItems.

## `term` (type: `string`):

One search term. Used when the terms list is empty and mode is search.

## `terms` (type: `array`):

Optional list of terms. Each term can return up to 10 definitions. Add multiple terms to collect more search results.

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

Maximum number of unique definition records across the run.

## `requestDelayMs` (type: `integer`):

Delay between requests. Increase this if the source rate-limits requests.

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

User-Agent header sent with each request.

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

Overall run time budget.

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

Maximum time allowed for an individual request.

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

Optional proxy configuration.

## Actor input object example

```json
{
  "mode": "random",
  "term": "yeet",
  "terms": [],
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "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 = {
    "term": "yeet"
};

// Run the Actor and wait for it to finish
const run = await client.actor("zerobreak/urban-dictionary-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 = { "term": "yeet" }

# Run the Actor and wait for it to finish
run = client.actor("zerobreak/urban-dictionary-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 '{
  "term": "yeet"
}' |
apify call zerobreak/urban-dictionary-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zerobreak/urban-dictionary-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/eC39M3pewrqy96eO1/builds/evttsKpRMVb0QFFCT/openapi.json
