Skip to content

APIError

adasThePrime edited this page Apr 13, 2026 · 1 revision

APIError

Raised when the Yahoo Finance API returns an error in the response body, or when the HTTP status code indicates a failure (>= 400).

from pyahoo import APIError
# or
from pyahoo.exceptions import APIError

Hierarchy

PyahooError
├── AuthenticationError
├── APIError    <- You are here
│  ├── RateLimitError
│  └── NotFoundError
└── StreamingError

Attributes

  • status_code (int): HTTP status code.
  • response_body (dict, optional): Raw response body.

Clone this wiki locally