Keyword Generator API
Generate related and question-based keyword ideas by seed keyword and country.
See the Keyword Generator API product page for discovery use cases and an interactive test. This reference covers the seed and country inputs, idea fields and billing.
Keyword Generator API product page →
Endpoint
GET https://api.goanyapi.com/api/v1/keyword-generatorWith the current configuration, each successful request costs 3 credits.
Authentication
Authorization: Bearer YOUR_API_KEYRequest Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Seed keyword, up to 200 characters |
country | string | No | Two-letter country code. Defaults to us |
Example
GET /api/v1/keyword-generator?keyword=ai%20image&country=us
Authorization: Bearer YOUR_API_KEYResponse Example
{
"code": "ok",
"message": "ok",
"data": {
"endpoint": "keyword-generator",
"remainingCredits": 97,
"query": {
"keyword": "ai image",
"country": "us"
},
"keyword": "ai image",
"country": "us",
"searchEngine": "Google",
"withQuestionIdeas": true,
"allIdeasTotal": 101963,
"allIdeas": [
{
"country": "us",
"difficultyLabel": "Hard",
"keyword": "ai image generator",
"rankOrder": 0,
"updatedAt": "2026-08-06 23:52:31",
"volumeLabel": "MoreThanHundredThousand"
}
],
"questionIdeasTotal": 7920,
"questionIdeas": [
{
"country": "us",
"difficultyLabel": "Hard",
"keyword": "is this image ai",
"rankOrder": 0,
"updatedAt": "2026-08-07 14:23:04",
"volumeLabel": "MoreThanOneThousand"
}
]
}
}Response Fields
| Field | Description |
|---|---|
data.allIdeas | Ranked related keyword ideas |
data.allIdeasTotal | Total number of available related ideas |
data.questionIdeas | Ranked question-based keyword ideas |
data.questionIdeasTotal | Total number of available question ideas |
data.allIdeas[].keyword | Related keyword |
data.questionIdeas[].keyword | Question-shaped keyword |
data.allIdeas[].difficultyLabel | Difficulty range for a related idea |
data.questionIdeas[].difficultyLabel | Difficulty range for a question idea |
data.allIdeas[].volumeLabel | Volume range for a related idea |
data.questionIdeas[].volumeLabel | Volume range for a question idea |
data.allIdeas[].updatedAt | Update time or null |
data.questionIdeas[].updatedAt | Update time or null |
Billing
The current request cost follows the API configuration shown on this page.
- Credits are deducted only after a successful non-empty result
- Failed requests do not consume credits