Skip to content

Instantly share code, notes, and snippets.

@pranayairan
Created August 13, 2017 20:46
Show Gist options
  • Save pranayairan/00345cc2bfd75faca5e468e91c835c7a to your computer and use it in GitHub Desktop.
Save pranayairan/00345cc2bfd75faca5e468e91c835c7a to your computer and use it in GitHub Desktop.
GraphQL query to fetch business details from Yelp's GraphQL API.
query BusinessDetails($businessID: String!){
business(id: $businessID) {
id
name
is_claimed
is_closed
url
phone
display_phone
review_count
rating
price
categories {
title
}
location {
formatted_address
}
coordinates {
latitude
longitude
}
photos
hours {
hours_type
is_open_now
open {
end
start
day
}
}
reviews {
text
rating
time_created
user {
name
image_url
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment