360 Secure SkillHub
360 安全技能中心

Unofficial Urban Dictionary API

核心功能:支持搜索俚语定义、获取随机条目,还可按字母/最新、作者、日期维度检索,提供脚本调用和直接HTTP GET两种方式。典型场景:查询网络俚语含义、查找特定作者或日期的条目等。输入需指定检索条件,输出含术语、定义、示例等信息,无结果时给优化建议,内容可能含NSFW需中立呈现。

dougbtv
dougbtv
热度 38.23
最近更新 2026-05-11 17:41:04
分类:搜索依赖:代码执行 / 第三方 API应用场景:语言学习 / 概念解释 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add unofficial-urban-dictionary-api
Metadata
name
unofficial-urban-dictionary-api
description
Query the Unofficial Urban Dictionary API for slang definitions. Use when asked to define slang/phrases, fetch random Urban Dictionary entries, browse by letter/new, or get entries by author/date. Supports endpoints /api/search, /api/random, /api/browse, /api/author, and /api/date.

Use this skill to fetch Urban Dictionary-style definitions from:

  • Base URL: https://unofficialurbandictionaryapi.com/api

Fast path

Prefer running the bundled helper script for deterministic output:

  • python3 scripts/ud_api.py search --term "yeet" --limit 3
  • python3 scripts/ud_api.py random --limit 1
  • python3 scripts/ud_api.py browse --character a --limit 5
  • python3 scripts/ud_api.py author --term "some_author" --limit 5
  • python3 scripts/ud_api.py date --term "2024-01-01" --limit 5

If script execution is unavailable, use direct HTTP GET calls to the same endpoints.

Endpoint mapping

  • search -> /search
  • random -> /random
  • browse -> /browse
  • author -> /author
  • date -> /date

Common query params

  • term: word/phrase/author/date (depends on endpoint)
  • limit: integer > 0
  • strict: true|false (search)
  • matchCase: true|false (search)
  • page: integer >= 1
  • multiPage: min,max page range string
  • character: browse target (example: a, new, *)

Output behavior

When reporting results to users:

  1. Show top entries only (default 3–5 unless asked for more).
  2. Include:
    • term/word
    • short definition
    • example (if present)
    • thumbs up/down (if present)
    • permalink (if present)
  3. If no entries found, say so clearly and suggest a broader query (disable strict, remove matchCase, etc.).
  4. Content can be NSFW/offensive; reflect results neutrally without adding extra slurs or escalation.

Troubleshooting

  • Empty result: retry with strict=false and lower constraints.
  • Bad response: retry once, then report API/network failure.
  • Very long entries: truncate cleanly and offer full dump on request.