Setup

SETUP DATAFORSEO

Configure your DataForSEO API in minutes

A Claude skill that verifies and saves your DataForSEO API credentials so all DataForSEO analysis skills work automatically.

From dataforseo · by nikhilbhansali
Requires Claude Code, Codex, or similar. Requires Python code execution and file system access

When does this skill activate?

Claude will use this skill when you mention phrases like:

/setup-dataforseo "setup DataForSEO" "configure DataForSEO" "DataForSEO API" "DataForSEO credentials" "connect DataForSEO"

How it works

1

Provide your credentials

Share your DataForSEO API login (email) and API password from the DataForSEO dashboard.

2

Verify and save

Claude runs a Python script to verify your credentials against the DataForSEO API and saves them securely to ~/.dataforseo_config.json with restricted permissions.

3

Start analyzing

All DataForSEO skills (competitor analysis, keyword research, backlink analysis) automatically use your stored credentials.

Requirements

DataForSEO account with API credentials (sign up at app.dataforseo.com)
Python installed for credential verification script
Claude Code (CLI or IDE) — requires file system access

Add This Skill

Copy each field into Claude's skill editor to add this skill, or add the plugin marketplace to get all skills at once.

Requires Claude Code, Codex, or similar

Requires Python code execution and file system access This skill won't work in Claude.ai or ChatGPT chat interfaces.

setup-dataforseo
Set up DataForSEO API credentials for accessing SEO, SERP, backlinks, and keyword data APIs
SKILL.md
---
name: setup-dataforseo
description: Set up DataForSEO API credentials for accessing SEO, SERP, backlinks, and keyword data APIs
---

# DataForSEO API Setup

This skill helps you configure your DataForSEO API credentials so you can use all the DataForSEO analysis tools.

## Getting Your API Credentials

1. Go to https://app.dataforseo.com/ and sign up or log in
2. Navigate to your API credentials section in the dashboard
3. Your **API Login** is your registered email address
4. Your **API Password** is generated in the dashboard (not your account password)

## Setup Instructions

Once you have your credentials, provide them and I will verify and save them securely.

**Required information:**
- API Login (your registered email)
- API Password (from the dashboard)

## What Happens During Setup

1. Your credentials are verified against the DataForSEO API
2. If valid, they are saved to `~/.dataforseo_config.json` with secure permissions (600)
3. All other DataForSEO skills will use these stored credentials automatically

## Verification Script

```python
import sys, os
skill_dir = os.path.dirname(os.path.abspath(__file__)) if '__file__' in dir() else os.getcwd()
sys.path.insert(0, os.path.join(skill_dir, '..', '..', 'scripts'))
from dataforseo_client import save_credentials, verify_credentials, get_user_data

# Replace with actual credentials provided by user
login = "YOUR_API_LOGIN"
password = "YOUR_API_PASSWORD"

print("Verifying DataForSEO credentials...")
if verify_credentials(login, password):
    save_credentials(login, password)
    print("Credentials verified and saved successfully!")

    # Show account info
    user_data = get_user_data()
    if user_data.get("status_code") == 20000:
        result = user_data["tasks"][0]["result"][0]
        print(f"\nAccount Details:")
        print(f"  Login: {result.get('login')}")
        print(f"  Timezone: {result.get('timezone')}")
else:
    print("ERROR: Invalid credentials. Please check your API login and password.")
    print("Get credentials at: https://app.dataforseo.com/")
```

## Test Connection

After setup, verify the connection works:

```python
import sys, os
skill_dir = os.path.dirname(os.path.abspath(__file__)) if '__file__' in dir() else os.getcwd()
sys.path.insert(0, os.path.join(skill_dir, '..', '..', 'scripts'))
from dataforseo_client import get_user_data

response = get_user_data()
if response.get("status_code") == 20000:
    result = response["tasks"][0]["result"][0]
    print("Connection successful!")
    print(f"  Logged in as: {result.get('login')}")
    print(f"  Timezone: {result.get('timezone')}")
else:
    print(f"Connection failed: {response.get('status_message', 'Unknown error')}")
```

## Troubleshooting

- **Invalid credentials**: Double-check you're using the API password from the dashboard, not your account login password
- **Connection errors**: Ensure you have internet connectivity
- **File permission errors**: The config file requires write access to your home directory

## Security Notes

- Credentials are stored locally at `~/.dataforseo_config.json`
- File permissions are set to 600 (owner read/write only)
- Never share your API password or config file

How to use this skill

Claude Installing this skill · Claude Cowork
Claude Skill in action · Claude Cowork
Claude Use /slash-commands or just ask · Claude Cowork

Frequently Asked Questions

Where do I get DataForSEO API credentials?

Sign up or log in at app.dataforseo.com. Your API login is your registered email address. Your API password is generated in the dashboard and is different from your account login password. The skill will verify both credentials before saving them.

How are my credentials stored?

Credentials are saved locally to ~/.dataforseo_config.json with file permissions set to 600 (owner read/write only). They are never transmitted anywhere other than the DataForSEO API for verification. All other DataForSEO skills read from this config file automatically.

What happens if verification fails?

If the credentials are invalid, the skill tells you the verification failed and prompts you to double-check that you are using the API password from the dashboard (not your account login password). It also checks for internet connectivity issues.

Does it work in Claude.ai chat?

No, this skill requires Python code execution to verify credentials against the DataForSEO API and file system access to save the configuration file. It needs to run in Claude Code (CLI or IDE).

Connect DataForSEO to Claude

Add this skill to Claude and configure your DataForSEO API credentials for all SEO analysis skills.

View on GitHub

Browse all skills