Skip to content

APIError: {"detail":"exceeded limit  #26

Description

@andreacortis

I have tried this

import pyopenstates
import os
os.environ['OPENSTATES_API_KEY'] = "a4....."
results = pyopenstates.search_bills(state="ny", q="taxi")

but consistently got this error

APIError: {"detail":"exceeded limit of 10/min: 11}

without ever getting anything in return from the API. Tried at different time intervals. Could you please advise?

--- EDIT ---

When using the set_api_key functions I get results.

import pyopenstates
pyopenstates.set_api_key("a4...")
results = pyopenstates.search_bills(state="ny", q="taxi")
In [6]: len(results)
Out[6]: 179

Is this an issue maybe related to outdated the documentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions