Response Status

The result of requests to J-Quants API is indicated by HTTP status codes. If the request is successful, 200 is returned, and if an error occurs, error codes in the 400 or 500 range are returned.

The error response Body may contain a JSON object with error details.

Status Code List

Status CodeNameDescription
200OKThe request was successful.
210No Content (Partial)Data could not be retrieved due to reasons such as being outside the available time window or non-existent issue codes (used in some APIs such as the Morning Session Stock Prices (OHLC) API).
400Bad RequestRequest parameters are invalid or required parameters are missing.
403ForbiddenAccess permission is denied. The message differs depending on the cause; see Causes of 403 Forbidden and what to do for details.
429Too Many RequestsThe number of requests exceeded the limit (rate limit). No Retry-After header is included, so do not retry immediately; wait at least one minute (about two minutes to be certain) before resuming requests. See Rate Limits for details.
500Internal Server ErrorAn error occurred on the server. Please retry after some time.

Causes of 403 Forbidden and what to do

A 403 is returned for several reasons, and the response message differs depending on the cause.

When No Matching Data Exists

If no data matches the specified search conditions, the API does not return an error. A response with status code 200 and an empty array in data is returned. In this case, no pagination_key is set.

{
  "data": []
}

Example Error Message

When an error occurs, details are returned in JSON format as shown below. Note that while the error response body may contain a message, it is not guaranteed to always be included.

{
  "message": "This API requires at least 1 parameter as follows; date, code"
}

Was this page helpful?