Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Allow additional data to be passed in on businesses-search #49

Closed
parisbutterfield opened this issue Aug 29, 2016 · 1 comment

Comments

@parisbutterfield
Copy link

I just created a new v3 client for Node (https://github.com/parisbutterfield/node-yelp). It's a fork of a v2 client.

I'm often making two API calls and the data returned is pretty much the same. I'm displaying a list of results from /businesses/search and want the hours included on each row in the list.

Example/Problem:
I make a call to https://api.yelp.com/v3/businesses/search
Then I need the hours. There's another call to https://api.yelp.com/v3/businesses/{id}
The data returned from the businesses with the id, is nearly the same as what's in the search.

Potential Solution:
Because everyone doesn't need hours or photos in the /businesses/search/. Allow for an additional query parameter that when set, can include the requested data in the response.

@tomelm
Copy link
Contributor

tomelm commented Sep 2, 2016

Hey @parisbutterfield! We're trying to find ways to add more data without compromising performance. Having parameters for what you want in a response works well to start but could get hard to manage and cause the query to become huge if too many parameters do that.

#9 covers adding hours permanently to the search endpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants