Hackaday API

Official API project

Similar projects worth following
Official API project

This REST API provides programmatic access to data from Read project data, user profiles, comments, pages, search and more using the API. The authorization to access the API is via the open standard for authorization OAuth. The responses are available in JSON.

Check out, and register your app here.

View all instructions

Enjoy this project?



Stuart Longland wrote 10/12/2018 at 11:17 point

Is OAuth2 working for anyone?  I'm getting this (sensitive bits removed for obvious reasons):

$ curl -s -d'' '${ID}&client_secret=${SECRET}&code=${CODE_FROM_CALLBACK}&grant_type=authorization_code' | python -m json.tool
    "error": "invalid_access_code",
    "error_description": "Invalid access code"

I've also tried POSTing that in the body, although the examples use URI query parameters and that's what my code does now:

  Are you sure? yes | no

Alex Rich wrote 09/19/2018 at 14:07 point

Did my API account get blocked again for too many queries?  Just noticed my website's skull counter isn't working any more.  It is registered as "

  Are you sure? yes | no

davedarko wrote 09/19/2018 at 15:31 point

is that seriously a bug with double quotes for comments? I will add test behind " test

  Are you sure? yes | no

Alex Rich wrote 09/19/2018 at 15:36 point

interesting, yeah it removed what was in the double quotes.  It is registered as (no quotes) skull counter widget

  Are you sure? yes | no

Stuart Longland wrote 03/03/2018 at 00:40 point

Silly question… how do you view the "Things I've built" part of profiles from the HAD API?  I'm seeing some spambots using that to spruik their wares and that's a blind-spot for me.

  Are you sure? yes | no

davedarko wrote 06/21/2017 at 09:08 point

when I compare likes / skulls count from the API vs. the page, I get a difference of 869(API) to 926(page). I guess you don't count in page likes? 

  Are you sure? yes | no

Arsenijs wrote 05/29/2017 at 09:04 point

Hi! I'm trying to make a simple HackChat-IRC gateway, but the server keeps returning 500 to this: . I can get the list of conversations I have, checked that the HackChat convo is there, but this particular page doesn't want to work for me. I also can't seem to be able to send messages, either, same 500 error. (BTW, why the message receive and send APIs are so different?)

  Are you sure? yes | no

Gintaras Valatka wrote 05/13/2017 at 04:08 point

Not exactly API question, but is there any chance of being able to add tracking to projects? Like ability to add google tracking id or some other third party tracker? So that I could gauge what brings most traffic(sources etc) as currently I am totally blind & clueless :D Thanks

  Are you sure? yes | no

davedarko wrote 05/13/2017 at 09:06 point

can't you add &reference=HackadayProjectLink or something to your page and log stuff like that?

  Are you sure? yes | no

Gintaras Valatka wrote 05/20/2017 at 17:12 point

Thank you for the suggestion davedarko it somehow skipped my mind :) although it does have its own pro & cons :D eg can't afford to pay for hosting or lose the domain ... (sort of unstable times I live in)...

  Are you sure? yes | no

Prometheus_ wrote 04/22/2017 at 21:36 point

{"code":400,"type":"Bad Request","message":"API key incorrect. Please visit https:\/\/\/ to register an API key"}

  Are you sure? yes | no

Paradise Darkness wrote 04/15/2017 at 15:06 point

Is the api still maintained/usable? I'm getting a 500 error whith the Objective-C example app when it tries to fetch "***"; (I filled the Client_id, secret_id and api_key parameters). Any thoughts?

  Are you sure? yes | no

matseng wrote 03/28/2017 at 08:11 point

There seems to be no option for getting "myFeed", just the global feed.  Is myFeed something that in the future roadmap?

  Are you sure? yes | no

LazyHD wrote 10/21/2016 at 12:33 point

I am getting a 404 when i redirect to the authorize link

  Are you sure? yes | no

Alex Rich wrote 07/18/2016 at 23:55 point

not sure if this is new idea, but for those who post on here and also maintain another site with a blog, it is tedious posting to two places.   This code makes project logs appear as blog posts on another site.

  Are you sure? yes | no

johnowhitaker wrote 04/25/2016 at 16:41 point

Is there a way to GET projects by tag? Seems like search/projects....&search_term=TAG doesn't do the trick

  Are you sure? yes | no

johnowhitaker wrote 04/25/2016 at 16:43 point

Never mind, I take it back :P My bad.

  Are you sure? yes | no

davedarko wrote 04/24/2016 at 16:18 point

I'm playing around with the api, is there no publish/draft state on the pages?

  Are you sure? yes | no

