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.

60 questions
0
votes
1 answer

Why is async method throwing an error when decoding JSON data from an API request? Swift

Tldr: *Update: Updated code and post body. I’m trying to show a table view in a new view controller, but I keep getting an error thrown from the async method searchBusinesses in the YelpApi class in FetchData.swift. I’ve printed the JSON response…
coder
  • 19
  • 4
0
votes
1 answer

Why isn’t the table view from a new View Controller not showing? Swift

This is a follow-up to the following question: How to call an instance of a class that makes an API call, and a function within that class that makes the request, and assign this to variable? Swift. I’m trying to push a new view controller onto the…
coder
  • 19
  • 4
0
votes
1 answer

Why isn't code being executed after/within a second URLSession.shared.dataTask, that is within an initial URLSession.shared.dataTask’s do block? Swift

I'm trying to make a second API endpoint request, and to do so, am making a second URLSession.shared.dataTask within the initial/first API endpoint request’s URLSession.shared.dataTask’s do block. However, my code doesn't execute after/within the…
coder
  • 19
  • 4
0
votes
1 answer

How to use current location with Yelp API

I am creating a yelp API app, but I am having trouble with my current location code. It seems the problem is my call to the API is happening before my values of Longitude and latitude are set, but I don't know how to rearrange my code to fix this…
0
votes
1 answer

showing the error when connecting the api to react native

I want to connect react native project to an api. but it showing the error ERROR TypeError: undefined is not an object (evaluating 'props.restaurantData.map') export default function RestaurantItems(props) { return ( <> …
0
votes
1 answer

TypeError: null is not an object (evaluating 'son['businesses']')

Im getting this error "TypeError: null is not an object (evaluating 'son['businesses']')" Im not sure what is the issue is because when I was writing 'son['businesses'][1]['name']', I started with just 'son' and when i added…
0
votes
0 answers

How to parse array data from Yelp API?

Allo, Hi, im new with SwiftUI and im facing some issue with the Yelp API and can't find answer anywhere... I'm creating a restaurant app and I want to add a on the business detail page a list of Yelp transactions that the business is registered for…
mry15
  • 1
  • 2
0
votes
0 answers

Yelp API "Bearer does not match"

This is one of the most confusing errors I've ever encountered because this is supposed to be super simple. I'm trying to connect to the Yelp API. I've created an App and obtained my "API Key". From there I: Went to postman, selected "Bearer Token"…
B.T.
  • 41
  • 7
0
votes
0 answers

Get Category from Yelp

How do I get the category title from the Yelp Fusion Api? I want to include this data in my restaurants app. The documentation states that it's a string and that categories is an object. However NSObject and string are both crashing the app. I can't…
Mcrich
  • 75
  • 9
0
votes
2 answers

Get info from Yelp Api

I am hooking into the Yelp Api to get data which I am then showing in a card format. However, my issue is that I can't seem to pass the yelp data into this array in order to pull the yelp data. How do I do this? How can I do this on a scale of 20…
Mcrich
  • 75
  • 9
0
votes
1 answer

How to share Typescript declarations across Server & Client side projects?

I've created a server-side library to consume Yelp Fusion API in TypeScript. the library references a bunch of types/interfaces which I would like to expose to client-side applications, but in a way that is not requiring the npm install of the…
kob490
  • 3,177
  • 4
  • 25
  • 40
0
votes
0 answers

Getting content-type: text/html instead of application/JSON Yelp API

I am trying to get data from Yelp's API but as the title suggests I am not getting a JSON and I'm not sure what to do. Below is my code import requests api_key = 'MY API KEY' # USING THE YELP BUSINESS SEARCH API:…
0
votes
0 answers

Why doesn't the text from the YELP API display on to my label?

Basically Im receiving reviews for a specific restaurant using the YELP API and I want to display the reviews to my SKLabel. I can see the reviews in my console printing out but when I try to get the text value from my struct it doesn't appear on to…
user14908036
0
votes
2 answers

How can I fetch data from yelp api in React JS?

I want to fetch data from Yelp API in react JS. I can fetch data using postman but I am unable to fetch any data with my code. Here is the code. componentDidMount = () => { const API_BASE_URL = …
Ashenafi Semu
  • 149
  • 1
  • 1
  • 10
0
votes
0 answers

Unable to derive mutation in Hasura

I am having trouble deriving a mutation in a Hasura table I have. This is my mutation: mutation MyMutation { AddReview(body: "fear not, it will work", id: "xeZiZnx61MFWDxfhgAu-gQ") { affected_rows } } However, when I try to derive an…