Core APIs
...
Google
Core Requests
Scholar
3min
google scholar parameters get get /search?search type=scholar the google scholar parameters are applicable when making a request with search type=scholar to retrieve scholar results for a given search term the search term is specified in the q parameter and the optional location parameter can be used to geo locate the scholar request (locations can be retrieved via the locations api https //docs trajectdata com/scaleserp/locations api/overview ) for example, to request scholar results for the keyword rubifen in the location united states , the request would be http https //api scaleserp com/search?api key=demo\&search type=scholar\&q=rubifen\&location=united+statescurl l get https //api scaleserp com/search \\ d api key="demo" \\ d q="rubifen" \\ d search type="scholar" \\ d location="united+states"const axios = require('axios'); // set up the request parameters const params = { api key "demo", q "rubifen", search type "scholar", location "united+states" } // make the http get request axios get('https //api scaleserp com"/search', { params }) then(response => { // print the json response console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'q' 'rubifen', 'search type' 'scholar', 'location' 'united+states' } \# make the http get request api result = requests get('https //api scaleserp com/search', params) \# print the json response print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'q' => 'rubifen', 'search type' => 'scholar', 'location' => 'united+states' ]); \# make the http get request $ch = curl init(sprintf('%s?%s', 'https //api scaleserp com/search', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response echo $api result; ?> google scholar parameters the following parameters are available for all requests made when search type=scholar parameter required description search type required should be set to search type=scholar q required the keyword you want to use to perform the scholar search location optional determines the geographic location in which the query is executed you can enter any location as free text, but if you choose one of the scale serp built in locations https //docs trajectdata com/scaleserp/locations api/overview then the google domain , gl and hl parameters are automatically updated to the domain, country and language that match the built in location (note that this behaviour can be disabled via the location auto parameter) location auto optional if the location field is set to a scale serp built in location https //docs trajectdata com/scaleserp/locations api/overview from the locations api https //docs trajectdata com/scaleserp/locations api/overview , and location auto is set to true (default) then the google domain , gl and hl parameters are automatically updated to the domain, country and language that match the built in location valid values are true (default) to enable this behaviour or false to disable uule optional the google uule parameter use to pass through a custom uule parameter to google scale serp automatically generates the uule when you use the location parameter but we allow you to overwrite it directly by specifying a uule directly google domain optional the google domain to use to run the search query view the full list of supported google domain values here https //docs trajectdata com/scaleserp/search api/reference/google domains defaults to google com gl optional the gl parameter determines the google country to use for the query view the full list of supported gl values here https //docs trajectdata com/scaleserp/search api/reference/google countries defaults to us hl optional the hl parameter determines the google ui language to return results view the full list of supported hl values here https //docs trajectdata com/scaleserp/search api/reference/google languages defaults to en lr optional the lr parameter limits the results to websites containing the specified language view the full list of supported lr values here https //docs trajectdata com/scaleserp/search api/reference/google lr languages cr optional the cr parameter instructs google to limit the results to websites in the specified country view the full list of supported cr values here https //docs trajectdata com/scaleserp/search api/reference/google cr countries page optional determines the page of results to return, defaults to 1 max page optional use the max page parameter to get multiple pages of results in one request the api will automatically paginate through pages and concatenate the results into one response see the pagination https //docs trajectdata com/scaleserp/search api/pagination docs for more information sort by optional determines how results are sorted, valid values are relevance or date scholar include citations optional determines whether to include citations or not when the search type parameter is set to scholar valid values are true or false defaults to true drives the following option scholar year min optional determines the year from which results should be included when search type=scholar for example, if you set scholar year min=2018 the results before 2018 will be omitted this parameter can be combined with the scholar year max parameter scholar year max optional determines the year from which results should be included when search type=scholar for example, if you set scholar year max=2019 the results after 2019 will be omitted this parameter can be combined with the scholar year min parameter scholar patents courts optional the scholar patents courts parameter can be used either as both a way of limiting the scholar search or as a filter (this is due to how google implements this parameter itself) as a filter the valid values are 0 (default) include patents 1 exclude patents as a way of limiting a scholar search the valid values are 4 case law (us courts only) this will select all the state and federal courts to select specific courts, see the full list of supported google scholar courts https //docs trajectdata com/scaleserp/search api/reference/google scholar courts for example, scholar patents courts=4,33,192 4 is the required value and should always be in the first position, 33 selects all new york courts and 192 selects tax court values must be separated by a comma scisbd optional the scholar scisbd parameter can be set to 1 or 2 next steps google scholar results https //docs trajectdata com/scaleserp/search api/results/google/scholar