keyword | Required | The keyword for the search |
Required | Your email | |
token | Required | Your api4serp API token |
location | Optional | Determines the location from which the search will be performed. It’s recommended to use a value from Google’s predetermined geo targeting. add link to api endpoint that triggers a csv download |
device | Optional | Desktop(default)/mobile |
gl | Optional | Determines the Google country to use for the request. see list of supported values here – add link |
hl | Optional | Determines the Google UI language. see list of supported values here – add link |
cr | Optional | Geographical param which limits the results to websites in the specified country. see list of supported values here – add link |
lr | Optional | Language param which limits the results to websites in the specified language. see list of supported values here – add link |
google_domain | Optional | The google domain to use in the request. see list of supported values here – add link |
num | Optional | Determines the number of organic results in the response. default is 10. |
Get request example
import requests
import json
URL = 'http://api.api4serp.com'
params = {
"email": "example@gmail.com",
"token": "123456789"
"keyword": "water"
"location": "Georgia,United States"
}
response = requests.get(URL, params=params).json()
print(response)
Egestas dignissim urna quam molestie ullamcorper fusce. Tortor facilisis nunc dignissim nam nunc justo. Risus iaculis mauris ac erat commodo elit non morbi a. Aliquam nunc sed consequat neque pretium. Mauris consequat aliquam sollicitudin imperdiet semper sit ac turpis sit. Felis vitae phasellus habitant magna dui feugiat amet egestas aliquam.
Semper in id
Tincidunt pellentesque pretium id quis sed nam quisque pretium id quis
- Nisl diam proin aliquam vitae;
- Ut ipsum purus sagittis amet consectetur;
- Nibh est et magna sit commodo diam nibh;
- llamcorper aliquet gravida urna non at tristique.
Sapien aenean et turpis quis interdum odio nisl
Egestas dignissim urna quam molestie ullamcorper fusce. Tortor facilisis nunc dignissim nam nunc justo. Risus iaculis mauris ac erat commodo elit non morbi.
Commodo GET >>> https://api.idoapi.com/search?q=new+home&location=Austin,United+States
Sociis a leo cursus vitae
Egestas dignissim urna quam molestie ullamcorper fusce. Tortor facilisis nunc dignissim nam nunc justo. Risus iaculis mauris ac erat commodo elit non morbi.
Odio aenean tincidunt morbi ante
Egestas dignissim urna quam molestie ullamcorper fusce. Tortor facilisis nunc dignissim nam nunc justo. Risus iaculis mauris ac erat commodo elit non morbi.
Geographic Location
Location | Required | Tincidunt pellentesque pretium id quis sed nam quisque. pretium id quis sed nam quisque. |
uule | Optional | Vehicula id aliquet pellentesque eget mauris volutpat. Elementum pharetragss. Pretium id quis sed nam quisque. |
Isig | Optional | Vehicula id aliquet pellentesque eget mauris volutpat. Elementum pharetrgga. Pretium id quis sed nam quisque |
Fringilla ut risus duis nisl aliquet maecenas id. Eu vitae turpis sit eu ipsum sem cras. Luctus nunc magna pharetra ac aliquam morbi commodo. Mauris lacinia habitasse arcu facilisi eu. Sit sem lorem sodales cursus purus. Est at elementum mattis non.
Venenatis dignissim orci et
Egestas dignissim urna quam molestie ullamcorper fusce. Tortor facilisis nunc dignissim nam nunc justo. Risus iaculis mauris ac erat commodo elit non morbi.
require 'google_search_results'
params = {
}
q: "sushi",
© Copy
location: "Austin, Texas, United States, United States, United States, United States, United
h1: "en",
gl: "us",
google_domain: "google.com",
api_key: "secret_api_key"
search = GoogleSearch.new(params) hash_results = search.get_hash