ahrefs
Ahrefs SEO API for backlink and keyword analysis. Use when user mentions "SEO", "backlinks", "domain rating", "keyword research", or asks about site metrics.
What this skill does
## Troubleshooting
If requests fail, run `zero doctor check-connector --env-name AHREFS_TOKEN` or `zero doctor check-connector --url https://api.ahrefs.com/v3/site-explorer/domain-rating --method GET`
## Core APIs
### Get Domain Rating
Get the domain rating for a target. Replace `<target-domain>` with the actual domain (e.g., `ahrefs.com`):
```bash
curl -s "https://api.ahrefs.com/v3/site-explorer/domain-rating?target=<target-domain>&date=2026-03-01" --header "Authorization: Bearer $AHREFS_TOKEN" | jq '{domain_rating, ahrefs_rank}'
```
Docs: https://docs.ahrefs.com/reference/domain-rating
### Get Backlinks Overview
Replace `<target-domain>` with the actual domain:
```bash
curl -s "https://api.ahrefs.com/v3/site-explorer/backlinks-stats?target=<target-domain>&date=2026-03-01&mode=subdomains" --header "Authorization: Bearer $AHREFS_TOKEN" | jq '{live, all_time, live_refdomains, all_time_refdomains}'
```
### Get Backlinks
Get individual backlinks for a target. Replace `<target-domain>` with the actual domain:
```bash
curl -s "https://api.ahrefs.com/v3/site-explorer/all-backlinks?target=<target-domain>&date=2026-03-01&mode=subdomains&limit=10&select=url_from,url_to,ahrefs_rank,domain_rating_source,anchor,first_seen,last_seen" --header "Authorization: Bearer $AHREFS_TOKEN" | jq '.backlinks[] | {url_from, url_to, anchor, domain_rating_source}'
```
Docs: https://docs.ahrefs.com/reference/all-backlinks
### Get Referring Domains
Replace `<target-domain>` with the actual domain:
```bash
curl -s "https://api.ahrefs.com/v3/site-explorer/refdomains?target=<target-domain>&date=2026-03-01&mode=subdomains&limit=10&select=domain,domain_rating,backlinks,first_seen,last_seen" --header "Authorization: Bearer $AHREFS_TOKEN" | jq '.refdomains[] | {domain, domain_rating, backlinks}'
```
### Get Organic Keywords
Get keywords a domain ranks for organically. Replace `<target-domain>` with the actual domain:
```bash
curl -s "https://api.ahrefs.com/v3/site-explorer/organic-keywords?target=<target-domain>&date=2026-03-01&country=us&mode=subdomains&limit=10&select=keyword,position,volume,url,traffic" --header "Authorization: Bearer $AHREFS_TOKEN" | jq '.keywords[] | {keyword, position, volume, traffic, url}'
```
Docs: https://docs.ahrefs.com/reference/organic-keywords
### Get Organic Traffic Overview
Replace `<target-domain>` with the actual domain:
```bash
curl -s "https://api.ahrefs.com/v3/site-explorer/metrics?target=<target-domain>&date=2026-03-01&mode=subdomains" --header "Authorization: Bearer $AHREFS_TOKEN" | jq '{organic_traffic, organic_keywords, organic_cost, paid_traffic, paid_keywords}'
```
### Get URL Rating
Get URL rating for a specific page. Replace `<target-url>` with the full URL:
```bash
curl -s "https://api.ahrefs.com/v3/site-explorer/url-rating?target=<target-url>&date=2026-03-01" --header "Authorization: Bearer $AHREFS_TOKEN" | jq '{url_rating, ahrefs_rank}'
```
### Get Top Pages
Get top pages by organic traffic. Replace `<target-domain>` with the actual domain:
```bash
curl -s "https://api.ahrefs.com/v3/site-explorer/top-pages?target=<target-domain>&date=2026-03-01&country=us&mode=subdomains&limit=10&select=url,traffic,keywords,top_keyword,position" --header "Authorization: Bearer $AHREFS_TOKEN" | jq '.pages[] | {url, traffic, keywords, top_keyword, position}'
```
### Keywords Explorer - Volume
Get search volume for specific keywords. Replace `<keyword>` in the request:
Write to `/tmp/ahrefs_request.json`:
```json
{
"keywords": ["seo tools", "backlink checker"],
"country": "us"
}
```
```bash
curl -s -X POST "https://api.ahrefs.com/v3/keywords-explorer/volume?select=keyword,volume,difficulty,cpc,global_volume" --header "Authorization: Bearer $AHREFS_TOKEN" --header "Content-Type: application/json" -d @/tmp/ahrefs_request.json | jq '.keywords[] | {keyword, volume, difficulty, cpc}'
```
### Get Limits (Check API Usage)
```bash
curl -s "https://api.ahrefs.com/v3/subscription-info" --header "Authorization: Bearer $AHREFS_TOKEN" | jq '{rows_limit, rows_left, subscription}'
```
## Guidelines
1. **Date parameter**: Most endpoints require a `date` parameter in `YYYY-MM-DD` format; use recent dates for current data
2. **Mode**: Use `subdomains` to include all subdomains, `domain` for exact domain, `prefix` for URL prefix, `exact` for exact URL
3. **Country codes**: Use ISO 3166-1 alpha-2 codes (us, gb, de, etc.) for country-specific data
4. **Select parameter**: Specify fields to return with `select` to reduce response size
5. **Rate limits**: API usage is metered by rows returned; check `/v3/subscription-info` for remaining quota
6. **Limits**: Use `limit` and `offset` for pagination (max 1000 per request)
Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".