Data API / DataForSEO / Business Data
Live Business Listings Search Tasks
Searches DataForSEO's own index of local business listings by categories, description, title and location_coordinate - a latitude, longitude and radius triple. Returns total_count, count, offset, offset_token and items, paged with the token. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. This reads an index and answers immediately; everything else here queues a live scrape of the source. Start with this and drill in only where it matters.
Параметры
Параметров пути, запроса и заголовков нет.
Тело запроса
categoriesstring[]Необязательныйbusiness categories optional field the categories you specify are used to search for business listings; if you don’t use this field, we will return business listings found in the specified location; you can specify up to 10 categories
descriptionstringНеобязательныйdescription of the element in SERP optional field the description of the business entity for which the results are collected; can contain up to 200 characters
titlestringНеобязательныйtitle of the element in SERP optional field the name of the business entity for which the results are collected; can contain up to 200 characters
is_claimedbooleanНеобязательныйindicates whether the business is verified by its owner on Google Maps optional field
location_coordinatestringНеобязательныйGPS coordinates of a location optional field
location_coordinateparameter should be specified in the “latitude,longitude,radius” format the maximum number of decimal digits for “latitude” and “longitude”: 7 the value of “radius” is specified in kilometres (km) the minimum value for “radius”:1the maximum value for “radius”:100000example:53.476225,-2.243572,200filtersarrayНеобязательныйarray of results filtering parameters optional field you can add several filters at once (8 filters maximum) you should set a logical operator
and,orbetween the conditions the following operators are supported:regex,not_regex, ``,>=,=, ``,in,not_in,like,not_like,ilike,not_ilike,match,not_matchyou can use the%operator withlikeandnot_liketo match any string of zero or more characters example:["rating.value",">",3]you can receive the list of available filters by making a separate request tohttps://api.dataforseo.com/v3/business_data/business_listings/available_filtersorder_bystring[]Необязательныйresults sorting rules optional field you can use the same values as in the
filtersarray to sort the results possible sorting types:asc– results will be sorted in the ascending orderdesc– results will be sorted in the descending order you should use a comma to set up a sorting parameter example:["rating.value,desc"]note that you can set no more than three sorting rules in a single request you should use a comma to separate several sorting rules example:["rating.value,desc","rating.votes_count,desc"]limitintegerНеобязательныйthe maximum number of returned businesses optional field default value:
100maximum value:1000offsetintegerНеобязательныйoffset in the results array of returned businesses optional field default value:
0if you specify the10value, the first ten entities in the results array will be omitted and the data will be provided for the successive entitiesoffset_tokenstringНеобязательныйtoken for subsequent requests optional field provided in the identical filed of the response to each request; use this parameter to avoid timeouts while trying to obtain over 100,000 results in a single request; by specifying the unique
offset_tokenvalue from the response array, you will get the subsequent results of the initial task;offset_tokenvalues are unique for each subsequent task Note: if theoffset_tokenis specified in the request, all other parameters should be identical to the previous requesttagstringНеобязательныйuser-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified
tagvalue in thedataobject of the response
Пример запроса
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/business_data/business_listings/search/live" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"categories": [
"<string>"
],
"description": "<string>",
"title": "<string>",
"is_claimed": false,
"location_coordinate": "<string>",
"filters": "<string>",
"order_by": [
"<string>"
],
"limit": 0
}'Ответ
Поля ответа
versionstringНеобязательныйthe current version of the API
status_codeintegerНеобязательныйgeneral status code you can find the full list of the response codes here Note: we strongly recommend designing a necessary system for handling related exceptional or error conditions
status_messagestringНеобязательныйgeneral informational message you can find the full list of general informational messages here
timestringНеобязательныйexecution time, seconds
costnumberНеобязательныйtotal tasks cost, USD
tasks_countintegerНеобязательный*the number of tasks in the
tasksarray*tasks_errorintegerНеобязательный*the number of tasks in the
tasksarray returned with an error*tasksstring[]Необязательныйarray of tasks
idstringНеобязательныйunique task identifier in our system in the Universally unique identifier (UUID) format
status_codeintegerНеобязательныйstatus code of the task generated by DataForSEO; can be within the following range: 10000-60000
status_messagestringНеобязательныйinformational message of the task
timestringНеобязательныйexecution time, seconds
costnumberНеобязательныйcost of the task, USD
result_countintegerНеобязательныйnumber of elements in the
resultarraypathstring[]НеобязательныйURL path
dataobjectНеобязательныйcontains the same parameters that you specified in the POST request
resultstring[]Необязательныйarray of results
total_countintegerНеобязательныйtotal number of results in our database relevant to your request
countintegerНеобязательныйitem types the number of items in the
itemsarrayoffsetintegerНеобязательныйoffset in the results array of returned businesses
offset_tokenstringНеобязательныйtoken for subsequent requests by specifying the unique
offset_tokenwhen setting a new task, you will get the subsequent results of the initial task;offset_tokenvalues are unique for each subsequent taskitemsstring[]Необязательныйencountered item types types of search engine results encountered in the
itemsarray; possible item types:business_listingtypestringНеобязательный*type of element = ‘business\_listing’*
titlestringНеобязательныйtitle of the element in SERP the name of the business entity for which the results are collected
original_titlestringНеобязательныйoriginal title of the element original title not translated by Google
descriptionstringНеобязательныйdescription of the element in SERP the description of the business entity for which the results are collected
categorystringНеобязательныйbusiness category Google My Business general category that best describes the services provided by the business entity
category_idsstring[]Необязательныйglobal category IDs universal category IDs that do not change based on the selected country
additional_categoriesstring[]Необязательныйadditional business categories additional Google My Business categories that describe the services provided by the business entity in more detail
cidstringНеобязательныйgoogle-defined client id unique id of a local establishment learn more about the identifier in this help center article
feature_idstringНеобязательныйthe unique identifier of the element in SERP learn more about the identifier in this help center article
addressstringНеобязательныйstreet address of the business entity
address_infoobjectНеобязательныйobject containing address components of the business entity
boroughstringНеобязательныйadministrative unit or district the business entity location belongs to
citystringНеобязательныйname of the city where the business entity is located
zipstringНеобязательныйZIP code of the business entity
regionstringНеобязательныйDMA region of the business entity location
country_codestringНеобязательныйISO country code of the business entity location
place_idstringНеобязательныйunique place identifier place id of the local establishment featured in the element learn more about the identifier in this help center article
phonestringНеобязательныйphone number of the business entity
urlstringНеобязательныйabsolute url of the business entity
domainstringНеобязательныйdomain of the business entity
logostringНеобязательныйURL of the logo featured in Google My Business profile
main_imagestringНеобязательныйURL of the main image featured in Google My Business profile
total_photosintegerНеобязательныйtotal count of images featured in Google My Business profile
snippetstringНеобязательныйadditional information on the business entity
latitudenumberНеобязательныйlatitude coordinate of the local establishments in google maps example:
"latitude": 51.584091longitudenumberНеобязательныйlongitude coordinate of the local establishment in google maps example:
"longitude": -0.31365919999999997is_claimedbooleanНеобязательныйshows whether the entity is verified by its owner on Google Maps
attributesobjectНеобязательныйservice details in a form of user-reviewed checks; service details of a business entity displayed in a form of checks and based on user feedback and business
categoryavailable_attributesobjectНеобязательныйavailable attributes indicates attributes a business entity can offer
unavailable_attributesobjectНеобязательныйunavailable attributes indicates attributes a business entity cannot offer
place_topicsobjectНеобязательныйkeywords mentioned in customer reviews contains most popular keywords related to products/services mentioned in customer reviews of a business entity and the number of reviews mentioning each keyword example:
"place_topics": {"egg roll": 48,"birthday": 33}ratingobjectНеобязательныйthe element’s rating the popularity rate based on reviews and displayed in SERP
rating_typestringНеобязательныйthe type of rating here you can find the following elements:
Max5,Percents,CustomMaxvalueintegerНеобязательныйthe value of the rating
votes_countintegerНеобязательныйthe amount of feedback
rating_maxintegerНеобязательныйthe maximum value for a
rating_typehotel_ratingintegerНеобязательныйhotel class rating class ratings range between 1-5 stars, learn more if there is no hotel class rating information, the value will be
nullprice_levelstringНеобязательныйproperty price level can take values:
inexpensive,moderate,expensive,very_expensiveif there is no price level information, the value will benullrating_distributionobjectНеобязательныйthe distribution of ratings of the business entity the object displays the number of 1-star to 5-star ratings, as reviewed by users
1integerНеобязательныйthe number of 1-star ratings
2integerНеобязательныйthe number of 2-star ratings
3integerНеобязательныйthe number of 3-star ratings
4integerНеобязательныйthe number of 4-star ratings
5integerНеобязательныйthe number of 5-star ratings
people_also_searchstring[]Необязательныйrelated business entities
work_timeobjectНеобязательныйwork time details information related to operational hours of the business entity
work_hoursobjectНеобязательныйopen hours information about work hours of the local establishment
timetableobjectНеобязательныйwork hours timetable
sundaystring[]Необязательныйwork hours on Sunday can take values of the corresponding days of the week
openobjectНеобязательныйopening time
hourintegerНеобязательныйhours in the 24-hour format
minuteintegerНеобязательныйminutes
closeobjectНеобязательныйclosing time
current_statusstringНеобязательныйcurrent status of the establishment possible values:
open,close,temporarily_closed,closed_foreverpopular_timesobjectНеобязательныйpopular times information related to busy hours of the business entity
popular_times_by_daysobjectНеобязательныйpopular hours information about busy hours of the local establishment on each day of the week
sundaystring[]Необязательныйbusy hours on Sunday can take values of the corresponding days of the week
timeobjectНеобязательныйbusy hours
hourintegerНеобязательныйhours in a 24-hour format
minuteintegerНеобязательныйminutes
popular_indexintegerНеобязательныйpopularity index relative time-bound popularity index measured from
0to100; higher value corresponds to a busier time of a daylocal_business_linksstring[]Необязательныйavailable interactions with the business list of options to interact with the business directly from search results
typestringНеобязательныйtype of element possible values:
"reservation""order""delivery_services_element""menu"titlestringНеобязательныйtitle of the element domain of the reservation software
urlstringНеобязательныйURL to the services
contact_infostring[]Необязательныйavailable contacts of the business list of contacts to interact with the business
typestringНеобязательныйtype of contact element
valuestringНеобязательныйcontact displayed in SERP example:
"+119797979736"sourcestringНеобязательныйdata source
check_urlstringНеобязательныйdirect URL to search engine results you can use it to make sure that we provided accurate results
last_updated_timestringНеобязательныйdate and time when the data was last updated in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00” example:
2023-01-26 09:03:15 +00:00first_seenstringНеобязательныйdate and time when our crawler found the business listing element for the first time in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00” example:
2023-03-11 10:04:11 +00:00