Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint /api/1/vehicles returns only 100 records #758

Closed
malina-nimbee opened this issue Sep 27, 2023 · 1 comment
Closed

Endpoint /api/1/vehicles returns only 100 records #758

malina-nimbee opened this issue Sep 27, 2023 · 1 comment

Comments

@malina-nimbee
Copy link
Contributor

I have a client with more than 100 vehicles under one account and I can't figure out how to perform paging or sending an offset (eg like in mysql).
Does anybody know?

@malina-nimbee malina-nimbee changed the title Endpoint /api/1/vehicles return only 100 records Endpoint /api/1/vehicles returns only 100 records Sep 27, 2023
@malina-nimbee
Copy link
Contributor Author

The parameter is page.
First 100 results is page 1. When request GET parameter page is provided, the API returns results above the 100 limit.
You should perform another request with incremented page parameter and join the data when the result contains count=100 which means there could be next page.

curl -X GET "https://owner-api.teslamotors.com/api/1/vehicles?page=2" -H "Authorization: Bearer $TESLA_TOKEN"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants