Close
0%
0%

Hackaday API

Official hackaday.io API project

Similar projects worth following
Official hackaday.io API project

This REST API provides programmatic access to data from Hackaday.io. 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 dev.hackaday.io, and register your app here.

View all instructions

Enjoy this project?

Share

Discussions

Prometheus_ wrote 5 days ago point

{"code":400,"type":"Bad Request","message":"API key incorrect. Please visit https:\/\/dev.hackaday.io\/ 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 "http://api.hackaday.io/v1/feeds/global?api_key=***"; (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  
https://hackaday.io/authorize?client_id=CLIENT_ID&state=&response_type=code


  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.

  https://hackaday.io/project/12657-hack-a-blog

  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... https://dev.hackaday.io/doc/api/get-comments

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

Definitely! 

  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 http://api.hackaday.io/v1/message , 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 : http://api.hackaday.io/v1/message/15700 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 hackaday.io 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: https://hackaday.io/project/5803-hackadayio-analytics

  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: 

https://hackaday.io/project/5611-hackadayio-global-feed-scraper

  Are you sure? yes | no

Paul Scott wrote 05/05/2015 at 11:21 point

Been working on getting OAuth to work so far to log a user in. Close
now, but running into an issue that the OAuth authorize URL seems to not
exist... I keep getting a 404. Also have tried a bunch of different permutations such as api.hackaday.io/v1/ etc. Still no deal.


https://hackaday.io/authorize

Any suggestions?

  Are you sure? yes | no

Ivan Lazarevic wrote 05/05/2015 at 16:59 point

are you sending client id like this https://hackaday.io/authorize?client_id=CLIENT_ID&state=&response_type=code ?

  Are you sure? yes | no

Paul Scott wrote 05/05/2015 at 17:07 point

yes, tested with full params as well as none. Seems the authorize bit is producing the 404 though...

  Are you sure? yes | no

Ivan Lazarevic wrote 05/05/2015 at 17:09 point

sending you PM

  Are you sure? yes | no

Paul Scott wrote 05/05/2015 at 17:11 point

I think I may have just figured it out. Callback URL needs to be handled via Intent filter! Let me try that...

  Are you sure? yes | no

Paul Scott wrote 05/05/2015 at 17:30 point

OK, I am an official idiot! When I copied and pasted the client_secret
and client_id from the API docs page, I somehow copied a leading space
as well, which screwed up the whole thing! Sorry about being a dumbass!
Thanks for your help! All working now! :)

  Are you sure? yes | no

Paul Scott wrote 05/05/2015 at 06:18 point

Started a full featured Android app using the Hackaday.io API here 

https://hackaday.io/project/5616-hackaday-io-android-app

  Are you sure? yes | no

Edison Chen wrote 05/05/2015 at 07:06 point

an app? awesome!

  Are you sure? yes | no

Alex Rich wrote 05/05/2015 at 03:45 point

  Are you sure? yes | no

Ivan Lazarevic wrote 05/05/2015 at 06:34 point

look nice. good job!

  Are you sure? yes | no

davedarko wrote 05/05/2015 at 22:14 point

@Alex Rich thanks to you and your project it was super easy to remake! Awesome stuff.

  Are you sure? yes | no

Alex Rich wrote 05/05/2015 at 23:11 point

Great!  let me know if you improve anything, I might make a fancy skull counter that displays more about the project like #followers, etc.  Endless possibilities.

  Are you sure? yes | no

davedarko wrote 05/06/2015 at 05:57 point

I'm still thinking about a project to get started with the esp8266 and something like a skull alert seems about right. So no webpage for now. Would be cool if they would extend the skull api to use it like the facebook like on other pages, like their blog.

  Are you sure? yes | no

Alex Rich wrote 05/04/2015 at 17:13 point

Thanks for the reply to my question, that worked!  I was getting hung up on the OAuth / callback stuff because that was new to me, it wasn't initially clear that for public data I can skip those steps and just do a normal GET request using my API key.  The examples on the API site are great btw, thanks!  Will implement my little counter tonight.  It might be cool for you guys to eventually just post code snippets for brain-dead things like displaying your project's skull count on your external project website (next to a button that lets people skull the project).  For something like this that would ping the API every time a website is visited, you could recommend how to implement a simple cache that is only refreshed if a few minutes has passed.  Just some ideas floating through my head.

  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