[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77QNQ237DSHBNZGMDZ0BGPN":3,"skill-same:01M77QNQ237DSHBNZGMDZ0BGPN":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M77QNQ237DSHBNZGMDZ0BGPN","pangolinfo-amazon-niche",null,"Find profitable Amazon niches and category opportunities with structured category tree data, niche filters, category path lookup, and marketplace-level business metrics. Use when you need an Amazon niche finder, category research API, product opportunity discovery, low-competition niche analysis, demand-vs-competition validation, or blue-ocean subcategory discovery before launching on Amazon. Helpful for requests like \"find a low-competition niche\", \"validate a product idea before sourcing\", \"browse Amazon category trees\", \"find promising subcategories\", or \"is there a skill that can analyze Amazon categories for me\".","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fpangolinfo-amazon-niche\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pangolinfo-amazon-niche\ndescription: >\n  Find profitable Amazon niches and category opportunities with structured category tree data, niche filters, category path lookup, and marketplace-level business metrics. Use when you need an Amazon niche finder, category research API, product opportunity discovery, low-competition niche analysis, demand-vs-competition validation, or blue-ocean subcategory discovery before launching on Amazon. Helpful for requests like \"find a low-competition niche\", \"validate a product idea before sourcing\", \"browse Amazon category trees\", \"find promising subcategories\", or \"is there a skill that can analyze Amazon categories for me\".\n\nmetadata:\n  openclaw:\n    emoji: \"🎯\"\n    os: [\"darwin\", \"linux\"]\n    requires:\n      env:\n        - PANGOLINFO_API_KEY\n        - PANGOLINFO_EMAIL\n        - PANGOLINFO_PASSWORD\n      primaryEnv: PANGOLINFO_API_KEY\n      bins: [\"python3\"]\n      notes: \"Set PANGOLINFO_API_KEY (recommended). Alternative: set PANGOLINFO_EMAIL + PANGOLINFO_PASSWORD instead (optional, for email\u002Fpassword login). Credentials are NOT cached to disk by default; disk persistence only activates with explicit --cache-key flag or PANGOLINFO_CACHE=1.\"\ntags: [amazon, amazon-niche, niche-finder, niche-research, category-research, category-tree, category-intelligence, product-opportunity, product-validation, low-competition, blue-ocean, ecommerce]\nhomepage: https:\u002F\u002Fpangolinfo.com\u002F?referrer=clawhub_amz_niche\nversion: 2.0.4\n---\n\n# Pangolinfo Amazon Niche Finder\n\nFind low-competition Amazon niches and category opportunities before you source or launch a product.\n\n## First win in 30 seconds\n\nIf your Pangolinfo credentials are already configured, run this first:\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-search --keyword \"yoga mat\"\n```\n\n## What success looks like\n\nA successful first run gives you:\n- matching Amazon categories in English and Chinese\n- category IDs you can drill into immediately\n- `sellable` and `hasChild` signals for fast triage\n- a clear next step: path lookup, tree browsing, or deeper niche filtering\n\n## What to do next\n\n1. Browse the category tree\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-tree\n```\n\n2. Resolve full category paths\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-paths --category-ids \"2619526011,172282\"\n```\n\n3. Validate higher-conviction niche opportunities (costs 10 credits)\n```bash\npython3 scripts\u002Fpangolinfo.py --api niche-filter --marketplace-id US --niche-title \"yoga mat\"\n```\n\n## Use when\n- you want to validate a product idea before sourcing or launch\n- you need to explore Amazon category trees and subcategories\n- you want to compare demand vs competition across categories and niches\n- you are looking for low-competition or blue-ocean opportunities\n- you need to decide which categories deserve deeper metric filtering\n\nDo **not** use this skill for Amazon product scraping, keyword SERP scraping, or review extraction. Use **pangolinfo-amazon-scraper** for those tasks.\n\n## Compatible agent frameworks\n- **OpenClaw**\n- **Claude Code \u002F Cursor**\n- **LangChain \u002F LangGraph**\n- **AutoGen \u002F CrewAI**\n\n## 🌐 多语言适配 (Multi-language Support)\n- **🇨🇳 中文适用场景**: 亚马逊底层选品类目挖掘与 BSR 追踪。通过细分市场过滤器定位蓝海类目，辅助卖家数据决策。\n- **Agent Directive**: Always output the final analysis\u002Freport in the language of the user's prompt (e.g., reply in Chinese if asked in Chinese).\n\n## First-use execution preference for AI agents\n- On first invocation or vague requests, start with `category-search` or `category-tree`, not `niche-filter`.\n- Use `category-paths` next when the user needs structural context or browse-node resolution.\n- Use `category-filter` or `niche-filter` only when the user explicitly asks for metric-based filtering or deeper validation.\n- Warn before `niche-filter`; it costs 10 credits.\n\n# Pangolinfo Amazon Niche Data\n\nQuery Amazon category and niche intelligence via Pangolinfo's 利基数据 (niche data) APIs. Covers 5 endpoints under `\u002Fapi\u002Fv1\u002Famzscope\u002F*` for category exploration, search, path resolution, and advanced filtering by business metrics.\n\n## When to Use This Skill\n\n| Intent (EN) | Intent (CN) | Action |\n|---|---|---|\n| Browse Amazon category tree | 浏览亚马逊类目树 | Category Tree |\n| Search for an Amazon category | 搜索亚马逊类目 | Category Search |\n| Get full path of category IDs | 批量查询类目路径 | Category Paths |\n| Filter categories by metrics | 按指标筛选类目 | Category Filter |\n| Find Amazon niches | 查找亚马逊利基市场 | Niche Filter |\n| Analyze category sales\u002Ftrends | 分析类目销量\u002F趋势 | Category Filter |\n| Find low-competition niches | 寻找低竞争利基 | Niche Filter |\n\nDo **not** use for Amazon product scraping, keyword search, or reviews -- those require the **pangolinfo-amazon-scraper** skill.\n\n## Prerequisites\n\n- **Python 3.8+** (stdlib only, no pip install needed)\n- **Pangolinfo account** at [pangolinfo.com](https:\u002F\u002Fpangolinfo.com\u002F?referrer=clawhub_niche)\n- **Environment variables**: `PANGOLINFO_API_KEY` (recommended) OR `PANGOLINFO_EMAIL` + `PANGOLINFO_PASSWORD`\n\n> **Security:** Credentials are held **in-memory only** by default. The script will **not** write any key or password to disk unless you explicitly opt in via `--cache-key` (or `PANGOLINFO_CACHE=1`), which persists the API key to `~\u002F.pangolinfo_api_key` (mode 600).\n\nmacOS SSL error? Run: `\u002FApplications\u002FPython\\ 3.x\u002FInstall\\ Certificates.command`\n\n## Script Execution\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-search --keyword \"yoga mat\"\n```\n\n## Intent-to-Command Mapping\n\n### 1. Browse Category Tree (top-level)\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-tree\n```\n\n### 2. Browse Children of a Specific Node\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-tree --parent-path \"2619526011\"\n```\n\nNested nodes use `\u002F`-joined paths: `--parent-path \"2619526011\u002F18116197011\"`.\n\n### 3. Search Categories by Keyword\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-search --keyword \"yoga mat\"\n```\n\nMatches both English and Chinese category names.\n\n### 4. Batch Resolve Category Paths\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-paths --category-ids \"2619526011,172282\"\n```\n\nAlso accepts JSON array: `--category-ids '[\"2619526011\",\"172282\"]'`.\n\n### 5. Filter Categories by Business Metrics\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-filter \\\n  --marketplace-id US --time-range l7d --sample-scope all_asin\n```\n\nSingle-category detail:\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-filter \\\n  --marketplace-id US --time-range l7d --sample-scope all_asin \\\n  --category-id 979832011\n```\n\nWith advanced filters via `--extra`:\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-filter \\\n  --marketplace-id US --time-range l30d --sample-scope all_asin \\\n  --extra 'buyBoxPriceAvgMin=1000' \\\n  --extra 'buyBoxPriceTiers=[\"mainstream\",\"premium\"]' \\\n  --extra 'sortField=unitSoldSum' \\\n  --extra 'sortOrder=desc'\n```\n\n### 6. Filter Niches by Business Metrics\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api niche-filter --marketplace-id US\n```\n\nSearch by title:\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api niche-filter \\\n  --marketplace-id US --niche-title \"yoga mat\"\n```\n\nWith advanced range filters:\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api niche-filter \\\n  --marketplace-id US \\\n  --extra 'searchVolumeT90Min=1000' \\\n  --extra 'sortField=searchVolumeT90' \\\n  --extra 'sortOrder=desc'\n```\n\n## Smart Defaults\n\n1. **Pagination defaults** -- `page=1`, `size=10` if not specified\n2. **Filter APIs cap** -- `size` max 10 and `page` max 10 for `category-filter` and `niche-filter`\n3. **`--extra` is JSON-parsed** -- numbers become ints, arrays become arrays, strings stay strings\n4. **Marketplace default** -- no default; must be explicitly provided for filter APIs\n\n## All CLI Options\n\n| Flag | Description | Default |\n|---|---|---|\n| `--api` | API to call (see APIs below) | *required* |\n| `--page` | 1-based page number (max 10 for filter APIs) | `1` |\n| `--size` | Items per page (max 10 for filter APIs) | `10` |\n| `--parent-path` | category-tree: parent node path | -- |\n| `--keyword` | category-search: search term (EN or CN) | -- |\n| `--category-ids` | category-paths: comma-separated or JSON array | -- |\n| `--marketplace-id` | Marketplace code (e.g. US, UK, DE) | -- |\n| `--time-range` | Aggregation range (e.g. l7d, l30d, l90d) | -- |\n| `--sample-scope` | Sample scope (e.g. all_asin) | -- |\n| `--category-id` | category-filter: single-category detail | -- |\n| `--niche-id` | niche-filter: specific niche ID | -- |\n| `--niche-title` | niche-filter: keyword match on title | -- |\n| `--extra` | Extra field as `key=value` (repeatable, JSON-parsed) | -- |\n| `--auth-only` | Auth check only (no credits) | -- |\n| `--raw` | Output raw API response | -- |\n| `--timeout` | Timeout in seconds | `120` |\n| `--cache-key` | Persist API key to `~\u002F.pangolinfo_api_key` | off |\n\n## APIs\n\n| API | `--api` value | Required fields | Endpoint | Credits |\n|---|---|---|---|---|\n| Category Tree | `category-tree` | -- | `\u002Fapi\u002Fv1\u002Famzscope\u002Fcategories\u002Fchildren` | 2 |\n| Category Search | `category-search` | `--keyword` | `\u002Fapi\u002Fv1\u002Famzscope\u002Fcategories\u002Fsearch` | 2 |\n| Category Paths | `category-paths` | `--category-ids` | `\u002Fapi\u002Fv1\u002Famzscope\u002Fcategories\u002Fpaths` | 2 |\n| Category Filter | `category-filter` | `--marketplace-id --time-range --sample-scope` | `\u002Fapi\u002Fv1\u002Famzscope\u002Fcategories\u002Ffilter` | 5 |\n| Niche Filter | `niche-filter` | `--marketplace-id` | `\u002Fapi\u002Fv1\u002Famzscope\u002Fniches\u002Ffilter` | 10 |\n\n## Marketplace IDs\n\n| Code | Region | Code | Region |\n|---|---|---|---|\n| `US` | United States | `JP` | Japan |\n| `UK` | United Kingdom | `IT` | Italy |\n| `CA` | Canada | `ES` | Spain |\n| `DE` | Germany | `MX` | Mexico |\n| `FR` | France | `AU` | Australia |\n| `IN` | India | `BR` | Brazil |\n| `AE` | UAE | `SA` | Saudi Arabia |\n\n## Cost\n\n| API | Credits |\n|---|---|\n| Category Tree | 2 |\n| Category Search | 2 |\n| Category Paths | 2 |\n| Category Filter | 5 |\n| Niche Filter | 10 |\n\nCredits consumed on success only (API code 0). Empty results are not charged. Auth checks are free.\n\n## Output Format\n\nJSON to **stdout** on success, error JSON to **stderr** on failure.\n\n### Success\n\n```json\n{\n  \"success\": true,\n  \"api\": \"searchCategoriesAPI\",\n  \"items\": [\n    {\n      \"browseNodeId\": \"9059094011\",\n      \"browseNodeName\": \"Headphones\",\n      \"browseNodeNameCn\": \"耳机\",\n      \"sellable\": 1,\n      \"hasChild\": 0\n    }\n  ],\n  \"total\": 33,\n  \"page\": 1,\n  \"size\": 10,\n  \"totalPages\": 4,\n  \"results_count\": 10\n}\n```\n\n### Error (stderr)\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"API_ERROR\",\n    \"api_code\": 1002,\n    \"message\": \"Invalid Parameter: keyword is required\",\n    \"hint\": \"Check required fields for this API. See references\u002Ferror-codes.md.\"\n  }\n}\n```\n\n## Response Presentation\n\nMatch the user's language. Never dump raw JSON.\n\n- **Category Tree**: hierarchical list with node name (EN\u002FCN), sellable indicator\n- **Category Search**: numbered list with category path, sellable, hasChild\n- **Category Paths**: table of ID -> full path (EN\u002FCN)\n- **Category Filter**: metric summary card with sales, views, trends, price tier\n- **Niche Filter**: niche overview with search volume, product count, brand count, growth\n- **Empty results**: suggest loosening filters, checking marketplace, broadening search\n\n## Exit Codes\n\n| Code | Meaning |\n|---|---|\n| 0 | Success |\n| 1 | API error |\n| 2 | Usage error (bad arguments) |\n| 3 | Network error |\n| 4 | Authentication error |\n\n## Error Reference\n\n### Script Error Codes\n\n| Code | Meaning | Resolution |\n|------|---------|------------|\n| `MISSING_ENV` | No credentials | Set env vars |\n| `AUTH_FAILED` | Wrong credentials | Verify email\u002Fpassword |\n| `RATE_LIMIT` | Too many requests | Wait and retry |\n| `NETWORK` | Connection issue | Check internet |\n| `SSL_CERT` | Certificate error | See macOS SSL fix |\n| `API_ERROR` | Pangolinfo API error | Check `api_code` and `hint` |\n| `PARSE_ERROR` | Invalid API response | Retry |\n| `USAGE_ERROR` | Bad arguments | Fix CLI args |\n\n### Pangolinfo API Error Codes\n\n| Code | Meaning | Resolution |\n|------|---------|------------|\n| 1002 | Invalid parameter | Check required fields for the API |\n| 1004 | Invalid token | Auto-retried by script |\n| 2001 | Insufficient credits | Top up at [pangolinfo.com](https:\u002F\u002Fpangolinfo.com\u002F?referrer=clawhub_niche) |\n| 2005 | No active plan | Subscribe at [pangolinfo.com](https:\u002F\u002Fpangolinfo.com\u002F?referrer=clawhub_niche) |\n| 2007 | Account expired | Renew at [pangolinfo.com](https:\u002F\u002Fpangolinfo.com\u002F?referrer=clawhub_niche) |\n| 2009 | Usage limit reached | Wait for next billing cycle |\n| 4029 | Rate limited | Reduce request frequency |\n| 9100 | Service disabled | Retry later |\n| 9101 | Data source unavailable | Retry later |\n| 9102 | Quota exceeded | Contact support |\n\n## Self-Test\n\nRun `bash scripts\u002Fself_test.sh` to validate all 5 APIs. **This consumes up to ~21 credits** (Tree 2 + Search 2 + Paths 2 + CategoryFilter 5 + NicheFilter 10). Auth check is free. Only run when you need to verify connectivity.\n\n## First-Time Setup\n\nSee [references\u002Fsetup-guide.md](references\u002Fsetup-guide.md) for interactive setup instructions.\n\nQuick start:\n```bash\nexport PANGOLINFO_API_KEY=\"your-api-key\"\npython3 scripts\u002Fpangolinfo.py --auth-only\n```\n\n## Important Notes for AI Agents\n\n1. **Never dump raw JSON.** Parse and present per the Response Presentation guidelines.\n2. **Match the user's language.**\n3. **Default to a cheap first win.** On first invocation or broad requests, start with `category-search` or `category-tree` before expensive filters.\n4. **Use progressive drill-down.** `category-paths` is usually the second step; `category-filter` and `niche-filter` come later when the user asks for deeper validation.\n5. **Credit awareness.** `niche-filter` costs 10 credits -- warn before using it, especially in loops or bulk scans.\n6. **Use `--extra` for advanced filters.** All metric range, tier, trend, and sort filters go via `--extra key=value`.\n7. **Default to `US` marketplace** unless context implies another region.\n8. **Combine results intelligently.** A typical deeper workflow is `category-search` → `category-paths` or `category-filter` → `niche-filter`.\n9. **Security.** Never expose API keys or passwords.\n10. **Suggest next steps.** After the first successful run, recommend one concrete follow-up command.\n\n## Advanced Filter Reference\n\nSee [references\u002Famazon-niche-api.md](references\u002Famazon-niche-api.md) for the full list of `--extra` filter fields (numeric ranges, tiers, trends, quantile buckets) for Category Filter and Niche Filter APIs.\n\n## Output Schema\n\nSee [references\u002Foutput-schema.md](references\u002Foutput-schema.md) for per-API field documentation.\n\n\n## 🎯 Quick Start Prompts (Copy-Paste)\n- *\"Search Amazon categories for 'standing desk' and tell me which subcategories are worth drilling into next.\"*\n- *\"Resolve the full category paths for these browse node IDs: 2619526011, 172282.\"*\n- *\"Validate whether 'yoga mat' looks promising in Amazon US, and warn me before any 10-credit niche filtering.\"*\n\n## 🛑 Boundaries & Error Handling\n**When NOT to use:** Do not use for scraping individual product reviews (use `amazon-scraper` instead).\n**Agent Instructions for Errors:**\n- **401\u002F403 Auth Error**: Ensure `PANGOLINFO_API_KEY` is injected into the environment.\n- **429 Rate Limit**: Pause execution for 5 seconds, then retry automatically.\n","# Pangolinfo Amazon Niche Finder\n\nFind low-competition Amazon niches and category opportunities before you source or launch a product.\n\n## First win in 30 seconds\n\nIf your Pangolinfo credentials are already configured, run this first:\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-search --keyword \"yoga mat\"\n```\n\n## What success looks like\n\nA successful first run gives you:\n- matching Amazon categories in English and Chinese\n- category IDs you can drill into immediately\n- `sellable` and `hasChild` signals for fast triage\n- a clear next step: path lookup, tree browsing, or deeper niche filtering\n\n## What to do next\n\n1. Browse the category tree\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-tree\n```\n\n2. Resolve full category paths\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-paths --category-ids \"2619526011,172282\"\n```\n\n3. Validate higher-conviction niche opportunities (costs 10 credits)\n```bash\npython3 scripts\u002Fpangolinfo.py --api niche-filter --marketplace-id US --niche-title \"yoga mat\"\n```\n\n## Use when\n- you want to validate a product idea before sourcing or launch\n- you need to explore Amazon category trees and subcategories\n- you want to compare demand vs competition across categories and niches\n- you are looking for low-competition or blue-ocean opportunities\n- you need to decide which categories deserve deeper metric filtering\n\nDo **not** use this skill for Amazon product scraping, keyword SERP scraping, or review extraction. Use **pangolinfo-amazon-scraper** for those tasks.\n\n## Compatible agent frameworks\n- **OpenClaw**\n- **Claude Code \u002F Cursor**\n- **LangChain \u002F LangGraph**\n- **AutoGen \u002F CrewAI**\n\n## 🌐 多语言适配 (Multi-language Support)\n- **🇨🇳 中文适用场景**: 亚马逊底层选品类目挖掘与 BSR 追踪。通过细分市场过滤器定位蓝海类目，辅助卖家数据决策。\n- **Agent Directive**: Always output the final analysis\u002Freport in the language of the user's prompt (e.g., reply in Chinese if asked in Chinese).\n\n## First-use execution preference for AI agents\n- On first invocation or vague requests, start with `category-search` or `category-tree`, not `niche-filter`.\n- Use `category-paths` next when the user needs structural context or browse-node resolution.\n- Use `category-filter` or `niche-filter` only when the user explicitly asks for metric-based filtering or deeper validation.\n- Warn before `niche-filter`; it costs 10 credits.\n\n# Pangolinfo Amazon Niche Data\n\nQuery Amazon category and niche intelligence via Pangolinfo's 利基数据 (niche data) APIs. Covers 5 endpoints under `\u002Fapi\u002Fv1\u002Famzscope\u002F*` for category exploration, search, path resolution, and advanced filtering by business metrics.\n\n## When to Use This Skill\n\n| Intent (EN) | Intent (CN) | Action |\n|---|---|---|\n| Browse Amazon category tree | 浏览亚马逊类目树 | Category Tree |\n| Search for an Amazon category | 搜索亚马逊类目 | Category Search |\n| Get full path of category IDs | 批量查询类目路径 | Category Paths |\n| Filter categories by metrics | 按指标筛选类目 | Category Filter |\n| Find Amazon niches | 查找亚马逊利基市场 | Niche Filter |\n| Analyze category sales\u002Ftrends | 分析类目销量\u002F趋势 | Category Filter |\n| Find low-competition niches | 寻找低竞争利基 | Niche Filter |\n\nDo **not** use for Amazon product scraping, keyword search, or reviews -- those require the **pangolinfo-amazon-scraper** skill.\n\n## Prerequisites\n\n- **Python 3.8+** (stdlib only, no pip install needed)\n- **Pangolinfo account** at [pangolinfo.com](https:\u002F\u002Fpangolinfo.com\u002F?referrer=clawhub_niche)\n- **Environment variables**: `PANGOLINFO_API_KEY` (recommended) OR `PANGOLINFO_EMAIL` + `PANGOLINFO_PASSWORD`\n\n> **Security:** Credentials are held **in-memory only** by default. The script will **not** write any key or password to disk unless you explicitly opt in via `--cache-key` (or `PANGOLINFO_CACHE=1`), which persists the API key to `~\u002F.pangolinfo_api_key` (mode 600).\n\nmacOS SSL error? Run: `\u002FApplications\u002FPython\\ 3.x\u002FInstall\\ Certificates.command`\n\n## Script Execution\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-search --keyword \"yoga mat\"\n```\n\n## Intent-to-Command Mapping\n\n### 1. Browse Category Tree (top-level)\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-tree\n```\n\n### 2. Browse Children of a Specific Node\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-tree --parent-path \"2619526011\"\n```\n\nNested nodes use `\u002F`-joined paths: `--parent-path \"2619526011\u002F18116197011\"`.\n\n### 3. Search Categories by Keyword\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-search --keyword \"yoga mat\"\n```\n\nMatches both English and Chinese category names.\n\n### 4. Batch Resolve Category Paths\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-paths --category-ids \"2619526011,172282\"\n```\n\nAlso accepts JSON array: `--category-ids '[\"2619526011\",\"172282\"]'`.\n\n### 5. Filter Categories by Business Metrics\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-filter \\\n  --marketplace-id US --time-range l7d --sample-scope all_asin\n```\n\nSingle-category detail:\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-filter \\\n  --marketplace-id US --time-range l7d --sample-scope all_asin \\\n  --category-id 979832011\n```\n\nWith advanced filters via `--extra`:\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api category-filter \\\n  --marketplace-id US --time-range l30d --sample-scope all_asin \\\n  --extra 'buyBoxPriceAvgMin=1000' \\\n  --extra 'buyBoxPriceTiers=[\"mainstream\",\"premium\"]' \\\n  --extra 'sortField=unitSoldSum' \\\n  --extra 'sortOrder=desc'\n```\n\n### 6. Filter Niches by Business Metrics\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api niche-filter --marketplace-id US\n```\n\nSearch by title:\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api niche-filter \\\n  --marketplace-id US --niche-title \"yoga mat\"\n```\n\nWith advanced range filters:\n\n```bash\npython3 scripts\u002Fpangolinfo.py --api niche-filter \\\n  --marketplace-id US \\\n  --extra 'searchVolumeT90Min=1000' \\\n  --extra 'sortField=searchVolumeT90' \\\n  --extra 'sortOrder=desc'\n```\n\n## Smart Defaults\n\n1. **Pagination defaults** -- `page=1`, `size=10` if not specified\n2. **Filter APIs cap** -- `size` max 10 and `page` max 10 for `category-filter` and `niche-filter`\n3. **`--extra` is JSON-parsed** -- numbers become ints, arrays become arrays, strings stay strings\n4. **Marketplace default** -- no default; must be explicitly provided for filter APIs\n\n## All CLI Options\n\n| Flag | Description | Default |\n|---|---|---|\n| `--api` | API to call (see APIs below) | *required* |\n| `--page` | 1-based page number (max 10 for filter APIs) | `1` |\n| `--size` | Items per page (max 10 for filter APIs) | `10` |\n| `--parent-path` | category-tree: parent node path | -- |\n| `--keyword` | category-search: search term (EN or CN) | -- |\n| `--category-ids` | category-paths: comma-separated or JSON array | -- |\n| `--marketplace-id` | Marketplace code (e.g. US, UK, DE) | -- |\n| `--time-range` | Aggregation range (e.g. l7d, l30d, l90d) | -- |\n| `--sample-scope` | Sample scope (e.g. all_asin) | -- |\n| `--category-id` | category-filter: single-category detail | -- |\n| `--niche-id` | niche-filter: specific niche ID | -- |\n| `--niche-title` | niche-filter: keyword match on title | -- |\n| `--extra` | Extra field as `key=value` (repeatable, JSON-parsed) | -- |\n| `--auth-only` | Auth check only (no credits) | -- |\n| `--raw` | Output raw API response | -- |\n| `--timeout` | Timeout in seconds | `120` |\n| `--cache-key` | Persist API key to `~\u002F.pangolinfo_api_key` | off |\n\n## APIs\n\n| API | `--api` value | Required fields | Endpoint | Credits |\n|---|---|---|---|---|\n| Category Tree | `category-tree` | -- | `\u002Fapi\u002Fv1\u002Famzscope\u002Fcategories\u002Fchildren` | 2 |\n| Category Search | `category-search` | `--keyword` | `\u002Fapi\u002Fv1\u002Famzscope\u002Fcategories\u002Fsearch` | 2 |\n| Category Paths | `category-paths` | `--category-ids` | `\u002Fapi\u002Fv1\u002Famzscope\u002Fcategories\u002Fpaths` | 2 |\n| Category Filter | `category-filter` | `--marketplace-id --time-range --sample-scope` | `\u002Fapi\u002Fv1\u002Famzscope\u002Fcategories\u002Ffilter` | 5 |\n| Niche Filter | `niche-filter` | `--marketplace-id` | `\u002Fapi\u002Fv1\u002Famzscope\u002Fniches\u002Ffilter` | 10 |\n\n## Marketplace IDs\n\n| Code | Region | Code | Region |\n|---|---|---|---|\n| `US` | United States | `JP` | Japan |\n| `UK` | United Kingdom | `IT` | Italy |\n| `CA` | Canada | `ES` | Spain |\n| `DE` | Germany | `MX` | Mexico |\n| `FR` | France | `AU` | Australia |\n| `IN` | India | `BR` | Brazil |\n| `AE` | UAE | `SA` | Saudi Arabia |\n\n## Cost\n\n| API | Credits |\n|---|---|\n| Category Tree | 2 |\n| Category Search | 2 |\n| Category Paths | 2 |\n| Category Filter | 5 |\n| Niche Filter | 10 |\n\nCredits consumed on success only (API code 0). Empty results are not charged. Auth checks are free.\n\n## Output Format\n\nJSON to **stdout** on success, error JSON to **stderr** on failure.\n\n### Success\n\n```json\n{\n  \"success\": true,\n  \"api\": \"searchCategoriesAPI\",\n  \"items\": [\n    {\n      \"browseNodeId\": \"9059094011\",\n      \"browseNodeName\": \"Headphones\",\n      \"browseNodeNameCn\": \"耳机\",\n      \"sellable\": 1,\n      \"hasChild\": 0\n    }\n  ],\n  \"total\": 33,\n  \"page\": 1,\n  \"size\": 10,\n  \"totalPages\": 4,\n  \"results_count\": 10\n}\n```\n\n### Error (stderr)\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"API_ERROR\",\n    \"api_code\": 1002,\n    \"message\": \"Invalid Parameter: keyword is required\",\n    \"hint\": \"Check required fields for this API. See references\u002Ferror-codes.md.\"\n  }\n}\n```\n\n## Response Presentation\n\nMatch the user's language. Never dump raw JSON.\n\n- **Category Tree**: hierarchical list with node name (EN\u002FCN), sellable indicator\n- **Category Search**: numbered list with category path, sellable, hasChild\n- **Category Paths**: table of ID -> full path (EN\u002FCN)\n- **Category Filter**: metric summary card with sales, views, trends, price tier\n- **Niche Filter**: niche overview with search volume, product count, brand count, growth\n- **Empty results**: suggest loosening filters, checking marketplace, broadening search\n\n## Exit Codes\n\n| Code | Meaning |\n|---|---|\n| 0 | Success |\n| 1 | API error |\n| 2 | Usage error (bad arguments) |\n| 3 | Network error |\n| 4 | Authentication error |\n\n## Error Reference\n\n### Script Error Codes\n\n| Code | Meaning | Resolution |\n|------|---------|------------|\n| `MISSING_ENV` | No credentials | Set env vars |\n| `AUTH_FAILED` | Wrong credentials | Verify email\u002Fpassword |\n| `RATE_LIMIT` | Too many requests | Wait and retry |\n| `NETWORK` | Connection issue | Check internet |\n| `SSL_CERT` | Certificate error | See macOS SSL fix |\n| `API_ERROR` | Pangolinfo API error | Check `api_code` and `hint` |\n| `PARSE_ERROR` | Invalid API response | Retry |\n| `USAGE_ERROR` | Bad arguments | Fix CLI args |\n\n### Pangolinfo API Error Codes\n\n| Code | Meaning | Resolution |\n|------|---------|------------|\n| 1002 | Invalid parameter | Check required fields for the API |\n| 1004 | Invalid token | Auto-retried by script |\n| 2001 | Insufficient credits | Top up at [pangolinfo.com](https:\u002F\u002Fpangolinfo.com\u002F?referrer=clawhub_niche) |\n| 2005 | No active plan | Subscribe at [pangolinfo.com](https:\u002F\u002Fpangolinfo.com\u002F?referrer=clawhub_niche) |\n| 2007 | Account expired | Renew at [pangolinfo.com](https:\u002F\u002Fpangolinfo.com\u002F?referrer=clawhub_niche) |\n| 2009 | Usage limit reached | Wait for next billing cycle |\n| 4029 | Rate limited | Reduce request frequency |\n| 9100 | Service disabled | Retry later |\n| 9101 | Data source unavailable | Retry later |\n| 9102 | Quota exceeded | Contact support |\n\n## Self-Test\n\nRun `bash scripts\u002Fself_test.sh` to validate all 5 APIs. **This consumes up to ~21 credits** (Tree 2 + Search 2 + Paths 2 + CategoryFilter 5 + NicheFilter 10). Auth check is free. Only run when you need to verify connectivity.\n\n## First-Time Setup\n\nSee [references\u002Fsetup-guide.md](references\u002Fsetup-guide.md) for interactive setup instructions.\n\nQuick start:\n```bash\nexport PANGOLINFO_API_KEY=\"your-api-key\"\npython3 scripts\u002Fpangolinfo.py --auth-only\n```\n\n## Important Notes for AI Agents\n\n1. **Never dump raw JSON.** Parse and present per the Response Presentation guidelines.\n2. **Match the user's language.**\n3. **Default to a cheap first win.** On first invocation or broad requests, start with `category-search` or `category-tree` before expensive filters.\n4. **Use progressive drill-down.** `category-paths` is usually the second step; `category-filter` and `niche-filter` come later when the user asks for deeper validation.\n5. **Credit awareness.** `niche-filter` costs 10 credits -- warn before using it, especially in loops or bulk scans.\n6. **Use `--extra` for advanced filters.** All metric range, tier, trend, and sort filters go via `--extra key=value`.\n7. **Default to `US` marketplace** unless context implies another region.\n8. **Combine results intelligently.** A typical deeper workflow is `category-search` → `category-paths` or `category-filter` → `niche-filter`.\n9. **Security.** Never expose API keys or passwords.\n10. **Suggest next steps.** After the first successful run, recommend one concrete follow-up command.\n\n## Advanced Filter Reference\n\nSee [references\u002Famazon-niche-api.md](references\u002Famazon-niche-api.md) for the full list of `--extra` filter fields (numeric ranges, tiers, trends, quantile buckets) for Category Filter and Niche Filter APIs.\n\n## Output Schema\n\nSee [references\u002Foutput-schema.md](references\u002Foutput-schema.md) for per-API field documentation.\n\n\n## 🎯 Quick Start Prompts (Copy-Paste)\n- *\"Search Amazon categories for 'standing desk' and tell me which subcategories are worth drilling into next.\"*\n- *\"Resolve the full category paths for these browse node IDs: 2619526011, 172282.\"*\n- *\"Validate whether 'yoga mat' looks promising in Amazon US, and warn me before any 10-credit niche filtering.\"*\n\n## 🛑 Boundaries & Error Handling\n**When NOT to use:** Do not use for scraping individual product reviews (use `amazon-scraper` instead).\n**Agent Instructions for Errors:**\n- **401\u002F403 Auth Error**: Ensure `PANGOLINFO_API_KEY` is injected into the environment.\n- **429 Rate Limit**: Pause execution for 5 seconds, then retry automatically.\n",{"name":5,"tags":24,"version":37,"homepage":38,"metadata":39,"description":53},[25,26,27,28,29,30,31,32,33,34,35,36],"amazon","amazon-niche","niche-finder","niche-research","category-research","category-tree","category-intelligence","product-opportunity","product-validation","low-competition","blue-ocean","ecommerce","2.0.4","https:\u002F\u002Fpangolinfo.com\u002F?referrer=clawhub_amz_niche",{"openclaw":40},{"os":41,"emoji":44,"requires":45},[42,43],"darwin","linux","🎯",{"env":46,"bins":50,"notes":52,"primaryEnv":47},[47,48,49],"PANGOLINFO_API_KEY","PANGOLINFO_EMAIL","PANGOLINFO_PASSWORD",[51],"python3","Set PANGOLINFO_API_KEY (recommended). Alternative: set PANGOLINFO_EMAIL + PANGOLINFO_PASSWORD instead (optional, for email\u002Fpassword login). Credentials are NOT cached to disk by default; disk persistence only activates with explicit --cache-key flag or PANGOLINFO_CACHE=1.","Find profitable Amazon niches and category opportunities with structured category tree data, niche filters, category path lookup, and marketplace-level business metrics. Use when you need an Amazon niche finder, category research API, product opportunity discovery, low-competition niche analysis, demand-vs-competition validation, or blue-ocean subcategory discovery before launching on Amazon. Helpful for requests like \"find a low-competition niche\", \"validate a product idea before sourcing\", \"browse Amazon category trees\", \"find promising subcategories\", or \"is there a skill that can analyze Amazon categories for me\".\n","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fp\u002Fpangolinfo-amazon-niche",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill pangolinfo-amazon-niche",{"tool":69,"command":70},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill pangolinfo-amazon-niche",{"tool":72,"command":73},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill pangolinfo-amazon-niche","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fpangolinfo-amazon-niche\u002FSKILL.md",true,[],[78,85,92,99,106,113],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]