Handle the response
Read rate-limit and diagnostic headers
The rate-limit header values are ordered by second, minute, then day. Limits depend on your subscription, so read the response instead of hard-coding example values.
Use
curl --include while integrating to inspect both headers and the response body: