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

Patrick Lloyd wrote 10/07/2024 at 22:03 point

I'm also getting "Error: unable to get local issuer certificate". Any word on this?

  Are you sure? yes | no

Raphael wrote 08/13/2024 at 13:18 point

I tried to login with Hackaday and I got 'Error: unable to get local issuer certificate'.

  Are you sure? yes | no

Stephen Chasey wrote 08/13/2024 at 15:31 point

Me too.

  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

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

Arya 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: https://api.hackaday.io/v1/message/2369?api_key=API_KEY . 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:\/\/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

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

Does this project spark your interest?

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