Keyword Data Estimator API

API Endpoint Specifications

  • Endpoint Path: /api/3/kwMediaCost
  • Type of Data: JSON & 10/minute
  • Data Source: Google, Bing & Amazon
  • Request Limit: 500 request/month
  • Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
Keyword Data Estimator API Endpoint Basic Info

API Endpoint Path

required

Keyword Data Estimator API

api/3/kwMediaCost


Call Method

Required

GET

Type of Data Return

JSON

Output structured JSON data on keyword volume and cost per click


Available API Arguments & Parameters

token

required

BUYFROMLO API token. Paid subscription API is available: /api/3/kwMediaCost, and accessible to on-site APP on /app/3/keywordestimator as well

keyword

required

Input a keyword

country

required

Enter the target market using short-code, such as US, JP, etc

searchengine

required

Input the target search engine, such as google, bing, amazon. Currently only Google keyword data is available and please contact us if you would like to access Bing and Amazon for testing purpose.

language

required

Enter a language ISO short-code. Default is EN

typeofKWresponse

required

Select the type of response: Options: keyword_dataset, kwwithaianalysis



Keyword Data Estimator API

api/3/kwMediaCost


Code Integration and Response

Python Code Sample


import requests

## Required components ##

token = "your buyfromlo token"
apiendpoint = "https://api.buyfromlo.com/api/3/kwMediaCost?"
keyword = "target product keyword"
searchengine = "target channel"
country = "target country"
language = "target language"
typeofKWresponse=""

## Call the api ##
data="keyword=" + keyword + "&country=" + country + "&searchengine=" + searchengine + "&language=" + language + "&typeofKWresponse=" + typeofKWresponse
headers={"Authorization": "Bearer " + token}

response = requests.get(apiendpoint + data, headers=headers)
print(response.status_code)
print(response.json())
                        

JSON Response Sample


{
    "Root keyword": " " (string),
    "Keyword Ideas": " " (string),
    "Avg Monthlyl Searches": " "(integer),
    "Competition Level": " " (string),
    "Competition Index": " " (string),
    "Lowest CPC US$": " " (float),
    "Highest CPC US$": " " (float),
}