mcpField
S
scraping-urban-dictionary-definitions

scraping-urban-dictionary-definitions

github.com/apidojo-ioData & databases1744 installsUpdated 24w ago
Repository

About scraping-urban-dictionary-definitions

A data-collection workflow for retrieving user-submitted Urban Dictionary definitions. It accepts search URLs or terms and returns records for downstream analysis, with optional output limits and field transformation.

Key features

  1. 01Search by URLs or keywords
  2. 02Limit the number of definitions
  3. 03Transform output with JavaScript
  4. 04Return definition and vote metadata
  5. 05Export results as CSV or JSON

Use cases

  1. 01Collect definitions for slang terms
  2. 02Build a dataset for downstream analysis
  3. 03Save search results in CSV or JSON

MCP support

Can run through Apify MCP using the call_actor tool and the Urban Dictionary scraper actor.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/apidojo-io/apidojo-skills --skill scraping-urban-dictionary-definitions

After installing, type/scraping-urban-dictionary-definitionsin Claude Code to confirm it loaded.

Details

From the project README

Scraping Urban Dictionary Definitions

Raw data collection. No assumed use case — returns the full dataset for downstream analysis.


Inputs

ParameterTypeRequiredDefaultNotes
startUrlsarrayOptional[]Urban Dictionary search URLs
keywordsarrayOptional[]Keywords/slang terms to search
maxItemsnumberOptionalUnlimitedMaximum definitions to return
customMapFunctionstringOptional—JavaScript function to transform each output object

How to Run

Using run_actor.js (recommended)
# Quick answer (table)
node scripts/run_actor.js --actor "apidojo~urbandictionary-scraper" --input '{"keywords": ["slay", "lowkey"], "maxItems": 10}'

# Save as CSV
node scripts/run_actor.js --actor "apidojo~urbandictionary-scraper" --input '{"keywords": ["slay", "lowkey"], "maxItems": 10}' --output results.csv --format csv

# Save as JSON
node scripts/run_actor.js --actor "apidojo~urbandictionary-scraper" --input '{"keywords": ["slay", "lowkey"], "maxItems": 10}' --output results.json --format json
REST API fallback
curl -X POST "https://api.apify.com/v2/acts/apidojo~urbandictionary-scraper/runs" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["slay", "lowkey"], "maxItems": 10}'

If Apify MCP is available: Use the Apify MCP call_actor tool with actor apidojo~urbandictionary-scraper and the input above.


Output Fields

FieldTypeDescription
wordstringThe term being defined
definitionstringUser-submitted definition
examplestringExample sentence
authorstringDefinition author username
idnumberDefinition ID
createdAtstringSubmission timestamp (ISO 8601)
numberOfThumbsUpnumberUpvotes
numberOfThumbsDownnumberDownvotes
urlstringDefinition URL

Edge Cases

  • No results: Term may not be in Urban Dictionary or spelled differently.
  • NSFW content: Urban Dictionary contains explicit content by design — filter downstream if needed.
  • Multiple definitions: A word may have 50+ entries. Use maxItems to cap.
  • Community vote gap: High thumbs-up vs thumbs-down indicates consensus vs controversy.

Comments

Markdown supported