Skip to content

roikra/usearch-keyword-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Python to call the Search APIs:

  • Popular Sites For Query
  • Query keywords
  • Similar Queries

Popular Sites For Query

import requests

URL = "https://keyword-analysis.p.rapidapi.com/api/query/PopularDomainsForQuery"

HEADERS = {
    "x-rapidapi-host": "keyword-analysis.p.rapidapi.com",
    "x-rapidapi-key": "Your-X-RapidAPI-Key"
}

querystring = {"q": "taylor swift"}

response = requests.get(URL, headers=HEADERS, params=querystring).json()

for item in response:
    name = item["name"]
    score = item["score"]

    print("name: {}, score: {}.".format(name, score))

Query keywords

import requests

URL = "https://keyword-analysis.p.rapidapi.com/api/query/QueryKeywords"
HEADERS = {
    "x-rapidapi-host": "keyword-analysis.p.rapidapi.com",
    "x-rapidapi-key": "Your-X-RapidAPI-Key"
}

querystring = {"q":"cyberia game review"}

response = requests.get(URL, headers=HEADERS, params=querystring)
print(response.text)

Similar Queries

import requests

URL = "https://keyword-analysis.p.rapidapi.com/api/query/SimilarQueries"
HEADERS = {
    "x-rapidapi-host": "keyword-analysis.p.rapidapi.com",
    "x-rapidapi-key": "Your-X-RapidAPI-Key"
}

querystring = {"q": "john wick 3"}

response = requests.get(URL, headers=HEADERS, params=querystring).json()
print(response)

for item in response:
    name = item["name"]
    score = item["score"]

    print("name: {}, score: {}.".format(name, score))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages