Skip to main content

Get Your API Key

First, you’ll need to get your API key from the AgenticPencil platform:
1

Sign Up

Visit platform.agenticpencil.com and create your account
2

Verify Email

Check your inbox and verify your email address
3

Generate API Key

Navigate to the API Keys section and generate your first key
Your API key will start with ap_ and look like this: ap_1234567890abcdef
Keep your API key secure! Never expose it in client-side code or public repositories.

Make Your First API Call

Let’s start with a simple keyword research request to get you familiar with the API:

Understanding the Response

You’ll receive a structured response with keyword opportunities:
Example Response

Key Response Fields

string
The keyword phrase
number
Monthly search volume
string
Competition level: low, medium, or high
number
AgenticPencil’s proprietary opportunity score (1-100, higher is better)
number
Number of credits consumed by this request

Next Steps

Now that you’ve made your first successful API call, explore these powerful features:

Content Gap Analysis

Find keywords your competitors rank for but you don’t

Content Audit

Analyze your existing content performance

Content Recommendations

Get AI-powered content strategy suggestions

Usage Tracking

Monitor your API usage and credit consumption

Error Handling

Always check the response status and handle errors gracefully:
Error Handling Example
Start with small requests to understand the API structure, then scale up as you build confidence with the responses.