Skip to main content

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>",
}
Try in Playground?

How to use?

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)
})

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...