API Reference

Comprehensive documentation for the DeepRankAI API.

Getting Started

The DeepRankAI API allows you to integrate our powerful SEO and content optimization tools into your own applications. All API requests require authentication using an API key.

curl -X GET https://api.deeprankai.com/v1/auth/api-key \
-H "Authorization: Bearer YOUR_API_KEY"

Base URL

All API requests should be made to:

https://api.deeprankai.com

Authentication

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Authentication

GET

Get API Key

/v1/auth/api-key

Retrieve your API key for authentication.

curl -X GET https://api.deeprankai.com/v1/auth/api-key \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
POST

Refresh API Key

/v1/auth/refresh-key

Generate a new API key and invalidate the old one.

curl -X POST https://api.deeprankai.com/v1/auth/refresh-key \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \

Content Analysis

POST

Analyze URL

/v1/analyze/url

Analyze the content of a URL for SEO optimization.

curl -X POST https://api.deeprankai.com/v1/analyze/url \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
POST

Analyze Text

/v1/analyze/text

Analyze text content for SEO optimization.

curl -X POST https://api.deeprankai.com/v1/analyze/text \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
POST

Detect AI Content

/v1/analyze/ai-detection

Detect if content was generated by AI.

curl -X POST https://api.deeprankai.com/v1/analyze/ai-detection \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \

Keyword Research

POST

Extract Keywords

/v1/keywords/extract

Extract keywords from content.

curl -X POST https://api.deeprankai.com/v1/keywords/extract \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
GET

Keyword Suggestions

/v1/keywords/suggestions

Get keyword suggestions based on a seed keyword.

curl -X GET https://api.deeprankai.com/v1/keywords/suggestions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
GET

Keyword Metrics

/v1/keywords/metrics

Get metrics for specific keywords.

curl -X GET https://api.deeprankai.com/v1/keywords/metrics \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \

Content Generation

POST

Generate Titles

/v1/generate/titles

Generate SEO-optimized titles for content.

curl -X POST https://api.deeprankai.com/v1/generate/titles \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
POST

Rephrase Text

/v1/generate/rephrase

Rephrase text while maintaining meaning.

curl -X POST https://api.deeprankai.com/v1/generate/rephrase \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \

Projects

GET

List Projects

/v1/projects

List all projects.

curl -X GET https://api.deeprankai.com/v1/projects \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
POST

Create Project

/v1/projects

Create a new project.

curl -X POST https://api.deeprankai.com/v1/projects \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
GET

Get Project

/v1/projects/{id}

Get details of a specific project.

curl -X GET https://api.deeprankai.com/v1/projects/{id} \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
PUT

Update Project

/v1/projects/{id}

Update a specific project.

curl -X PUT https://api.deeprankai.com/v1/projects/{id} \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
DELETE

Delete Project

/v1/projects/{id}

Delete a specific project.

curl -X DELETE https://api.deeprankai.com/v1/projects/{id} \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \

Need more help?

Check out our comprehensive documentation or contact our support team for assistance with API integration.