HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
timdorr
tesla-api
Ruby2013–2020
timdorr / tesla-api

tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.

4Distinct people
8Mentions
0Explicit recommenders
2.1KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year8 dated mentions

Observed mentions: 2013-02-05 15:03:28 UTC to 2020-04-17 14:34:38 UTC.

012342013-01-01 00:00:00 UTC to 2014-01-01 00:00:00 UTC (exclusive): 4 mentions; 1 submissions, 3 comments20132014-01-01 00:00:00 UTC to 2015-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20162017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2020

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20132013-01-01 00:00:00 UTC2014-01-01 00:00:00 UTC413
20142014-01-01 00:00:00 UTC2015-01-01 00:00:00 UTC101
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC000
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC000
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC000
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC000
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC202
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC101

What Hacker News says

8 sources
There is a huge API to telsa cars: mostly through https://owner-api.teslamotors.com/ for example: POST /api/1/vehicles/{id}/command/door_unlock "Unlocks the doors to the car. Extends the handles on the S and X." response: { "reason": "", "result": true } details of the api people have discovered have been collected here: https://github.com/timdorr/tesla-api Now, I personnaly wouldn't give credentials of my car out to folks, but you have to admit there is some interesting data that has come out of it. for example, folks have discovered the details of how various tesla batteries charge: https://forum.abetterrouteplanner.com/blogs/entry/29-faster-...
In Teslabot: A virtual assistant for Tesla cars – Locate, lock and other features
If you've ever been to a tesla service center, it's kind of interesting. Cars glide in silently and when they sit there for a bit the words "Service Mode" come up in maybe 5" high letters on the dashboard. There are lots of technicians on their computers. The car info comes up on the specific car and shows lots of history, where and when it was last serviced and so forth. Each car seems to have it's own personal list of options and features, that shows up on the website when searching for cars, or when signing into you car portal. folks have taken the time to document them: https://github.com/timdorr/tesla-api https://github.com/fredrikfjeld/tesla-options-decoder I think all cars are like this, but telsa is less rigid / concerned about model years and just consults the database for the specific car's info at every step.
In Changes to Models S and X allow them to travel longer without larger batteries
As long as the carmaker is open about things, the increasing complexity doesn't have to be bad news for tinkerers. It's not officially released yet, but https://github.com/timdorr/model-s-api shows the promise of Tesla's commitment to openness. It won't allow the "how does my car work?" type of tinkering, but it allows the "how can I use my car in interesting ways?" tinkering. It's much the same as computers. The original Apples were understandable devices. The lack of miniaturization meant that hackers could figure out how everything was working and play with it. That activity would be ridiculous with modern-day CPUs/components as the complexity has increased by orders of magnitude and the miniaturization has reached levels where specialized equipment is needed to look at what's going on that costs well beyond what can fit in a hobbyist'
Read the rest
s budget. Yet modern-day computers are still programmable and people are still learning and hacking. The only difference is that this learning is happening a few abstraction levels removed from the actual hardware. The same will be true with cars, provided manufacturers are as cooperative as Tesla seems to be.
In Elon Musk: To the People of New Jersey
Apiary is great! I used them for documenting the Tesla Model S API: http://docs.timdorr.apiary.io/ All I had to do was create a github repo and that was it: https://github.com/timdorr/model-s-api It's great for public projects because there are both comments, which allows for inline discussion, and a mock API server, which doesn't help me so much (Tesla's API implementation isn't true REST) but allows others to throw things at an endpoint without worrying about consequences. One of the devs was even willing to get involved and issued a pull request for the repo! https://github.com/timdorr/model-s-api/commit/b0669d Awesome guys!
In Apiary.io – REST tools for API documentation and testing

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.