{"id":5388,"date":"2023-06-22T10:22:25","date_gmt":"2023-06-22T10:22:25","guid":{"rendered":"https:\/\/unremot.com\/blog\/?p=5388"},"modified":"2023-06-22T10:33:33","modified_gmt":"2023-06-22T10:33:33","slug":"how-to-use-yelp-api","status":"publish","type":"post","link":"https:\/\/unremot.com\/blog\/how-to-use-yelp-api\/","title":{"rendered":"How to use Yelp API &#8211; a step-by-step integration guide and full documentation list"},"content":{"rendered":"<p>This article will discuss about how to use Yelp API with step-by-step integration guide and full documentation list. Let&#8217;s get started!<\/p>\n\n<h2><b>Overview of Yelp API<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Yelp is a website and mobile app, that publishes crowd-sourced reviews about various businesses. Developers can use the Yelp API to access their database and integrate it into their own platforms. The Yelp Fusion API provides features like business searches, reviews, ratings, photos, geolocations, and event data. Our detailed blog will give you step-by-step instructions into using the Yelp API and some insights to leverage the useful Yelp APIs.\u00a0<\/span><\/p>\n<h2><b>Yelp developer API and key functionalities<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Developers wanting to use the Yelp wonder, does Yelp have an API. Yes, Yelp uses a Yelp Fusion API. Developers can use the API to integrate Yelp features into their own platform and website.The Yelp developer API is split into:-<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Public Yelp Fusion API is publicly accessible via self serve.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Yelp partners API offers additional features and data. You need to become a partner to access these.\u00a0<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Some key functionalities of the Yelp API are:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Business: The Fusion API provides a business endpoints return in-depth business content.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Reviews : Retrieve reviews posted by customers<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Search: Return 1000 businesses based on search criteria.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Events:\u00a0 Look for events based on certain criteria.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Brand: Get brand information about Yelp.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Autocomplete: Provide autocomplete suggestions.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Webhooks: Webhooks help to get real-time notifications.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">The documentation provided Yelp Fusion API tutorial and Yelp API sample to help you code better. You can create your applications and work with the Fusion API and Yelp GraphQL.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<p style=\"text-align: center;\"><strong>Also read: <a href=\"https:\/\/unremot.com\/blog\/how-to-use-yahoo-finance-api\/\">How to use Yahoo Finance API &#8211; a step-by-step integration guide and full documentation list<\/a><\/strong><\/p>\n<h2><b>How to use Yelp API &#8211; step-by-step integration guide<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">In this section we will focus on how to get Yelp API key. Getting the Yelp API key is simple.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Step 1: Create an account<\/strong><br \/>\n<\/span><span style=\"font-weight: 400;\">You need to go to the <\/span><span style=\"font-weight: 400;\">log into\u00a0<\/span><a href=\"https:\/\/www.yelp.com\/developers\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">the developers portal<\/span><\/a><span style=\"font-weight: 400;\">. Log in with your Yelp account or create a new account with yelp Fusion Api sign up. You can continue to use Yelp services through Facebook, Google, or Apple account. You can use your e-mail address to register into Yelp. You will receive a confirmation email in this situation; be sure to click the link in it to confirm your account. You will need to verify you are not a robot by clicking on reCAPTCHA.<\/span><\/p>\n<p><strong>Step 2: Getting started with Yelp developer API key<\/strong><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">After you logged into the Yelp developer\u2019s services, scroll down to the bottom of the page and press the <\/span><i><span style=\"font-weight: 400;\">Explore Yelp Fusion button<\/span><\/i><span style=\"font-weight: 400;\">.<br \/>\n<\/span><span style=\"font-weight: 400;\">You will get the Fusion API section of the portal. Press the <\/span><i><span style=\"font-weight: 400;\">Get Started Button.\u00a0<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Step 3- Create an app<\/strong><br \/>\n<\/span><span style=\"font-weight: 400;\">Create your first Yelp app to receive your personal Yelp fusion API key. Fill in required fields in the form, agree to Yelp\u2019s terms and conditions. You need reCAPTCHA and click <\/span><i><span style=\"font-weight: 400;\">Create New App.<br \/>\n<\/span><\/i><span style=\"font-weight: 400;\">You will now get your App ID and API key. Save them to start working on your app.\u00a0<\/span><\/p>\n<p style=\"text-align: center;\"><strong>Also read: <a href=\"https:\/\/unremot.com\/blog\/how-to-use-zoom-api\/\">How to use the Zoom AP &#8211; a step-by-step integration guide and documentation list<\/a><\/strong><\/p>\n<h2><b>Yelp API documentation references and examples<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Developers may find all the necessary references and usage examples for the Yelp API in the documentation. It includes a Yelp API example in various languages with Yelp API examples. Developers to incorporate Yelp functionality to produce user-friendly experience.\u00a0<\/span><\/p>\n<h3><b>How to use Yelp API JavaScript example<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Head over to the\u00a0Yelp Fusion API documentation<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click on\u00a0<\/span><span style=\"font-weight: 400;\">Create App<\/span><span style=\"font-weight: 400;\">\u00a0and sign in if you haven&#8217;t done so already<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Once you have signed in, click on the\u00a0<\/span><span style=\"font-weight: 400;\">Get Started<\/span><span style=\"font-weight: 400;\">\u00a0button. If you already have an app, then you will already see the API key<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Fill out the form for\u00a0creating a new app<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Copy the generated\u00a0<\/span><span style=\"font-weight: 400;\">API key<\/span><span style=\"font-weight: 400;\">. This is a\u00a0bearer token\u00a0that must be put inside the header of each request<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Navigate to the\u00a0<\/span><span style=\"font-weight: 400;\">src\/hooks\/yelp-api\/config.js<\/span><span style=\"font-weight: 400;\">\u00a0file and assign the\u00a0<\/span><span style=\"font-weight: 400;\">BEARER_TOKEN<\/span><span style=\"font-weight: 400;\">\u00a0variable the following content<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">const BEARER_TOKEN = &#8216;&lt;your-token-here&gt;&#8217;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Install the dependencies by running\u00a0<\/span><span style=\"font-weight: 400;\">npm install<\/span><span style=\"font-weight: 400;\">\u00a0or\u00a0<\/span><span style=\"font-weight: 400;\">yarn install<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Run the app with\u00a0<\/span><span style=\"font-weight: 400;\">npm start<\/span><span style=\"font-weight: 400;\">\u00a0or\u00a0<\/span><span style=\"font-weight: 400;\">yarn start<\/span><\/li>\n<\/ul>\n<h3><b>How to use Yelp API Java<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Visit the Yelp developers portal, sign-up and create a Yelp account. Create a new app to get your API key. You need the the key to make requests to Yelp API account.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Use an IDE (Integrated Development environment) like Eclipse to write and run your program.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You need to install Yelp API Java Dependency libraries. You can use a dependency management tool like Maven.\u00a0<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">&lt;dependency&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;groupId&gt;com.github.scribejava&lt;\/groupId&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;artifactId&gt;scribejava-apis&lt;\/artifactId&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;version&gt;4.0.0&lt;\/version&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;\/dependency&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;dependency&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;groupId&gt;com.googlecode.json-simple&lt;\/groupId&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;artifactId&gt;json-simple&lt;\/artifactId&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;version&gt;1.1.1&lt;\/version&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;\/dependency&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;!&#8211; https:\/\/mvnrepository.com\/artifact\/junit\/junit &#8211;&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;dependency&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;groupId&gt;junit&lt;\/groupId&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;artifactId&gt;junit&lt;\/artifactId&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;version&gt;4.11&lt;\/version&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;\/dependency&gt;<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create 2 files Yelp.java and YelpApi2.java as seen bellow<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\/*<br \/>\n<\/span><span style=\"font-weight: 400;\">Example code based on code from Nicholas Smith at http:\/\/imnes.blogspot.com\/2011\/01\/how-to-use-yelp-v2-from-java-including.html<br \/>\n<\/span><span style=\"font-weight: 400;\">For a more complete example (how to integrate with GSON, etc) see the blog post above.<br \/>\n<\/span><span style=\"font-weight: 400;\">*\/<\/span><\/p>\n<p><span style=\"font-weight: 400;\">import java.io.BufferedReader;<br \/>\n<\/span><span style=\"font-weight: 400;\">import java.io.InputStream;<br \/>\n<\/span><span style=\"font-weight: 400;\">import java.io.InputStreamReader;<br \/>\n<\/span><span style=\"font-weight: 400;\">import java.net.HttpURLConnection;<br \/>\n<\/span><span style=\"font-weight: 400;\">import java.net.URL;<br \/>\n<\/span><span style=\"font-weight: 400;\">import org.scribe.builder.ServiceBuilder;<br \/>\n<\/span><span style=\"font-weight: 400;\">import org.scribe.model.OAuthRequest;<br \/>\n<\/span><span style=\"font-weight: 400;\">import org.scribe.model.Response;<br \/>\n<\/span><span style=\"font-weight: 400;\">import org.scribe.model.Token;<br \/>\n<\/span><span style=\"font-weight: 400;\">import org.scribe.model.Verb;<br \/>\n<\/span><span style=\"font-weight: 400;\">import org.scribe.oauth.OAuthService;<br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/**<br \/>\n<\/span><span style=\"font-weight: 400;\">*Example for accessing the Yelp API.<br \/>\n<\/span><span style=\"font-weight: 400;\">*\/<br \/>\n<\/span><span style=\"font-weight: 400;\">public class Yelp {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">OAuthService service;<br \/>\n<\/span><span style=\"font-weight: 400;\">Token accessToken;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/**<br \/>\n<\/span><span style=\"font-weight: 400;\">*Setup the Yelp API OAuth credentials.<br \/>\n<\/span><span style=\"font-weight: 400;\">*<br \/>\n<\/span><span style=\"font-weight: 400;\">*OAuth credentials are available from the developer site, under Manage API access (version 2 API).<br \/>\n<\/span><span style=\"font-weight: 400;\">*<br \/>\n<\/span><span style=\"font-weight: 400;\">*@param consumerKey Consumer key<br \/>\n<\/span><span style=\"font-weight: 400;\">*@param consumerSecret Consumer secret<br \/>\n<\/span><span style=\"font-weight: 400;\">*@param token Token<br \/>\n<\/span><span style=\"font-weight: 400;\">*@param tokenSecret Token secret<br \/>\n<\/span><span style=\"font-weight: 400;\">*\/<br \/>\n<\/span><span style=\"font-weight: 400;\">public Yelp(String consumerKey, String consumerSecret, String token, String tokenSecret) {<br \/>\n<\/span><span style=\"font-weight: 400;\">this.service = new<br \/>\nServiceBuilder().provider(YelpApi2.class).apiKey(consumerKey).apiSecret(consumerSecret).build();<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 this.accessToken = new Token(token, tokenSecret);<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/**<br \/>\n<\/span><span style=\"font-weight: 400;\">*Search with term and location.<br \/>\n<\/span><span style=\"font-weight: 400;\">*<br \/>\n<\/span><span style=\"font-weight: 400;\">*@param term Search term<br \/>\n<\/span><span style=\"font-weight: 400;\">*@param latitude Latitude<br \/>\n<\/span><span style=\"font-weight: 400;\">*@param longitude Longitude<br \/>\n<\/span><span style=\"font-weight: 400;\">*@return JSON string response<br \/>\n<\/span><span style=\"font-weight: 400;\">*\/<br \/>\n<\/span><span style=\"font-weight: 400;\">public String search(String term, double latitude, double longitude) {<br \/>\n<\/span><span style=\"font-weight: 400;\">OAuthRequest request = new OAuthRequest(Verb.GET, &#8220;http:\/\/api.yelp.com\/v2\/search&#8221;);<br \/>\n<\/span><span style=\"font-weight: 400;\">request.addQuerystringParameter(&#8220;term&#8221;, term);<br \/>\n<\/span><span style=\"font-weight: 400;\">request.addQuerystringParameter(&#8220;ll&#8221;, latitude + &#8220;,&#8221; + longitude);<br \/>\n<\/span><span style=\"font-weight: 400;\">this.service.signRequest(this.accessToken, request);<br \/>\n<\/span><span style=\"font-weight: 400;\">Response response = request.send();<br \/>\n<\/span><span style=\"font-weight: 400;\">return response.getBody();<br \/>\n<\/span><span style=\"font-weight: 400;\">}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/\/ CLI<br \/>\n<\/span><span style=\"font-weight: 400;\">public static void main(String[] args) {<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0\/\/ Update tokens here from Yelp developers site, Manage API access.<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0String consumerKey = &#8220;&#8221;;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0String consumerSecret = &#8220;&#8221;;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0String token = &#8220;&#8221;;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0String tokenSecret = &#8220;&#8221;;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0 \u00a0Yelp yelp = new Yelp(consumerKey, consumerSecret, token, tokenSecret);<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0String response = yelp.search(&#8220;burritos&#8221;, 30.361471, -87.164326);<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0System.out.println(response);<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0}<br \/>\n<\/span><span style=\"font-weight: 400;\">}<\/span><\/p>\n<h3><b>How to use Yelp API NPM<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Install the Yelp API NPM package by running the following command in your project&#8217;s directory.<br \/>\n<\/span><span style=\"font-weight: 400;\">npm install yelp-fusion \u2013save<br \/>\n<\/span><span style=\"font-weight: 400;\">Go to the Yelp Developer portal, log-in. you need to create an app to generate API key.<br \/>\n<\/span><span style=\"font-weight: 400;\">To do business-search<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;use\u00a0strict&#8217;;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">const\u00a0yelp\u00a0=\u00a0require(&#8216;yelp-fusion&#8217;);<br \/>\n<\/span><span style=\"font-weight: 400;\">const\u00a0client\u00a0=\u00a0yelp.client(&#8216;YOUR_API_KEY&#8217;);<br \/>\n<\/span><span style=\"font-weight: 400;\">client.search({<br \/>\n<\/span><span style=\"font-weight: 400;\">term: &#8216;Four Barrel Coffee&#8217;,<br \/>\n<\/span><span style=\"font-weight: 400;\">location: &#8216;san francisco, ca&#8217;,<br \/>\n<\/span><span style=\"font-weight: 400;\">}).then(response\u00a0=&gt;\u00a0{<br \/>\n<\/span><span style=\"font-weight: 400;\">console.log(response.jsonBody.businesses[0].name);<br \/>\n<\/span><span style=\"font-weight: 400;\">}).catch(e\u00a0=&gt;\u00a0{<br \/>\n<\/span><span style=\"font-weight: 400;\">console.log(e);<br \/>\n<\/span><span style=\"font-weight: 400;\">});<br \/>\n<\/span><span style=\"font-weight: 400;\">import org.scribe.model.Token;<br \/>\n<\/span><span style=\"font-weight: 400;\">import org.scribe.builder.api.DefaultApi10a;<br \/>\n<\/span><span style=\"font-weight: 400;\">\/**<br \/>\n<\/span><span style=\"font-weight: 400;\">*Service provider for &#8220;2-legged&#8221; OAuth10a for Yelp API (version 2).<br \/>\n<\/span><span style=\"font-weight: 400;\">*\/<br \/>\n<\/span><span style=\"font-weight: 400;\">public class YelpApi2 extends DefaultApi10a {<br \/>\n<\/span><span style=\"font-weight: 400;\">@Override<br \/>\n<\/span><span style=\"font-weight: 400;\">public String getAccessTokenEndpoint() {<br \/>\n<\/span><span style=\"font-weight: 400;\">return null;<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">@Override<br \/>\n<\/span><span style=\"font-weight: 400;\">public String getAuthorizationUrl(Token arg0) {<br \/>\n<\/span><span style=\"font-weight: 400;\">return null;<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">@Override<br \/>\n<\/span><span style=\"font-weight: 400;\">public String getRequestTokenEndpoint() {<br \/>\n<\/span><span style=\"font-weight: 400;\">return null;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0}<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">Run As application<\/span><\/p>\n<h3><b>How to use Yelp API Python<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Here is how to use Yelp API Python<\/span><\/p>\n<p><strong>Step 1: Obtain access to the Yelp API<br \/>\n<\/strong><span style=\"font-weight: 400;\">Sign-up on Yelp.Go to the Manage App tab and click on <\/span><i><span style=\"font-weight: 400;\">Create App. <\/span><\/i><span style=\"font-weight: 400;\">Fill in the form and click on <\/span><i><span style=\"font-weight: 400;\">Create New App. <\/span><\/i><span style=\"font-weight: 400;\">You will get your API keys from the Manage API access section on the site.\u00a0<\/span><\/p>\n<p><strong>Step 2: Getting the Rauth library<br \/>\n<\/strong><span style=\"font-weight: 400;\">Yelp\u2019s API uses OAuth authentication for API calls. You can use a third-party library like Rauth to handle OAuth for you. There are other free libraries you can use. You can use\u00a0<\/span><a href=\"http:\/\/peak.telecommunity.com\/DevCenter\/EasyInstall\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">easy_install<\/span><\/a><span style=\"font-weight: 400;\">\u00a0rauth\u00a0or\u00a0<\/span><a href=\"http:\/\/www.pip-installer.org\/en\/latest\/installing.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">pip install<\/span><\/a><span style=\"font-weight: 400;\">\u00a0rauth\u00a0to download the library.<\/span><\/p>\n<p><strong>Step 3: Write the code to query to the Yelp API<br \/>\n<\/strong><span style=\"font-weight: 400;\">You will need to figure out what information you need. Refer to the documentation to get the different parameters and the correct syntax.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this example we are doing some location-based to searching for a restaurant.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">def get_search_parameters(lat,long):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">#See the Yelp API for more details<\/span><\/p>\n<p><span style=\"font-weight: 400;\">params = {}<br \/>\n<\/span><span style=\"font-weight: 400;\">params[&#8220;term&#8221;] = &#8220;restaurant&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">params[&#8220;ll&#8221;] = &#8220;{},{}&#8221;.format(str(lat),str(long))<br \/>\n<\/span><span style=\"font-weight: 400;\">params[&#8220;radius_filter&#8221;] = &#8220;2000&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">params[&#8220;limit&#8221;] = &#8220;10&#8221;<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0return params<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Next we need to build our actual API calls. We&#8217;re going to create an OAuth session using the codes from the Manage API access page. Once we&#8217;ve established a session, we can use the search parameters to actually access the API. The data is then entered into a Python dictionary as the final step.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">def get_results(params):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">#Obtain these from Yelp&#8217;s manage access page<br \/>\n<\/span><span style=\"font-weight: 400;\">consumer_key = &#8220;YOUR_KEY&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">consumer_secret = &#8220;YOUR_SECRET&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">token = &#8220;YOUR_TOKEN&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">token_secret = &#8220;YOUR_TOKEN_SECRET&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">session = rauth.OAuth1Session(<br \/>\n<\/span><span style=\"font-weight: 400;\">consumer_key = consumer_key<br \/>\n<\/span><span style=\"font-weight: 400;\">,consumer_secret = consumer_secret<br \/>\n<\/span><span style=\"font-weight: 400;\">,access_token = token<br \/>\n<\/span><span style=\"font-weight: 400;\">,access_token_secret = token_secret)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">request = session.get(&#8220;<\/span><a href=\"http:\/\/api.yelp.com\/v2\/search\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">http:\/\/api.yelp.com\/v2\/search<\/span><\/a><span style=\"font-weight: 400;\">&#8220;,params=params)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">#Transforms the JSON API response into a Python dictionary<br \/>\n<\/span><span style=\"font-weight: 400;\">data = request.json()<br \/>\n<\/span><span style=\"font-weight: 400;\">session.close()<\/span><\/p>\n<p><span style=\"font-weight: 400;\">return data<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We can now put everything together. If you&#8217;re compiling any sort of significant dataset, you&#8217;ll probably want to perform numerous API calls as Yelp will only deliver a maximum of 40 results at a time. 10,000 API calls per day are currently permitted by Yelp, which should be more than enough to build a dataset! However, I always make care to rate-limit myself while I&#8217;m doing repeated API requests.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">def main():<br \/>\n<\/span><span style=\"font-weight: 400;\">locations = [(39.98,-82.98),(42.24,-83.61),(41.33,-89.13)]<br \/>\n<\/span><span style=\"font-weight: 400;\">api_calls = []<br \/>\n<\/span><span style=\"font-weight: 400;\">for lat,long in locations:<br \/>\n<\/span><span style=\"font-weight: 400;\">params = get_search_parameters(lat,long)<br \/>\n<\/span><span style=\"font-weight: 400;\">api_calls.append(get_results(params))<br \/>\n<\/span><span style=\"font-weight: 400;\">#Be a good internet citizen and rate-limit yourself<br \/>\n<\/span><span style=\"font-weight: 400;\">time.sleep(1.0)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">##Do other processing<\/span><\/p>\n<h3><b>How to use Yelp API PHP<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Here is how to use the Yelp API PHP<br \/>\n<\/span><span style=\"font-weight: 400;\">Visit the Yelp developers website. You can log-in using your Yelp credentials or create a new account.<br \/>\n<\/span><span style=\"font-weight: 400;\">After creating the creating a new app, you will obtain the API key used for authentication.<br \/>\n<\/span><span style=\"font-weight: 400;\">To create Yelp\u00a0 PHP client, you need to create a client explicitely.<br \/>\n<\/span><span style=\"font-weight: 400;\">Yelp API version 3 (Fusion)\u00a0<\/span><span style=\"font-weight: 400;\">requires an OAuth2 access token to authenticate each request<\/span><span style=\"font-weight: 400;\">. The\u00a0<\/span><span style=\"font-weight: 400;\">oauth2-yelp<\/span><span style=\"font-weight: 400;\">\u00a0is available to help obtain an access token.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/\/ Get access token via oauth2-yelp library<br \/>\n<\/span><span style=\"font-weight: 400;\">$provider<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">new<\/span><span style=\"font-weight: 400;\"> \\<\/span><span style=\"font-weight: 400;\">Stevenmaguire<\/span><span style=\"font-weight: 400;\">\\<\/span><span style=\"font-weight: 400;\">OAuth2<\/span><span style=\"font-weight: 400;\">\\<\/span><span style=\"font-weight: 400;\">Client<\/span><span style=\"font-weight: 400;\">\\<\/span><span style=\"font-weight: 400;\">Provider<\/span><span style=\"font-weight: 400;\">\\<\/span><span style=\"font-weight: 400;\">Yelp<\/span><span style=\"font-weight: 400;\">([<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;clientId&#8217;<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 =&gt; <\/span><span style=\"font-weight: 400;\">&#8216;{yelp-client-id}&#8217;<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;clientSecret&#8217;<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 =&gt; <\/span><span style=\"font-weight: 400;\">&#8216;{yelp-client-secret}&#8217;<br \/>\n<\/span><span style=\"font-weight: 400;\">]);<br \/>\n<\/span><span style=\"font-weight: 400;\">$accessToken<\/span><span style=\"font-weight: 400;\"> = (<\/span><span style=\"font-weight: 400;\">string<\/span><span style=\"font-weight: 400;\">) <\/span><span style=\"font-weight: 400;\">$provider<\/span><span style=\"font-weight: 400;\">-&gt;<\/span><span style=\"font-weight: 400;\">getAccessToken<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8216;client_credentials&#8217;<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/\/ Provide the access token to the yelp-php client<br \/>\n<\/span><span style=\"font-weight: 400;\">$client<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">new<\/span><span style=\"font-weight: 400;\"> \\<\/span><span style=\"font-weight: 400;\">Stevenmaguire<\/span><span style=\"font-weight: 400;\">\\<\/span><span style=\"font-weight: 400;\">Yelp<\/span><span style=\"font-weight: 400;\">\\v3\\<\/span><span style=\"font-weight: 400;\">Client<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">array<\/span><span style=\"font-weight: 400;\">(<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;accessToken&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">$accessToken<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;apiHost&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">&#8216;api.yelp.com&#8217;<\/span> <span style=\"font-weight: 400;\">\/\/ Optional, default &#8216;api.yelp.com&#8217;<br \/>\n<\/span><span style=\"font-weight: 400;\">));<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can search for business using for following code<\/span><\/p>\n<p><span style=\"font-weight: 400;\">$parameters<\/span><span style=\"font-weight: 400;\"> = [<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;term&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">&#8216;bars&#8217;<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;location&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">&#8216;Chicago, IL&#8217;<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;latitude&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">41.8781<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;longitude&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">87.6298<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;radius&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">10<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;categories&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; [<\/span><span style=\"font-weight: 400;\">&#8216;bars&#8217;<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">&#8216;french&#8217;<\/span><span style=\"font-weight: 400;\">],<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;locale&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">&#8216;en_US&#8217;<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;limit&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">10<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;offset&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">2<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;sort_by&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">&#8216;best_match&#8217;<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;price&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">&#8216;1,2,3&#8217;<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;open_now&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">true<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;open_at&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; <\/span><span style=\"font-weight: 400;\">1234566<\/span><span style=\"font-weight: 400;\">,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8216;attributes&#8217;<\/span><span style=\"font-weight: 400;\"> =&gt; [<\/span><span style=\"font-weight: 400;\">&#8216;hot_and_new&#8217;<\/span><span style=\"font-weight: 400;\">,<\/span><span style=\"font-weight: 400;\">&#8216;deals&#8217;<\/span><span style=\"font-weight: 400;\">]<br \/>\n<\/span><span style=\"font-weight: 400;\">];<\/span><\/p>\n<h3><b>Yelp API Android example<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Yelp-android library streamlines the authentication, request creation, and response parsing processes. With applications created using the Android API levels 15 and 25, this clientlib has been tested.<br \/>\n<\/span><span style=\"font-weight: 400;\">Download the latest AAR library or install using Maven:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&lt;dependency&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;groupId&gt;com.yelp.clientlib&lt;\/groupId&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;artifactId&gt;yelp-android&lt;\/artifactId&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;version&gt;3.0.0&lt;\/version&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;\/dependency&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This library uses the YelpAPI object to raise query against the API. <\/span><span style=\"font-weight: 400;\">\u00a0<\/span><span style=\"font-weight: 400;\">Instantiate a\u00a0YelpAPI\u00a0object by using\u00a0YelpAPIFactory\u00a0with your API keys.<br \/>\n<\/span><span style=\"font-weight: 400;\">YelpAPIFactory<\/span> <span style=\"font-weight: 400;\">apiFactory<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">new<\/span> <span style=\"font-weight: 400;\">YelpAPIFactory<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">consumerKey<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">consumerSecret<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">token<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">tokenSecret<\/span><span style=\"font-weight: 400;\">);<br \/>\n<\/span><span style=\"font-weight: 400;\">YelpAPI<\/span> <span style=\"font-weight: 400;\">yelpAPI<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">apiFactory<\/span><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\">createAPI<\/span><span style=\"font-weight: 400;\">();<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Once you have create the yelpAPI object you can use the search function\u00a0 to generate a call object and make a request to the Search API.<br \/>\n<\/span><span style=\"font-weight: 400;\">Map&lt;String, String&gt; params = new HashMap&lt;&gt;();<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/\/ general params<br \/>\n<\/span><span style=\"font-weight: 400;\">params<\/span><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\">put<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;term&#8221;<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">&#8220;food&#8221;<\/span><span style=\"font-weight: 400;\">);<br \/>\n<\/span><span style=\"font-weight: 400;\">params<\/span><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\">put<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;limit&#8221;<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">&#8220;3&#8221;<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/\/ locale params<br \/>\n<\/span><span style=\"font-weight: 400;\">params<\/span><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\">put<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;lang&#8221;<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">&#8220;fr&#8221;<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Call<\/span><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">SearchResponse<\/span><span style=\"font-weight: 400;\">&gt; <\/span><span style=\"font-weight: 400;\">call<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">yelpAPI<\/span><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\">search<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;San Francisco&#8221;<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">params<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can execute the call object to send the request.<br \/>\n<\/span><span style=\"font-weight: 400;\">Response<\/span><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">SearchResponse<\/span><span style=\"font-weight: 400;\">&gt; <\/span><span style=\"font-weight: 400;\">response<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">call<\/span><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\">execute<\/span><span style=\"font-weight: 400;\">();<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Callback<\/span><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">SearchResponse<\/span><span style=\"font-weight: 400;\">&gt; <\/span><span style=\"font-weight: 400;\">callback<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">new<\/span> <span style=\"font-weight: 400;\">Callback<\/span><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">SearchResponse<\/span><span style=\"font-weight: 400;\">&gt;() {<br \/>\n<\/span><span style=\"font-weight: 400;\">@Override<br \/>\n<\/span><span style=\"font-weight: 400;\">public<\/span> <span style=\"font-weight: 400;\">void<\/span> <span style=\"font-weight: 400;\">onResponse<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">Call<\/span><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">SearchResponse<\/span><span style=\"font-weight: 400;\">&gt; <\/span><span style=\"font-weight: 400;\">call<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">Response<\/span><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">SearchResponse<\/span><span style=\"font-weight: 400;\">&gt; <\/span><span style=\"font-weight: 400;\">response<\/span><span style=\"font-weight: 400;\">) {<br \/>\n<\/span><span style=\"font-weight: 400;\">SearchResponse<\/span> <span style=\"font-weight: 400;\">searchResponse<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">response<\/span><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\">body<\/span><span style=\"font-weight: 400;\">();<br \/>\n<\/span><span style=\"font-weight: 400;\">\/\/ Update UI text with the searchResponse.<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">@Override<br \/>\n<\/span><span style=\"font-weight: 400;\">public<\/span> <span style=\"font-weight: 400;\">void<\/span> <span style=\"font-weight: 400;\">onFailure<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">Call<\/span><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">SearchResponse<\/span><span style=\"font-weight: 400;\">&gt; <\/span><span style=\"font-weight: 400;\">call<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">Throwable<\/span> <span style=\"font-weight: 400;\">t<\/span><span style=\"font-weight: 400;\">) {<br \/>\n<\/span><span style=\"font-weight: 400;\">\/\/HTTP error happened, do something to handle it.<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">};<\/span><\/p>\n<h3><b>How to use Yelp API iOS example<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Visit the Yelp developers page and create or sign in to the developer account with your Yelp credentials. Create a new app to get ClientID and Yelp API key.<br \/>\n<\/span><span style=\"font-weight: 400;\">You can build an Yelp API ios with\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">iOS 10.0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">swift 5.3+<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Yelp API access<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">CocoaPod is dependency management for Cocoa projects. You need to visit their website for installation and usage instructions. To integrate CDYelpFusionKit into your\u00a0 xCode project specify profile :<\/span><\/p>\n<p><span style=\"font-weight: 400;\">pod<\/span> <span style=\"font-weight: 400;\">&#8216;CDYelpFusionKit&#8217;,<\/span> <span style=\"font-weight: 400;\">&#8216;3.2.0&#8217;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Carthage\u00a0is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate CDYelpFusionKit into your Xcode project using Carthage, specify it in your\u00a0<\/span><span style=\"font-weight: 400;\">Cartfile<\/span><span style=\"font-weight: 400;\">:<br \/>\n<\/span><span style=\"font-weight: 400;\">github &#8220;chrisdhaan\/CDYelpFusionKit&#8221; == 3.2.0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The\u00a0Swift Package Manager\u00a0is a tool for automating the distribution of Swift code and is integrated into the\u00a0<\/span><span style=\"font-weight: 400;\">swift<\/span><span style=\"font-weight: 400;\">\u00a0compiler.<br \/>\n<\/span><span style=\"font-weight: 400;\">Once you have your Swift package set up, adding CDYelpFusionKit as a dependency is as easy as adding it to the\u00a0<\/span><span style=\"font-weight: 400;\">dependencies<\/span><span style=\"font-weight: 400;\">\u00a0value of your\u00a0<\/span><span style=\"font-weight: 400;\">Package.swift<\/span><span style=\"font-weight: 400;\">.<br \/>\n<\/span><span style=\"font-weight: 400;\">dependencies<\/span><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"> [<br \/>\n<\/span><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\">package<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">url<\/span><span style=\"font-weight: 400;\">: <\/span><span style=\"font-weight: 400;\">&#8220;https:\/\/github.com\/chrisdhaan\/CDYelpFusionKit.git&#8221;<\/span><span style=\"font-weight: 400;\">, .<\/span><span style=\"font-weight: 400;\">upToNextMajor<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">from<\/span><span style=\"font-weight: 400;\">: <\/span><span style=\"font-weight: 400;\">&#8220;3.2.0&#8221;<\/span><span style=\"font-weight: 400;\">))<br \/>\n<\/span><span style=\"font-weight: 400;\">]<\/span><\/p>\n<h3><b>How to use Express with Yelp API<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Visit the the Yelp\u2019s developer page and follow the steps mentioned in the previous section.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Create a simple Express app<\/span><\/p>\n<p><span style=\"font-weight: 400;\">const express = require(&#8216;express&#8217;)<br \/>\n<\/span><span style=\"font-weight: 400;\">const app = express()<br \/>\n<\/span><span style=\"font-weight: 400;\">const port = 3001<br \/>\n<\/span><span style=\"font-weight: 400;\">const cors = require(&#8216;cors&#8217;);<br \/>\n<\/span><span style=\"font-weight: 400;\">const yelp = require(&#8216;yelp-fusion&#8217;);<br \/>\n<\/span><span style=\"font-weight: 400;\">const apiKey = &#8216;YOUR-API-KEY&#8217;;<br \/>\n<\/span><span style=\"font-weight: 400;\">const client = yelp.client(apiKey);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We are using the\u00a0<\/span><a href=\"https:\/\/github.com\/Yelp\/yelp-fusion\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">yelp-fusion library<\/span><\/a><span style=\"font-weight: 400;\"> and <\/span><a href=\"https:\/\/expressjs.com\/en\/resources\/middleware\/cors.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">cors library<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">This is my\u00a0package.json\u00a0file.<br \/>\n<\/span><span style=\"font-weight: 400;\">{<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;name&#8221;: &#8220;backend&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;version&#8221;: &#8220;1.0.0&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;description&#8221;: &#8220;&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;main&#8221;: &#8220;index.js&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;scripts&#8221;: {<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;devStart&#8221;: &#8220;nodemon app.js&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">},<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;keywords&#8221;: [],<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;author&#8221;: &#8220;&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;license&#8221;: &#8220;ISC&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;dependencies&#8221;: {<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;cors&#8221;: &#8220;^2.8.5&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;express&#8221;: &#8220;^4.18.1&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;request&#8221;: &#8220;^2.88.2&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;yelp-fusion&#8221;: &#8220;^3.0.0&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">},<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;devDependencies&#8221;: {<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;nodemon&#8221;: &#8220;^2.0.19&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Now to use the cors library, all you have to do is call the\u00a0<\/span><span style=\"font-weight: 400;\">app.use()<\/span><span style=\"font-weight: 400;\">\u00a0function on your app.<br \/>\n<\/span><span style=\"font-weight: 400;\">app.use(cors());<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Afterwards, just create your API endpoint using\u00a0<\/span><span style=\"font-weight: 400;\">app.get()<\/span><span style=\"font-weight: 400;\">.<br \/>\n<\/span><span style=\"font-weight: 400;\">app.get(&#8216;\/api&#8217;, (req, res) =&gt; {<br \/>\n<\/span><span style=\"font-weight: 400;\">client.search({<br \/>\n<\/span><span style=\"font-weight: 400;\">location: &#8216;PUT-ANY-LOCATION&#8217;,<br \/>\n<\/span><span style=\"font-weight: 400;\">\/\/offset: &#8216;0&#8217;,<br \/>\n<\/span><span style=\"font-weight: 400;\">\/\/ limit: &#8217;50&#8217;<br \/>\n<\/span><span style=\"font-weight: 400;\">}).then(response =&gt; {<br \/>\n<\/span><span style=\"font-weight: 400;\">console.log(JSON.stringify(response.jsonBody));<br \/>\n<\/span><span style=\"font-weight: 400;\">res.send(response.jsonBody.businesses);<br \/>\n<\/span><span style=\"font-weight: 400;\">}).catch(e =&gt; {<br \/>\n<\/span><span style=\"font-weight: 400;\">console.log(e);<br \/>\n<\/span><span style=\"font-weight: 400;\">});<br \/>\n<\/span><span style=\"font-weight: 400;\">})<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This code snippet should now send your desired data to the server.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">On the frontend code is as follows<\/span><\/p>\n<p><span style=\"font-weight: 400;\">const fetchData = () =&gt; {<br \/>\n<\/span><span style=\"font-weight: 400;\">fetch(&#8216;YOUR-API-ENDPOINT&#8217;)<br \/>\n<\/span><span style=\"font-weight: 400;\">.then(response =&gt; response.json())<br \/>\n<\/span><span style=\"font-weight: 400;\">.then(data =&gt; JSON.stringify(data))<br \/>\n<\/span><span style=\"font-weight: 400;\">.then(stringifiedData =&gt; JSON.parse(stringifiedData))<br \/>\n<\/span><span style=\"font-weight: 400;\">.then(parsedData =&gt; {<br \/>\n<\/span><span style=\"font-weight: 400;\">setRestaurant(parsedData);<br \/>\n<\/span><span style=\"font-weight: 400;\">setRestaurantName(parsedData[0].name)<br \/>\n<\/span><span style=\"font-weight: 400;\">})<br \/>\n<\/span><span style=\"font-weight: 400;\">catch((error) =&gt; {<br \/>\n<\/span><span style=\"font-weight: 400;\">console.log(error);<br \/>\n<\/span><span style=\"font-weight: 400;\">});<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<h3><b>Yelp API Swift example<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Go to Yelp\u2019s developer page and create a developer account. After creating a new app, you get ClientID and API key.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Open Xode and create a single view Ap. Click Next and fill in the requested information,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Don\u2019t forget to choose Swift as the \u201cLanguage\u201dand Storyboard as \u201cUser Interface\u201d. <\/span><span style=\"font-weight: 400;\">Let&#8217;s begin writing code now that our Xcode project is prepared. In the project&#8217;s main directory, create a new empty Swift File and give it a name like Venue.swift.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Create a simple struct and name it Venue. We will use this structure to save information about a venue. Let\u2019s assume that we are interested in venue\u2019s ID, name, rating, price, distance and we want to know whether is it is closed or open.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Import Foundation:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">strut venue{<br \/>\n<\/span><span style=\"font-weight: 400;\">var name;<br \/>\n<\/span><span style=\"font-weight: 400;\">var idl<br \/>\n<\/span><span style=\"font-weight: 400;\">var rating;<br \/>\n<\/span><span style=\"font-weight: 400;\">var price;<br \/>\n<\/span><span style=\"font-weight: 400;\">var is_cloud;<br \/>\n<\/span><span style=\"font-weight: 400;\">var distance;<br \/>\n<\/span><span style=\"font-weight: 400;\">var address;<br \/>\n<\/span><span style=\"font-weight: 400;\">}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Make a new empty Swift file and name whatever you like. Here I chose\u00a0<\/span><span style=\"font-weight: 400;\">FetchBusinessData.swift.<\/span><span style=\"font-weight: 400;\"> Make an extension to\u00a0<\/span><span style=\"font-weight: 400;\">ViewController\u00a0c<\/span><span style=\"font-weight: 400;\">lass and declare a function inside it which will be used to fetch data from Yelp API. I personally like to create the function in a separate file so that the code will not look very messy and everything is organized! If you don\u2019t like it, you can just create the function inside the\u00a0<\/span><span style=\"font-weight: 400;\">ViewController<\/span><b>\u00a0<\/b><span style=\"font-weight: 400;\">class.<br \/>\n<\/span><span style=\"font-weight: 400;\">Import Foundation<\/span><\/p>\n<p><span style=\"font-weight: 400;\">extension ViewConfroller{<\/span><\/p>\n<p><span style=\"font-weight: 400;\">func retrieve Venue (longitude Double,\u00a0 latitude Double. Category String, limit int. sortby String, locale String, completionHandler;@escaping ((venue))?Error?)-&gt;void))<br \/>\n<\/span><span style=\"font-weight: 400;\">}<\/span><\/p>\n<h3><b>Using Yelp API with Rails<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You need to register and get API key from the developer site.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You need to get Google Map key from the Google Developers console.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">This is a sample Rails application using the Ruby gem. To check it out in action, visit\u00a0<\/span><a href=\"http:\/\/rails-yelp.herokuapp.com\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">http:\/\/rails-yelp.herokuapp.com\/<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">The key take away here is that you&#8217;ll want to place an initializer inside of\u00a0<\/span><span style=\"font-weight: 400;\">config\/initializers<\/span><span style=\"font-weight: 400;\">\u00a0that set&#8217;s up the keys for the gem.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># inside of config\/initializers\/yelp.rb<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Yelp.client.configure do |config|<br \/>\n<\/span><span style=\"font-weight: 400;\">config.consumer_key = YOUR_CONSUMER_KEY<br \/>\n<\/span><span style=\"font-weight: 400;\">config.consumer_secret = YOUR_CONSUMER_SECRET<br \/>\n<\/span><span style=\"font-weight: 400;\">config.token = YOUR_TOKEN<br \/>\n<\/span><span style=\"font-weight: 400;\">config.token_secret = YOUR_TOKEN_SECRET<br \/>\n<\/span><span style=\"font-weight: 400;\">end<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Now you can use the a pre-initialized client anywhere in the app:<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># inside of HomeController<br \/>\n<\/span><span style=\"font-weight: 400;\"># app\/controllers\/home_controller.rb<br \/>\n<\/span><span style=\"font-weight: 400;\">class HomeController &lt; ApplicationController<br \/>\n<\/span><span style=\"font-weight: 400;\"># &#8230;<br \/>\n<\/span><span style=\"font-weight: 400;\">def search<br \/>\n<\/span><span style=\"font-weight: 400;\">parameters = { term: params[:term], limit: 16 }<br \/>\n<\/span><span style=\"font-weight: 400;\">render json: Yelp.client.search(&#8216;San Francisco&#8217;, parameters)<br \/>\n<\/span><span style=\"font-weight: 400;\">end<br \/>\n<\/span><span style=\"font-weight: 400;\">end<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The client is a singleton so that it&#8217;s only initialized the first time you call it. The same client is used for every subsequent request made throughout the application.<\/span><\/p>\n<h3><b>Yelp fusion <\/b><b>API<\/b><b> Ajax example<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Please refer to the previous section for the API <\/span><span style=\"font-weight: 400;\">documentation.<br \/>\n<\/span><span style=\"font-weight: 400;\">Create an HTML file<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;!DOCTYPE html&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;html&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;head&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;title&gt;Yelp Fusion API Example&lt;\/title&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;script src=&#8221;https:\/\/code.jquery.com\/jquery-3.6.0.min.js&#8221;&gt;&lt;\/script&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;\/head&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;body&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;h1&gt;Yelp Fusion API Example&lt;\/h1&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;form id=&#8221;searchForm&#8221;&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;label for=&#8221;location&#8221;&gt;Location:&lt;\/label&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;input type=&#8221;text&#8221; id=&#8221;location&#8221; name=&#8221;location&#8221; required&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;label for=&#8221;term&#8221;&gt;Term:&lt;\/label&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;input type=&#8221;text&#8221; id=&#8221;term&#8221; name=&#8221;term&#8221; required&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;button type=&#8221;submit&#8221;&gt;Search&lt;\/button&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;\/form&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;div id=&#8221;resultsContainer&#8221;&gt;&lt;\/div&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;script&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">$(document).ready(function() {<br \/>\n<\/span><span style=\"font-weight: 400;\">(&#8220;#searchForm&#8221;).submit(function(event) {<br \/>\n<\/span><span style=\"font-weight: 400;\">event.preventDefault();<br \/>\n<\/span><span style=\"font-weight: 400;\">var location = $(&#8220;#location&#8221;).val();<br \/>\n<\/span><span style=\"font-weight: 400;\">var term = $(&#8220;#term&#8221;).val();<br \/>\n<\/span><span style=\"font-weight: 400;\">searchYelp(location, term);<br \/>\n<\/span><span style=\"font-weight: 400;\">});<br \/>\n<\/span><span style=\"font-weight: 400;\">});<br \/>\n<\/span><span style=\"font-weight: 400;\">function searchYelp(location, term) {<br \/>\n<\/span><span style=\"font-weight: 400;\">var apiKey = &#8220;YOUR_API_KEY&#8221;;<br \/>\n<\/span><span style=\"font-weight: 400;\">var apiUrl = &#8220;https:\/\/api.yelp.com\/v3\/businesses\/search&#8221;;<br \/>\n<\/span><span style=\"font-weight: 400;\">$.ajax({<br \/>\n<\/span><span style=\"font-weight: 400;\">url: apiUrl,<br \/>\n<\/span><span style=\"font-weight: 400;\">headers: {<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;Authorization&#8221;: &#8220;Bearer &#8221; + apiKey<br \/>\n<\/span><span style=\"font-weight: 400;\">},<br \/>\n<\/span><span style=\"font-weight: 400;\">data: {<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;location&#8221;: location,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;term&#8221;: term<br \/>\n<\/span><span style=\"font-weight: 400;\">},<br \/>\n<\/span><span style=\"font-weight: 400;\">success: function(response) {<br \/>\n<\/span><span style=\"font-weight: 400;\">displayResults(response);<br \/>\n<\/span><span style=\"font-weight: 400;\">},<br \/>\n<\/span><span style=\"font-weight: 400;\">error: function(xhr, status, error) {<br \/>\n<\/span><span style=\"font-weight: 400;\">console.error(&#8220;Error searching businesses: &#8221; + error);<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">});<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">function displayResults(response) {<br \/>\n<\/span><span style=\"font-weight: 400;\">var businesses = response.businesses;<br \/>\n<\/span><span style=\"font-weight: 400;\">var resultsContainer = $(&#8220;#resultsContainer&#8221;);<br \/>\n<\/span><span style=\"font-weight: 400;\">resultsContainer.empty();<br \/>\n<\/span><span style=\"font-weight: 400;\">if (businesses.length &gt; 0) {<br \/>\n<\/span><span style=\"font-weight: 400;\">for (var i = 0; i &lt; businesses.length; i++) {<br \/>\n<\/span><span style=\"font-weight: 400;\">var business = businesses[i];<br \/>\n<\/span><span style=\"font-weight: 400;\">var name = business.name;<br \/>\n<\/span><span style=\"font-weight: 400;\">var rating = business.rating;<br \/>\n<\/span><span style=\"font-weight: 400;\">var phone = business.phone;<br \/>\n<\/span><span style=\"font-weight: 400;\">var resultElement = $(&#8220;&lt;div&gt;&#8221;);<br \/>\n<\/span><span style=\"font-weight: 400;\">resultElement.append($(&#8220;&lt;h3&gt;&#8221;).text(name));<br \/>\n<\/span><span style=\"font-weight: 400;\">resultElement.append($(&#8220;&lt;p&gt;&#8221;).text(&#8220;Rating: &#8221; + rating));<br \/>\n<\/span><span style=\"font-weight: 400;\">resultElement.append($(&#8220;&lt;p&gt;&#8221;).text(&#8220;Phone: &#8221; + phone));<br \/>\n<\/span><span style=\"font-weight: 400;\">resultsContainer.append(resultElement);<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">} else {<br \/>\n<\/span><span style=\"font-weight: 400;\">resultsContainer.text(&#8220;No businesses found.&#8221;);<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">\/script&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;\/body&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">&lt;\/html&gt;<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the JavaScript code, replace &#8220;YOUR_API_KEY&#8221; with your actual Yelp API key.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Launch a web browser and open the HTML file: Open the HTML file in your web browser after starting it. The search results should appear below the form where you can enter a location and a term.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Type the address and word here: Click the &#8220;Search&#8221; button after entering the location and phrase fields in the form.<\/span><\/li>\n<\/ul>\n<h3><b>How to use Yelp API Angular<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">This example was\u00a0 generated for <\/span><span style=\"font-weight: 400;\">\u00a0<\/span><span style=\"font-weight: 400;\">Angular CLI<\/span><span style=\"font-weight: 400;\">\u00a0version 7.0.2.<br \/>\n<\/span><span style=\"font-weight: 400;\">Developers side :<\/span><span style=\"font-weight: 400;\">Run\u00a0<\/span><span style=\"font-weight: 400;\">ng serve<\/span><span style=\"font-weight: 400;\">\u00a0for a dev server. Navigate to\u00a0<\/span><span style=\"font-weight: 400;\">http:\/\/localhost:4200\/<\/span><span style=\"font-weight: 400;\">. The app will automatically reload if you change any of the source files.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Code scaffolding: Run\u00a0ng generate component component-name\u00a0to generate a new component. You can also use<br \/>\n<\/span><span style=\"font-weight: 400;\">ng generate directive | pipe | service | class | guard | interface | enum | module.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Build: Run\u00a0<\/span><span style=\"font-weight: 400;\">ng build<\/span><span style=\"font-weight: 400;\">\u00a0to build the project. The build artifacts will be stored the\u00a0<\/span><span style=\"font-weight: 400;\">dist\/<\/span><span style=\"font-weight: 400;\">\u00a0directory. Use the\u00a0<\/span><span style=\"font-weight: 400;\">&#8211;prod<\/span><span style=\"font-weight: 400;\">\u00a0flag for a production build.<br \/>\n<\/span><span style=\"font-weight: 400;\">Running unit tests: Run\u00a0<\/span><span style=\"font-weight: 400;\">ng test<\/span><span style=\"font-weight: 400;\">\u00a0to execute the unit tests via\u00a0<\/span><a href=\"https:\/\/karma-runner.github.io\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Karma<\/span><\/a><span style=\"font-weight: 400;\">.<br \/>\n<\/span><span style=\"font-weight: 400;\">Running end-to-end tests: Run\u00a0<\/span><span style=\"font-weight: 400;\">ng e2e\u00a0<\/span><span style=\"font-weight: 400;\">to execute the end-to-end tests via\u00a0<\/span><a href=\"http:\/\/www.protractortest.org\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Protractor<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h3><b>Pulling Yelp API for WordPress<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Before you can use the plugin, you need the Yelp API for wordpress and create a new APP. Go to the\u00a0 Yelp developers website and create a new app and collect the new API key and ClientID.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Install and Activate the <\/span><span style=\"font-weight: 400;\">Yelp Reviews Widget. The plugin is available in the\u00a0 plugin section WordPress.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Adjust the setting and add the API key. Before you use the Widget you need the API key from Yelp.\u00a0 Click on settings &gt; Yelp Review Widget.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click on the Setting page and paste the API key.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">With the API key saved in WordPress you can now display the Yelp reviews on your website.\u00a0 Go to the Appearance section in WordPress and select\u00a0 Widget.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Drag and drop the Yelp Review Widget in the Sidebar.\u00a0 Any sidebar section is permitted, according to your website style. Include a link to the business page on Yelp\u00a0 and click on <\/span><i><span style=\"font-weight: 400;\">Connect Yelp. <\/span><\/i><span style=\"font-weight: 400;\">You can now save the widget.<\/span><\/li>\n<\/ul>\n<h3><b>How to use Yelp v3 API React Native<\/b><\/h3>\n<p><span style=\"font-weight: 400;\"><strong>Step 1: Create a Yelp Account<\/strong><br \/>\n<\/span><span style=\"font-weight: 400;\">Create a Yelp account by navigate to Yelp sign-up page. If you already have a Yelp account you can sign-in.\u00a0<\/span><\/p>\n<p><strong>Step 2: Create a Yelp Fusion Account<br \/>\n<\/strong><span style=\"font-weight: 400;\">Move to Yelp Fusion app and create new app. Fill out the required details and copy your Client_id and API key.\u00a0<\/span><\/p>\n<p><strong>Step3: Create a connection between your React Native app and the Yelp API<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You need to import HTTP client to connect r React Native app with Yelp API. We will be using Axios to make the request. To Add Axios to the project <\/span><span style=\"font-weight: 400;\">\u00a0<\/span><span style=\"font-weight: 400;\">open up the terminal in your project directory and run:<br \/>\n<\/span>\/\/npm<br \/>\nnpm install axios<br \/>\n\/\/yarn<br \/>\nyarn add axios<\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">We can import Axios into our project after it has been installed. Open the file where you wish to configure your Axios client. Include the import for Axios at the top of the file.<br \/>\n<\/span>import axios from &#8216;axios&#8217;;<\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The first step after importing Axios is to define the configuration that Axios will use to communicate with the Yelp API.<br \/>\n<\/span>const config = {<br \/>\nheaders: {<br \/>\nAuthorization:<br \/>\n&#8220;Bearer {API Key Here}&#8221;,<br \/>\n},<br \/>\n<span style=\"font-weight: 400;\">params: {<br \/>\n<\/span><span style=\"font-weight: 400;\">term: &#8220;restaurants&#8221;,<\/span><span style=\"font-weight: 400;\">location: 1234 street street,<br \/>\n<\/span><span style=\"font-weight: 400;\">radius: 1609,<br \/>\n<\/span><span style=\"font-weight: 400;\">sort_by: &#8220;relevance&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">limit: 50,<br \/>\n<\/span><span style=\"font-weight: 400;\">},<br \/>\n<\/span>};<\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">We can now use Axios to access the Yelp API endpoint.<br \/>\n<\/span>axios<br \/>\n.get(&#8220;https:\/\/api.yelp.com\/v3\/businesses\/search&#8221;, config)<br \/>\n<span style=\"font-weight: 400;\">.then((response) =&gt; {<br \/>\n<\/span><span style=\"font-weight: 400;\">console.log(response); \/\/These are the results sent back from the API!<br \/>\n<\/span><span style=\"font-weight: 400;\">});<br \/>\n<\/span>Here is an example response body that results from the above search:<br \/>\n{<br \/>\n<span style=\"font-weight: 400;\">&#8220;total&#8221;: 8228,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;businesses&#8221;: [<br \/>\n<\/span><span style=\"font-weight: 400;\">{<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;rating&#8221;: 4,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;price&#8221;: &#8220;$&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;phone&#8221;: &#8220;+14152520800&#8221;,<br \/>\n<\/span>&#8220;id&#8221;: &#8220;E8RJkjfdcwgtyoPMjQ_Olg&#8221;,<br \/>\n&#8220;alias&#8221;: &#8220;four-barrel-coffee-san-francisco&#8221;,<br \/>\n<span style=\"font-weight: 400;\">&#8220;is_closed&#8221;: false,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;categories&#8221;: [<br \/>\n<\/span><span style=\"font-weight: 400;\">{<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;alias&#8221;: &#8220;coffee&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;title&#8221;: &#8220;Coffee &amp; Tea&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">],<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;review_count&#8221;: 1738,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;name&#8221;: &#8220;Four Barrel Coffee&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;url&#8221;: &#8220;https:\/\/www.yelp.com\/biz\/four-barrel-coffee-san-francisco&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;coordinates&#8221;: {<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;latitude&#8221;: 37.7670169511878,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;longitude&#8221;: -122.42184275<br \/>\n<\/span><span style=\"font-weight: 400;\">},<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;image_url&#8221;: &#8220;http:\/\/s3-media2.fl.yelpcdn.com\/bphoto\/MmgtASP3l_t4tPCL1iAsCg\/o.jpg&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;location&#8221;: {<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;city&#8221;: &#8220;San Francisco&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;country&#8221;: &#8220;US&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;address2&#8221;: &#8220;&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;address3&#8221;: &#8220;&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;state&#8221;: &#8220;CA&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;address1&#8221;: &#8220;375 Valencia St&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;zip_code&#8221;: &#8220;94103&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">},<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;distance&#8221;: 1604.23,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;transactions&#8221;: [&#8220;pickup&#8221;, &#8220;delivery&#8221;]<br \/>\n<\/span><span style=\"font-weight: 400;\">},<br \/>\n<\/span><span style=\"font-weight: 400;\">\/\/ &#8230;<br \/>\n<\/span><span style=\"font-weight: 400;\">],<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;region&#8221;: {<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;center&#8221;: {<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;latitude&#8221;: 37.767413217936834,<br \/>\n<\/span><span style=\"font-weight: 400;\">&#8220;longitude&#8221;: -122.42820739746094<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span>}<\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">We now use access this information from the response returned from the Axios call.<br \/>\n<\/span>axios<br \/>\n.get(&#8220;https:\/\/api.yelp.com\/v3\/businesses\/search&#8221;, config)<br \/>\n<span style=\"font-weight: 400;\">.then((response) =&gt; {<br \/>\n<\/span><span style=\"font-weight: 400;\">console.log(response.data.businesses[0].name); \/\/This accesses the first restaurant in the businesses list<br \/>\n<\/span>});<\/li>\n<\/ul>\n<h3><b>How to use Yelp API Jquery<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Visit Yelp\u2019s developers page and create a new Yelp account or sign in. Create a new app to get the Yelp API key.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create an HTML page\u00a0 or open an existing one.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You can now use a node to fetch API.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">const access_token = &#8220;&#8212;&#8212;&#8212;&#8220;;<br \/>\n<\/span><span style=\"font-weight: 400;\">let myHeaders = new Headers();<br \/>\n<\/span><span style=\"font-weight: 400;\">myHeaders.append(&#8220;Authorization&#8221;, &#8220;Bearer &#8221; + access_token);<br \/>\n<\/span><span style=\"font-weight: 400;\">fetch(&#8220;https:\/\/cors-anywhere.herokuapp.com\/https:\/\/api.yelp.com\/v3\/businesses\/search?categories=bars&amp;limit=50&amp;location=New York&#8221;, {<br \/>\n<\/span><span style=\"font-weight: 400;\">headers: myHeaders<br \/>\n<\/span><span style=\"font-weight: 400;\">}).then((res) =&gt; {<br \/>\n<\/span><span style=\"font-weight: 400;\">return res.json();<br \/>\n<\/span><span style=\"font-weight: 400;\">}).then((json) =&gt; {<br \/>\n<\/span><span style=\"font-weight: 400;\">console.log(json);<br \/>\n<\/span><span style=\"font-weight: 400;\">});<\/span><\/p>\n<h3><b>How to use Yelp API with C++<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Go to the Yelp\u2019s developers page and create a new Yelp account or sign-in. Now create a new app to get your Yelp API key.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You can use Ezio a templating language. With EZIO, you may write HTML with directives in it, and those directives will control how data is substituted into the HTML. The purpose of EZIO is to be the quickest templating language in the CPython environment; however, unlike those languages, it compiles to Python C extension modules.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Ezio runs on Python 2.6 only. You can <\/span><span style=\"font-weight: 400;\">PYTHONPATH to include the root of the EZIO checkout<\/span><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Compile\u00a0<\/span><span style=\"font-weight: 400;\">simple.tmpl<\/span><span style=\"font-weight: 400;\">\u00a0to\u00a0<\/span><span style=\"font-weight: 400;\">simple.so<\/span><span style=\"font-weight: 400;\">:<br \/>\n<\/span><span style=\"font-weight: 400;\">(refer\u00a0<\/span><span style=\"font-weight: 400;\">tools\/templates\/simple.cpp<\/span><span style=\"font-weight: 400;\">\u00a0if you want to look at the C++ output)<br \/>\n<\/span><span style=\"font-weight: 400;\">Run templating for simple.tmpl against the display dict in\u00a0<\/span><span style=\"font-weight: 400;\">tools\/tests\/simple.py<\/span><span style=\"font-weight: 400;\">:<br \/>\n<\/span><span style=\"font-weight: 400;\">tools\/runtest simple<br \/>\n<\/span><span style=\"font-weight: 400;\">Run all tests (currently single-file tests are set up dually, to run with tools\/runtest and with testify, and project\/class tests are set up to run with testify only):<br \/>\n<\/span><span style=\"font-weight: 400;\">testify tools.tests<\/span><\/p>\n<h3><b>R Yelp API tutorial<\/b><\/h3>\n<p><strong>Step 1: Load the required packages.<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">tidyverse: Loads a number of packages including readr, dplyr, and ggplot<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">httr :Allows user to connect to Yelp\u2019s website and run the Yelp Fusion API<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\"><strong>Step2: Create an Yelp account.<\/strong><br \/>\nGo to the developers page and create a new app, to get the API key and client_ID.<\/span><\/p>\n<p><strong>Step3: <\/strong><span style=\"font-weight: 400;\"><strong>Create a token using the Client ID and the API key<\/strong> (this is called the client_secret below).<br \/>\n<\/span><span style=\"font-weight: 400;\">client_id &lt;- &#8220;your_client_ID&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">client_secret &lt;- &#8220;your_API_key&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">res &lt;- POST(&#8220;https:\/\/api.yelp.com\/oauth2\/token&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">body = list(grant_type = &#8220;client_credentials&#8221;,<br \/>\n<\/span><span style=\"font-weight: 400;\">client_id = client_id,<br \/>\n<\/span><span style=\"font-weight: 400;\">client_secret = client_secret))<br \/>\n<\/span><span style=\"font-weight: 400;\">token &lt;- content(res)$access_token<\/span><\/p>\n<p><strong>Step 4: Create the search URL and collect the data<br \/>\n<\/strong><span style=\"font-weight: 400;\">elp &lt;- &#8220;https:\/\/api.yelp.com&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">term &lt;- &#8220;cookies&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">location &lt;- &#8220;Cincinnati, OH&#8221;<br \/>\n<\/span><span style=\"font-weight: 400;\">categories &lt;- NULL<br \/>\n<\/span><span style=\"font-weight: 400;\">limit &lt;- 50<br \/>\n<\/span><span style=\"font-weight: 400;\">radius &lt;- 8800<br \/>\n<\/span><span style=\"font-weight: 400;\">url &lt;- modify_url(yelp, path = c(&#8220;v3&#8221;, &#8220;businesses&#8221;, &#8220;search&#8221;),<\/span><span style=\"font-weight: 400;\"><br \/>\nquery = list(term = term, location = location,<br \/>\n<\/span><span style=\"font-weight: 400;\">limit = limit,<br \/>\n<\/span><span style=\"font-weight: 400;\">radius = radius))<br \/>\n<\/span><span style=\"font-weight: 400;\">res &lt;- GET(url, add_headers(&#8216;Authorization&#8217; = paste(&#8220;bearer&#8221;, client_secret)))<br \/>\n<\/span><span style=\"font-weight: 400;\">results &lt;- content(res)<\/span><\/p>\n<p><strong>Step 5: Format the data<br \/>\n<\/strong><span style=\"font-weight: 400;\">yelp_httr_parse &lt;- function(x) {<br \/>\n<\/span><span style=\"font-weight: 400;\">parse_list &lt;- list(id = x$id,<br \/>\n<\/span><span style=\"font-weight: 400;\">name = x$name,<br \/>\n<\/span><span style=\"font-weight: 400;\">rating = x$rating,<br \/>\n<\/span><span style=\"font-weight: 400;\">review_count = x$review_count,<br \/>\n<\/span><span style=\"font-weight: 400;\">latitude = x$coordinates$latitude,<br \/>\n<\/span><span style=\"font-weight: 400;\">longitude = x$coordinates$longitude,<br \/>\n<\/span><span style=\"font-weight: 400;\">address1 = x$location$address1,<br \/>\n<\/span><span style=\"font-weight: 400;\">city = x$location$city,<br \/>\n<\/span><span style=\"font-weight: 400;\">state = x$location$state,<br \/>\n<\/span><span style=\"font-weight: 400;\">distance = x$distance)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">parse_list &lt;- lapply(parse_list, FUN = function(x) ifelse(is.null(x), &#8220;&#8221;, x))<br \/>\n<\/span><span style=\"font-weight: 400;\">df &lt;- data_frame(id=parse_list$id,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">name=parse_list$name,<br \/>\n<\/span><span style=\"font-weight: 400;\">rating = parse_list$rating,<br \/>\n<\/span><span style=\"font-weight: 400;\">review_count = parse_list$review_count,<br \/>\n<\/span><span style=\"font-weight: 400;\">latitude=parse_list$latitude,<br \/>\n<\/span><span style=\"font-weight: 400;\">longitude = parse_list$longitude,<br \/>\n<\/span><span style=\"font-weight: 400;\">address1 = parse_list$address1,<br \/>\n<\/span><span style=\"font-weight: 400;\">city = parse_list$city,<br \/>\n<\/span><span style=\"font-weight: 400;\">state = parse_list$state,<br \/>\n<\/span><span style=\"font-weight: 400;\">distance= parse_list$distance)<br \/>\n<\/span><span style=\"font-weight: 400;\">df<br \/>\n<\/span><span style=\"font-weight: 400;\">}<br \/>\n<\/span><span style=\"font-weight: 400;\">results_list &lt;- lapply(results$businesses, FUN = yelp_httr_parse)<br \/>\n<\/span><span style=\"font-weight: 400;\">business_data &lt;- do.call(&#8220;rbind&#8221;, results_list)<\/span><\/p>\n<p style=\"text-align: center;\"><strong>Also read: <a href=\"https:\/\/unremot.com\/blog\/how-to-use-notion-api\/\">How To Use Notion API a step-by-step Integration Guide and Full Documentation List<\/a><\/strong><\/p>\n<h2><b>Yelp API pricing<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Many developers wonder that is Yelp API free. The Yelp API is available at no cost for non-commercial and non-governmental use cases. If you need an additional rate limit on an individual basis. If you wish to make commercial programs, you can contact Yelp for their Yelp Fusion Enterprise API. The enterprise YELP API pricing offers extra features like a higher API call limit, richer features, super-specific search, and help.\u00a0<\/span><\/p>\n<p style=\"text-align: center;\"><strong>Also read:<a href=\"https:\/\/unremot.com\/blog\/how-to-use-slack-api\/\">How to use Slack API &#8211; step-by-step integration guide and full documentation list<\/a>\u00a0<\/strong><\/p>\n<h2><b>Most used Yelp APIs<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Developers access the Yelp API to the vast local businesses information and reviews database. The Yelp API extensive API helps developers create apps that use the database to display business information like addresses, phone numbers, and operating hours. The Yelp API speeds up integrations and equips developers to provide users more enriched and customized experiences.\u00a0<\/span><\/p>\n<h3><b>Yelp reviews API<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The <\/span><a href=\"https:\/\/docs.developer.yelp.com\/docs\/private-reviews-api\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Yelp review API<\/span><\/a><span style=\"font-weight: 400;\"> help developers tap into the database of reviews publicly accessible on Yelp. Your partnership agreement will specify exactly how many and what kind of reviews are made available through this endpoint. Contractual Yelp partners are the only ones who can access this API. Private messages submitted by customers to companies directly cannot be viewed using this API.<\/span><\/p>\n<h3><b>Yelp neighborhood API<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The <\/span><a href=\"https:\/\/metacpan.org\/pod\/WebService::Yelp::Neighborhood\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Yelp neighborhood class<\/span><\/a><span style=\"font-weight: 400;\"> defines particular areas in your city. The search results returns\u00a0 the name of the neighborhood, city, state, and the url linking to Yelp&#8217;s main page for this neighborhood<\/span><\/p>\n<h3><b>Yelp business search API<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The <\/span><a href=\"https:\/\/docs.developer.yelp.com\/reference\/v3_business_search\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Yelp business search API<\/span><\/a><span style=\"font-weight: 400;\"> returns up to 1000 business with some basic information based on the search query. The Api does not return reviews.<\/span><\/p>\n<h3><b>Yelp seatme API<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The <\/span><a href=\"https:\/\/docs.developer.yelp.com\/docs\/reservation\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Yelp reservation API<\/span><\/a><span style=\"font-weight: 400;\"> offers capabilities for native booking flows and Yelp reservation searches into partner applications. Yelp customers will be able to make reservations without ever leaving a third-party application.<\/span><\/p>\n<h3><b>Yelp analytics API<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The <\/span><a href=\"https:\/\/docs.developer.yelp.com\/docs\/reporting-api\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Yelp reporting API<\/span><\/a><span style=\"font-weight: 400;\"> is available only to <\/span><span style=\"font-weight: 400;\">\u00a0<\/span><span style=\"font-weight: 400;\">Yelp\u00a0<\/span><a href=\"https:\/\/business.yelp.com\/partners\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">advertising<\/span><\/a><span style=\"font-weight: 400;\">,\u00a0<\/span><a href=\"https:\/\/business.yelp.com\/partners\/listing-management-partners\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">listing management<\/span><\/a><span style=\"font-weight: 400;\">, &amp;\u00a0<\/span><a href=\"https:\/\/knowledge.yelp.com\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Knowledge<\/span><\/a><span style=\"font-weight: 400;\">\u00a0partners. The reporting API allows Yelp partners to retrieve business metrics and CPC adviser metrics for specific set businesses over a specific time range.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will discuss about how to use Yelp API with step-by-step integration guide and full documentation list. Let&#8217;s get started! Overview of Yelp API Yelp is a website and mobile app, that publishes crowd-sourced reviews about various businesses. Developers can use the Yelp API to access their database and integrate it into their own [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":5394,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[76],"tags":[],"class_list":{"0":"post-5388","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-technology","8":"entry"},"_links":{"self":[{"href":"https:\/\/unremot.com\/blog\/wp-json\/wp\/v2\/posts\/5388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unremot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unremot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unremot.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/unremot.com\/blog\/wp-json\/wp\/v2\/comments?post=5388"}],"version-history":[{"count":11,"href":"https:\/\/unremot.com\/blog\/wp-json\/wp\/v2\/posts\/5388\/revisions"}],"predecessor-version":[{"id":5403,"href":"https:\/\/unremot.com\/blog\/wp-json\/wp\/v2\/posts\/5388\/revisions\/5403"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unremot.com\/blog\/wp-json\/wp\/v2\/media\/5394"}],"wp:attachment":[{"href":"https:\/\/unremot.com\/blog\/wp-json\/wp\/v2\/media?parent=5388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unremot.com\/blog\/wp-json\/wp\/v2\/categories?post=5388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unremot.com\/blog\/wp-json\/wp\/v2\/tags?post=5388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}