MyBacklinks CLI – Domain Analysis
Research any domain's SEO metrics (DR, traffic) and discover its backlink profile using the MyBacklinks CLI.
What this skill does
# MyBacklinks CLI – Domain Analysis
Evaluate any domain's SEO strength and reverse-engineer its backlink profile from the command line.
## Prerequisites
Authenticate once before running any command:
```bash
# API-key auth (recommended for agents)
mybacklinks login --api-key <YOUR_API_KEY>
# Verify credentials
mybacklinks status
```
All commands return JSON by default. Use `--md` for Markdown output, and `--base-url <url>` to target a different server.
---
## Commands
### 1. fetch-dr-by-domain
Retrieve the Domain Rating (DR) for a single domain. DR is a 0–100 score reflecting the strength of a domain's backlink profile.
**When to use:** Qualify a domain before outreach, compare competitors, or audit your own site's authority.
```bash
mybacklinks fetch-dr-by-domain --domain <domain>
```
| Option | Required | Type | Description |
|--------|----------|------|-------------|
| `--domain` | Yes | string | Domain to look up (e.g. `example.com`) |
**Examples:**
```bash
# Quick DR check
mybacklinks fetch-dr-by-domain --domain ahrefs.com
# JSON output for scripting
mybacklinks fetch-dr-by-domain --domain ahrefs.com --json
```
**Typical response (JSON):**
```json
{
"domain": "ahrefs.com",
"dr": 91
}
```
---
### 2. fetch-traffic-by-domain
Retrieve estimated monthly organic traffic for a domain.
**When to use:** Evaluate whether a site is worth pursuing for a guest post or backlink, gauge competitor reach, or prioritize outreach targets by traffic volume.
```bash
mybacklinks fetch-traffic-by-domain --domain <domain>
```
| Option | Required | Type | Description |
|--------|----------|------|-------------|
| `--domain` | Yes | string | Domain to look up |
**Examples:**
```bash
mybacklinks fetch-traffic-by-domain --domain moz.com
mybacklinks fetch-traffic-by-domain --domain moz.com --json
```
**Typical response (JSON):**
```json
{
"domain": "moz.com",
"traffic": 1250000
}
```
---
### 3. fetch-backlinks-by-domain
Discover the backlinks pointing to any domain. Returns referring pages, anchor texts, dofollow status, and referring domain ratings.
**When to use:** Reverse-engineer a competitor's link profile, find link-building opportunities from shared referring domains, or audit a prospective partner's backlink quality.
```bash
mybacklinks fetch-backlinks-by-domain --domain <domain> [options]
```
| Option | Required | Type | Description |
|--------|----------|------|-------------|
| `--domain` | Yes | string | Domain to look up |
| `--mode` | No | string | Discovery mode |
| `--dofollow` | No | boolean | Only return dofollow links |
| `--min-dr` | No | number | Minimum referring-domain DR |
| `--anchor-text` | No | string | Filter by anchor text substring |
| `--limit` | No | number | Max backlinks to return. Default: 100. Max: 500. Increase this when `summary.hasMore` is true. |
| `--offset` | No | number | Starting offset for pagination. Use `pagination.nextOffset` from the previous response. |
| `--all` | No | boolean | Fetch all pages automatically using offset pagination. Each page consumes credits. |
**Examples:**
```bash
# Basic discovery
mybacklinks fetch-backlinks-by-domain --domain competitor.com
# Only high-quality dofollow links
mybacklinks fetch-backlinks-by-domain --domain competitor.com --dofollow --min-dr 30
# Fetch more results when summary.hasMore is true
mybacklinks fetch-backlinks-by-domain --domain competitor.com --limit 500 --json
# Fetch the next page using pagination.nextOffset
mybacklinks fetch-backlinks-by-domain --domain competitor.com --offset 500 --limit 500 --json
# Fetch all pages automatically
mybacklinks fetch-backlinks-by-domain --domain competitor.com --all --limit 500 --json
# Search for specific anchor
mybacklinks fetch-backlinks-by-domain --domain competitor.com --anchor-text "best tools"
```
---
## Agent Workflows
### Competitive Gap Analysis
1. Identify competitor domains.
2. For each competitor, run `fetch-dr-by-domain` and `fetch-traffic-by-domain` to benchmark.
3. Run `fetch-backlinks-by-domain --dofollow --min-dr 20 --limit 500` to find high-quality referring domains. If the response shows `summary.hasMore`, continue with `--offset <pagination.nextOffset>` or use `--all --limit 500`.
4. Cross-reference referring domains across competitors to find common link sources you're missing.
### Domain Qualification for Outreach
Before reaching out to a site for a guest post or link placement:
1. `fetch-dr-by-domain --domain <target>` — confirm DR meets your minimum threshold.
2. `fetch-traffic-by-domain --domain <target>` — verify the site has real organic traffic.
3. If both pass, proceed with outreach; otherwise skip.
### Batch Domain Screening
Use `--json` output to pipe results into downstream processing:
```bash
for domain in site1.com site2.com site3.com; do
mybacklinks fetch-dr-by-domain --domain "$domain" --json
done
```
---
## Credit Cost
`fetch-dr-by-domain` and `fetch-traffic-by-domain` share the same underlying API endpoint (`getDomainMetrics`). `fetch-backlinks-by-domain` calls the backlink discovery endpoint. Both consume credits — check `mybacklinks status` to see your balance.
## Related Skills
- [mybacklinks-cli-resource-management](../mybacklinks-cli-resource-management/) — Save qualified domains as backlink resources
- [mybacklinks-cli-campaign-tracking](../mybacklinks-cli-campaign-tracking/) — Track backlinks you build against your projects
- [blog-commenter-skill](../blog-commenter-skill/) — Automate blog comment outreach
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".