The API itself returns a JSON array when the request can be served with a result set. There are conditions like rate limiting, a user not being found, or other visibility problems that would result in a HTTP 404, 401, 429, etc – in that case the response would be a JSON hash describing the error. You should monitor HTTP status codes to determine whether the response you got contains the data you’re looking for or not.