bosko wrote 04/03/2016 at 18:16 point

in api docs...

missing example API for call "comments/events/:id"

  Are you sure? yes | no

Elliot Williams wrote 02/14/2016 at 19:38 point

No prob!  I was looking into a way to keep up better with the Hacker Channel chat -- see if anyone has written to/about me without having to scroll back through so many messages manually.

  Are you sure? yes | no

jlbrian7 wrote 02/14/2016 at 20:04 point

I have a python script that I was using that would read the messages from the page source.  I could clean it up and post it in a private project next week.  I can add you to the project if you think it is something you would find useful.

  Are you sure? yes | no

Elliot Williams wrote 02/14/2016 at 20:29 point


  Are you sure? yes | no

Yann Guidon / YGDES wrote 02/14/2016 at 21:02 point

this sounds similar to #HackaDump :-)

  Are you sure? yes | no

Elliot Williams wrote 02/17/2016 at 08:48 point

Finally got around to looking into scraping the Hacker Channel -- it's not so easy.  It's written in Angular, so all of the database -> text stuff is done dynamically in Javascript.  Which, AFAIK, means using something like Selenium/Webdriver that can interpret the JS.  

So it's doable, but nontrivial. I may hack at it if I get time, but the cleanest solution is a backend API.

  Are you sure? yes | no

jlbrian7 wrote 02/17/2016 at 12:07 point

Yeah, I am using selenium, but I was going to try it with mechanize to see if I could get it to work.  I think I will have time this afternoon to get something posted.

  Are you sure? yes | no

Elliot Williams wrote 02/12/2016 at 23:40 point

Is the "message" part of the API working?  I've been playing around, and can get the list of my conversations from , but then when it comes time to see an individual convo (indexed by 'id' from above), I get a 500 internal server error back.

It says in the docs that the server will error out if I don't have permissions for the conversation, but I've double-checked the numbers with the normal web interface and the list from /message.

I should be able to read message 15700 at : right?  Or am I doing something obviously wrong?

  Are you sure? yes | no

Ivan Lazarevic wrote 02/13/2016 at 22:25 point

unfortunately, that part doesn't work. it's in our todo list : )

  Are you sure? yes | no

Paul Scott wrote 07/13/2015 at 11:48 point

Is there any where that I can check my rate limits? I.e. I want to be able to see how close I am to the 30k api limit.

  Are you sure? yes | no

Alex Rich wrote 06/18/2015 at 19:10 point

@Ivan Lazarevic @Edison Chen My API key for "skull count widget" has exceeded its monthly limit and now my skull counter is broken.  Not sure if there is a better way to implement it, what is the monthly limit for mine?  I have had 3000 pageviews in the last 30 days, my counter only pings the API once very 30 seconds and it only does it while someone is actively on the page.   Do you see there being a better way to implement this?

  Are you sure? yes | no

Alex Rich wrote 06/26/2015 at 11:15 point

@Ivan Lazarevic Any word on this?  what is my monthly API limit?

  Are you sure? yes | no

Ivan Lazarevic wrote 06/27/2015 at 01:35 point

monthly limit for read is 30000 for now. it might be increased in the future. 

you should consider caching api response instead sending api call for each page view.

  Are you sure? yes | no

Aleksandar Bradic wrote 06/27/2015 at 06:32 point

Hey Alex - just to reiterate on this one. Monthly limit for number of API calls per given API key is 30000. We have checked the counters and the number of issued requests with your API key over the last month is 32941, which is hitting the max requests limit, hence the issue. Hope this helps.

  Are you sure? yes | no

Alex Rich wrote 06/27/2015 at 11:54 point

I changed my code so the theoretical maximum monthly API calls is now 21,600 (one every two minutes).  I actually was caching the skull count and only pinging API if the cache was older than 30 seconds.  If someone opened my site and just sat on it for several weeks without closing the browser, maybe that would cause this issue.  I have ajax that checks the cache every 10 seconds while someone is on the page, if cache was older than 30s it gets a fresh value from the API.  The hope was that someone could go to and skull the project, return to my page and see it update quickly.  Oh well, no big deal.  Would be ideal if the API pushed changes to me somehow so I don't have to continually check, that's not an option in the API at this point though.

  Are you sure? yes | no

Alex Rich wrote 05/20/2015 at 00:18 point

You guys should check this project out, should be interesting:

  Are you sure? yes | no

Bob Blake wrote 05/05/2015 at 13:29 point

The release of the hackaday API has obsoleted a global feed scraper project I *just* did, but I figured I'd post it here in case anyone is interested:

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates