Yelp / yelp-fusion

Yelp Fusion API
https://yelp.com/developers
MIT License
403 stars 394 forks source link

Reviews API Always Returns "Resource could not be found" #701

Closed ahmad-hossain closed 7 months ago

ahmad-hossain commented 7 months ago

Note: Do not post any API keys or secrets or they will be rotated


Overview

Description

Goal: Retrieve the top review of a given business Problem: When calling the Reviews API for any business, I receive a 404 "Resource could not be found" error. What I have tried:

Note: I am retrieving business ids/aliases via the businesses search API, and can successfully retrieve businesses using CURL with this API.

Sample Request:

curl --request GET \
     --url 'https://api.yelp.com/v3/businesses/veq1Bl1DW3UWMekZJUsG1Q/reviews?limit=1&sort_by=yelp_sort' \
     --header 'Authorization: Bearer MY_API_KEY_HERE' \
     --header 'accept: application/json'

More information

(Fill this section out if applicable (for things like bugs or questions. Do not post any API keys or secrets.))

Endpoint

Fusion Search API

Parameters or Sample Request

https://api.yelp.com/v3/businesses/veq1Bl1DW3UWMekZJUsG1Q/reviews?limit=1&sort_by=yelp_sort

Response

{
  "error": {
    "code": "NOT_FOUND",
    "description": "Resource could not be found."
  }
}

Extra information

(Anything else you that you think might help us better resolve this. Do not post any API keys or secrets.)

rockdog commented 7 months ago

Hi @ahmad-hossain, access to the reviews endpoint is not part of your plan. More details can be found here: https://docs.developer.yelp.com/page/start-your-free-trial

ahmad-hossain commented 7 months ago

Silly me, thank you!