Appearance
KeywordsX API Documentation
Introduction
The KeywordsX API enables you to analyze and process keywords efficiently. This API accepts a list of keywords and provides valuable insights, including keyword competition, search volume, and cpc.
Base URL
The base URL for the API is https://seox.p.rapidapi.com/.
Endpoint
- URL:
/api/keywordsx - Method: POST
Request Parameters
keywords(required): A comma-separated list of keywords for analysis.
Response
The API responds with a JSON object containing detailed information about the provided keywords.
Example Response:
json
{
"keywords": [
{
"avg_cpc": "0.8344",
"keyword": "example",
"max_cpc": "1.2344",
"min_cpc": "0.2344",
"competition": "23",
"avg_monthly_searches": "1000"
},
......
]
}Format:
cpcare in USDkeywordsin stringcompetition0 - 100 variable on competition levelseach: avg. monthly seach volume
Error Responses
400 Bad Request:
If the request is missing the keywords parameter.
json
{
"error": "Missing request body parameter `keywords`"
}405 Method Not Allowed:
If the HTTP method used is not allowed for this endpoint.
json
{
"error": "Method Not Allowed"
}500 Internal Server Error:
If an unexpected error occurs during the keyword analysis process.
json
{
"error": "Error message details"
}Example Usage
cURL Command
bash
curl -X POST -H "Content-Type: application/json" -d '{"keywords": "example,sample"}' https://seox.p.rapidapi.com/api/keywordsxJavaScript (axios)
javascript
import axios from "axios";
const keywords = "example,sample";
axios.post(`https://seox.p.rapidapi.com/api/keywords?keywords=${keywords.split(",")}`)
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error.response ? error.response.data : error.message);
});Note: Ensure to replace the base URL and endpoint with the actual values when integrating the KeywordsX API into your application.