Links

Yelp Search API

The Yelp Search API allows developers to Yelp Search Results in real-time. It can be easily accessed by requesting at the following endpoint: api.serpdog.io/yelp.
Parameters
Description
api_key required
This is your API key.
find_desc
Type: String The query you want to search.
find_loc required
Type: String The location you want to target to scrape the search results. For example:
- San Francisco, CA - New York, NY, United States
l
Type: String
The distance or map radius you want to get search results from.
yelp_domain
Type: String
The domain you want to use to scrape the search results.
cflt
Type: String
It is used to define the category of search results you want.
sortby
Type: String
It is used for sorting the result. recommended - Recommended(default) rating - Highest rated review_count - Most reviewed
attrs
Type: String
It is used for refining the search results according to the value you pass in attrs parameter.
start
Type: Number(Integer) [0,10,20....] Default: 0 (Enter 10 for 2nd-page results, 20 for 3rd, etc .) The page number to get targeted search results.

API Example:

cURL
Node JS
Python
Java
Ruby
PHP
cURL "https://api.serpdog.io/yelp?api_key=APIKEY&find_desc=burger&find_loc=San+Francisco,CA"
const axios = require('axios');
axios.get('https://api.serpdog.io/yelp?api_key=APIKEY&find_desc=burger&find_loc=San+Francisco,CA')
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});
import requests
payload = {'api_key': 'APIKEY', 'find_desc':'burger' , 'find_loc':'San+Francisco,CA'}
resp = requests.get('https://api.serpdog.io/yelp?', params=payload)
print (resp.text)
try {
String url = "https://api.serpdog.io/yelp?api_key=APIKEY&find_desc=burger&find_loc=San+Francisco,CA";
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
conection.setRequestMethod("GET");
int responseCode = conection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
StringBuffer response = new StringBuffer();
while ((readLine = in.readLine()) != null) {
response.append(readLine);
}
in.close();
System.out.println(response.toString());
} else {
throw new Exception("Error in API Call");
}
} catch (Exception ex) {
ex.printStackTrace();
}
require 'net/http'
require 'json'
params = {
:api_key => "APIKEY",
:find_desc => "burger",
:find_loc => "San+Francisco,CA"
}
uri = URI('https://api.serpdog.io/yelp')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)
<?php
$url = "https://api.serpdog.io/yelp?api_key=APIKEY&find_desc=burger&find_loc=San+Francisco,CA";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
{
"meta": {
"api_key": "APIKEY",
"find_loc": "San Francisco,CA",
"find_desc": "burger"
},
"filters": [
{
"title": "Suggested",
"options": [
{
"text": "Open Now -:-- am"
},
{
"text": "Offers Delivery"
},
{
"text": "Offers Takeout"
},
{
"text": "Reservations"
},
{
"text": "Good for Late Night"
},
{
"text": "Good for Lunch"
}
]
},
{
"title": "Category",
"options": [
{
"text": "Burgers"
},
{
"text": "Restaurants"
},
{
"text": "Food"
},
{
"text": "Bars"
}
]
}
......
],
"inline_ads": [
{
"title": "Burger King",
"reviews": 92,
"categories": "Burgers, Fast Food",
"button": {
"text": "Get Directions",
"link": "https://www.yelp.com/adredir?ad_business_id=wvJvLx0y-O9OMC67HtBrkA&click_origin=search_results_direction&placement=carousel_0&placement_slot=0&redirect_url=https%3A%2F%2Fwww.yelp.com%2Fmap%2Fburger-king-san-francisco-10&request_id=14c56576b87012dc&signature=de18fac9d95909f62ebfe265dee17e6f2a1447277e0dd7af18695cb2d41e9f97&slot=0"
},
"thumbnail": "https://s3-media0.fl.yelpcdn.com/bphoto/5RiI4XXVY_7uylnuMv5TnA/348s.jpg"
},
{
"title": "Taco Bell",
"reviews": 61,
"categories": "Fast Food, Burgers, Mexican",
"button": {
"text": "Get Directions",
"link": "https://www.yelp.com/adredir?ad_business_id=Q02CIzGUxyLKx5hdzHAIGA&click_origin=search_results_direction&placement=carousel_0&placement_slot=0&redirect_url=https%3A%2F%2Fwww.yelp.com%2Fmap%2Ftaco-bell-san-francisco-12&request_id=14c56576b87012dc&signature=7097c7348afc5aec13e435f6f663b103cc606b763182a9a95774fc166ba20b4a&slot=1"
},
"thumbnail": "https://s3-media0.fl.yelpcdn.com/bphoto/G8awa-z4PEKlvZNuDtxJng/348s.jpg"
},
{
"title": "Applebee’s Grill + Bar",
"reviews": 654,
"categories": "American (Traditional), Sports Bars, Burgers",
"button": {
"text": "Get Directions",
"link": "https://www.yelp.com/adredir?ad_business_id=EOM6CItD6sI5P3a-JV61_Q&click_origin=search_results_direction&placement=carousel_0&placement_slot=0&redirect_url=https%3A%2F%2Fwww.yelp.com%2Fmap%2Fapplebees-grill-bar-san-francisco&request_id=14c56576b87012dc&signature=dd3a0dff97cfe3f1e2daf6b42a776bf65218f934fc207420620577372a99de08&slot=2"
},
"thumbnail": "https://s3-media0.fl.yelpcdn.com/adphoto/qeBOAProDYlA6ivNjmxGvA/ls.jpg"
}
],
"results": [
{
"title": "Applebee’s Grill + Bar",
"snippet": "“Try one of our NEW Sizzlin' Skillets, like the savory new Chicken & Shrimp Scampi Skillet!” more",
"neighbourhood": "Fisherman's Wharf",
"thumbnail": "https://s3-media0.fl.yelpcdn.com/adphoto/CVMY-qKbwkkVkklT9x0y5g/ls.jpg",
"button": {
"text": "Get Directions",
"link": "https://www.yelp.com/adredir?ad_business_id=EOM6CItD6sI5P3a-JV61_Q&click_origin=search_results_direction&placement=above_search&placement_slot=1&redirect_url=https%3A%2F%2Fwww.yelp.com%2Fmap%2Fapplebees-grill-bar-san-francisco&request_id=14c56576b87012dc&signature=e66820c182bbbf6b0b17860344825ce6e6d8269505379207fbe070f54d847732&slot=0"
},
"categories": [
{
"title": "American (Traditional)",
"link": "https://www.yelp.com/search?cflt=tradamerican&find_loc=San+Francisco%2C+CA"
},
{
"title": "Sports Bars",
"link": "https://www.yelp.com/search?cflt=sportsbars&find_loc=San+Francisco%2C+CA"
},
{
"title": "Burgers",
"link": "https://www.yelp.com/search?cflt=burgers&find_loc=San+Francisco%2C+CA"
}
],
"service_options": [
"Outdoor seating",
"Delivery",
"Takeout"
]
},
{
"title": "8MilePi Detroit Style Pizza",
"reviews": "18",
"snippet": "“I got firehouse special and Motown Meat lover- both Detroit style! They provided ranch and honey which I ended up drizzling on my pizza and OMG that was a game changer hahah. From…” more",
"neighbourhood": "SoMa",
"thumbnail": "https://s3-media0.fl.yelpcdn.com/bphoto/sqvilUnyxXZF2geJA1Mdkg/348s.jpg",
"highlights": [
"undefinedCatering service",
"undefinedLarge group friendly"
],
"button": {
"text": "View Website",
"link": "https://www.yelp.com/adredir?ad_business_id=N-mE8rxOpW4F5mwEkU7dxQ&campaign_id=MqcxEAopgcGNc4zTtAu85A&click_origin=search_results_visit_website&placement=above_search&placement_slot=1&redirect_url=https%3A%2F%2Fwww.yelp.com%2Fbiz_redir%3Fcachebuster%3D1670182514%26s%3D134b83fe1187f3d5d32148fb4a5819a31d42ccf9a6c688193a9f743fb22aec24%26src_bizid%3DN-mE8rxOpW4F5mwEkU7dxQ%26url%3Dhttps%253A%252F%252Fwww.8milepidetroitstylepizza.com%26website_link_type%3Dwebsite&request_id=14c56576b87012dc&signature=ab927641ab9f4403ece3cf423555f96b5b6be6fd4724606e92d6676316fcbe62&slot=1"
},
"categories": [
{
"title": "Pizza",
"link": "https://www.yelp.com/search?cflt=pizza&find_loc=San+Francisco%2C+CA"
}
],
"service_options": [
"Delivery",
"Takeout"
]
},
{
"title": "Native Burger",
"reviews": "305",
"snippet": "“will kick my flip flops off for? In-N-Out. IMO, they make the best burgers in its price category. Now” more",
"neighbourhood": "Laurel Heights",
"thumbnail": "https://s3-media0.fl.yelpcdn.com/bphoto/ZNQwC9CeaVwLYkIx-qWbmg/348s.jpg",
"button": {
"text": "Start Order",
"link": "https://www.yelp.com/biz/AonBwLuprSoZ1dx9iYaDBw?show_platform_modal=True"
},
"categories": [
{
"title": "Burgers",
"link": "https://www.yelp.com/search?cflt=burgers&find_loc=San+Francisco%2C+CA"
}
],
"service_options": [
"Outdoor seating",
"Delivery",
"Takeout"
]
},
{
"title": "Foodee Burger",
"reviews": "193",
"snippet": "“Thought the burger was very tasty but the grease and fries were really greasy. My mouth still feels greasy. Cut the fat please!” more",
"neighbourhood": "Forest Hill",
"thumbnail": "https://s3-media0.fl.yelpcdn.com/bphoto/2AvlfZlwXNlk1pGVqktKqQ/348s.jpg",
"button": {
"text": "Start Order",
"link": "https://www.yelp.com/biz/DqJjIACQF6T85MR4ZYTrEA?show_platform_modal=True"
},
"categories": [
{
"title": "Burgers",
"link": "https://www.yelp.com/search?cflt=burgers&find_loc=San+Francisco%2C+CA"
}
],
"service_options": [
"Outdoor seating",
"Delivery",
"Takeout"
]
},
{
"title": "Uncle Boy’s",
"reviews": "731",
"snippet": "“Extremely rude manager and over priced burgers. Do I need to leave a long story about it? I don't” more",
"neighbourhood": "Inner Richmond",
"thumbnail": "https://s3-media0.fl.yelpcdn.com/bphoto/qYAqCmJ21xBKa1skFoSRXA/348s.jpg",
"categories": [
{
"title": "Burgers",
"link": "https://www.yelp.com/search?cflt=burgers&find_loc=San+Francisco%2C+CA"
},
{
"title": "Fast Food",
"link": "https://www.yelp.com/search?cflt=hotdogs&find_loc=San+Francisco%2C+CA"
}
],
"service_options": [
"Outdoor seating",
"Delivery",
"Takeout"
]
},
.....
],
"serpdog_pagination": {
"next": "https://api.serpdog.io/yelp?api_key=APIKEY&find_desc=burger&find_loc=San+Francisco%2CCA&start=10"
}
}