Keywords
Generate SEO Friendly Keywords similar to your given keyword(s) that can be used in your website/campaign:
Endpoint
Description
- Method:
POST - Origin:
https://seo.lwe.ai/api - Route:
/google/getSimilarKeywords - Accept:
application/json - Auth:
API_KEY
Body
{
"keywords": "<array of your keywords>",
}
How to use?
- JavaScript
- Python
- cURL
First, Install axios if not already installed:
npm i axios
Second, Call /getSimilarKeywords endpoint:
// import axios
import axios from "axios"
// request body
const body = {
keywords: ["salah", "liverpool"],
}
// add your API_KEY in headers
const config = {
headers: {
API_KEY: "YOUR_API_KEY"
}
}
// call axios request
axios.post("https://seo.lwe.ai/api/google/getSimilarKeywords", body, config).then(res=> {
console.log(res.data) // process response data
}).catch(err => {
console.error(err.message)
})
First, Install requests if not already installed:
pip install requests
Second, Call /getSimilarKeywords endpoint:
# import requests
import requests
# request body
body = {
"keywords": ["salah", "liverpool"]
}
# add your API_KEY in headers
headers = {
"API_KEY": "YOUR_API_KEY"
}
# call request
try:
res = requests.post("https://seo.lwe.ai/api/google/getSimilarKeywords", json=body, headers=headers)
res.raise_for_status() # Check for HTTP errors
print(res.json()) # Process the JSON response
except requests.exceptions.RequestException as err:
print(f"An error occurred: {err}")
curl -X POST https://seo.lwe.ai/api/google/getSimilarKeywords \
-H "Content-Type: application/json" \
-H "API_KEY: YOUR_API_KEY" \
-d "{\"keywords\": [\"salah\", \"liverpool\"]}"
One line command cURL request:
curl -X POST https://seo.lwe.ai/api/google/getSimilarKeywords -H "Content-Type: application/json" -H "API_KEY: YOUR_API_KEY" -d "{\"keywords\": [\"salah\", \"liverpool\"]}"
Sample Reponse Data
{
similarKeywords: [
"salah",
"liverpool",
"liverpool real madrid",
"manchester city liverpool",
"arsenal liverpool",
"liverpool tottenham",
"aston villa liverpool",
"chelsea liverpool",
"ajax liverpool",
"liverpool brighton"
]
}
React Use Case
- Assume you have a blog post that is talking about Artificial Intelligence.
- You need to find suitable seo friendly keywords to list them in your post hashtag section.
Live Editor
function AIPost () { const [keywords, setKeywords] = useState([]) useEffect(() => { // generate seo keywords axios.post("https://seo.lwe.ai/api/google/getSimilarKeywords", { keywords: ["ai"], }, { headers: { API_KEY: "YOUR_API_KEY" } }).then(res => { setKeywords(res.data.similarKeywords) }).catch((err) => { console.error(err.message) }) }, []) return ( <div> <h1>Future with AI: From AI Online Platforms to NVIDIA GauGAN and AI Labs</h1> <p> Explore the world of AI. Discover AI online with Araby AI. Experience NVIDIA GauGAN for creative AI solutions. Open new possibilities with AI open platforms. Enhance your projects with web AI and AI web tools. Join AI lab for innovative research. Learn about الذكاء الاصطناعي AI. Start your journey with Elements of AI. </p> {keywords.map((word, idx)=><a key={idx}>#{word.replace(' ', '_')} </a>)} </div> ) }
Result
Loading...