Questions tagged [yelp-fusion-api]

This tag should be used for questions related to the use of the Yelp Fusion API, an API that gives developers access to Yelp’s wealth of content and reviews about businesses.

This tag should be used for questions related to the use of the Yelp Fusion API.

The Yelp Fusion API allows you to retrieve and integrate content from Yelp in your own application. The API is designed to search for content about businesses based on keywords, categories, location, price level, phone numbers, offered services, etc. You can retrieve business data, such as name, address, phone number, photos, price levels, hours of operation, Yelp rating, and reviews.

See https://www.yelp.com/fusion for more information about the Yelp Fusion API.

44 questions
8
votes
2 answers

Why isn't Yelp returning all of the results?

I am using the Business Search function in the Yelp Fusion Api. Why can't I seem to get all of the businesses? Here is an example: When I make this request, it returns a the first 20 results and a total property of…
Jack Fairfield
  • 1,510
  • 16
  • 23
4
votes
2 answers

How to migrate with Yelp API from v2 to v3?

I have a script that worked great with v2 but broke when it expired and shifted to v3. I've attempted to fix it but clearly there's more to it then just changing v2 to v3. Apparently they've deprecated secret token. Here's what I have at the…
santa
  • 13,148
  • 42
  • 144
  • 230
2
votes
3 answers

Extra curly braces in web api response makes response unabale to convert to model

I am trying to read Yelp API. Below is my code. public async Task InvokeApi(string path, HttpAction action, HttpContent content = null, TimeSpan? overrideTimeout = null, string externalServer = null) { var sUrl =…
2
votes
1 answer

Methods inside javascript promises not running on dialogflow

So this is the code for yelp-fusion node.js API used in dialogflow v2. Problem: agent.add(response.jsonBody.businesses[0].name); which should make the bot say the name of the business doesnt actually run even though the code is there. From research,…
vade
  • 103
  • 1
  • 2
  • 8
1
vote
0 answers

Yelp API responding with only 50 results

When i run the program it gave me upto 50 records/results so i create an 'offset' which will give me more than 50 then i run the code again and the result appear are same, only get 50 records not more than that. import requests import json import…
1
vote
1 answer

JSON parse not working properly - Javascript

I am having a little trouble with parsing the data. When i add JSON.parse(this.responseText) and this.status == 200 on the if statement my code seem to not work. When I take them off it works and I get the alert that it's a success. Not sure what I…
1
vote
1 answer

django - how to save api data into model from template button

I am using the Yelp API to search bars in a any location. This uses a template called results.html that has a button. Clicking this button should save the Yelp API unique ID of a Bar into my models. In my results dictionary that I loop over I call…
sus_zeus
  • 61
  • 7
1
vote
1 answer

SwiftUI + Decoding Yelp API Response

I'm new to working with Swift and JSON, I'll try to describe what I'm trying to accomplish as best as I can. I'm trying to access the Yelp API service and return and decode the JSON results and display the results in a list. I've successfully been…
Jason Tremain
  • 861
  • 2
  • 12
  • 27
1
vote
1 answer

How do I fix the error: "Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee0761ed8)"

I am using swift to build an app in Xcode. it builds fine, but when it runs, it stops and gives me an error on the line a declare my delegate(this line: "weak var delegate: LocationActions?") in LocationService.swift. Here is the error: Thread 1:…
user10081458
1
vote
1 answer

Difficulty integrating YELP Checkout API. Not able to fetch opportunity_token

Referring to the documentation The checkout API says to generate URL : https:////?opportunity_token=&yelp_site=m&yelp_locale=en_US "The partner_domain_path shall be pre-registered with…
Vivek Tankaria
  • 1,265
  • 2
  • 14
  • 29
1
vote
1 answer

Yelp API Business Matches EndPoint

I am using the Yelp API to call the business matches endpoint. Unfortunately, I am getting an error that I have been playing around with for a while, but can't seem to find a reason why it is returning me the following response: Optional({ error…
Josh
  • 25
  • 4
1
vote
1 answer

Error Domain=NSCocoaErrorDomain Code=4865 on JSON parsing from API call in Swift

I am trying to pull in and parse a JSON from the Yelp fusion API. Whenever I pull it in and try to parse it and store it as a struct, I get the following error: Error Domain=NSCocoaErrorDomain Code=4865 "No value associated with…
jdmo242
  • 61
  • 5
1
vote
0 answers

Yelp API reservation openings returning "NOT FOUND"

I'm wanting to use the Yelp reservations API to see what times you can make reservations at a restaurant for. Every time I query the API it returns the following: {'error': {'code': 'NOT_FOUND', 'description': 'Resource could not be found.'}} I'm…
Landon G
  • 739
  • 2
  • 7
  • 23
1
vote
1 answer

Getting data from json response using Yelp API

I have a client who's using the Yelp API to get the 10 closest results to a point using a latitude and longitude. The api query combines a "list" of categories together and then passes it to the query in Yelp. Something like this: $categories = […
MrTechie
  • 1,645
  • 2
  • 19
  • 32
1
vote
1 answer

How to sort a list of restaurant names by restaurant rating (possibly from Google Places or Yelp Fusion API)

I have a csv file with thousands of restaurant names and addresses that I need to sort by rating (data that is not in the csv). Is there a way to fill in the csv with this data? Possibly with Google Places API or Yelp Fusion API?
Jo Turtel
  • 11
  • 2
1
2 3