All Projects → n3a9 → mlh-events

n3a9 / mlh-events

Licence: other
The unofficial API for MLH events.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to mlh-events

hackathons-v1
💻💥 Open source directory of free student-led high school hackathons used by thousands of students worldwide (join the mailing list on the website!)
Stars: ✭ 65 (+400%)
Mutual labels:  hackathons
Data-Science-Hackathon-And-Competition
Grandmaster in MachineHack (3rd Rank Best) | Top 70 in AnalyticsVidya & Zindi | Expert at Kaggle | Hack AI
Stars: ✭ 165 (+1169.23%)
Mutual labels:  hackathons
hackathons
Tips, Tricks, and Resources for running your hackathon.
Stars: ✭ 238 (+1730.77%)
Mutual labels:  hackathons
Academiccontent
Free tech resources for faculty, students, researchers, life-long learners, and academic community builders for use in tech based courses, workshops, and hackathons.
Stars: ✭ 2,196 (+16792.31%)
Mutual labels:  hackathons
dev-cover
🌐 Get and publish your developer portfolio with just your username
Stars: ✭ 155 (+1092.31%)
Mutual labels:  hackathons
hackathons
💻💥 Open source directory of free student-led high school hackathons used by thousands of students worldwide
Stars: ✭ 116 (+792.31%)
Mutual labels:  hackathons
dutch-hackathons
Building the most comprehensive list of annual hackathons in the Netherlands at hackathonlist.nl.
Stars: ✭ 22 (+69.23%)
Mutual labels:  hackathons
hackathons
A collection of tips and tricks for using Twilio at hackathons
Stars: ✭ 35 (+169.23%)
Mutual labels:  hackathons
OpenSourceEvents-Frontend
This website contains a list of open source events and hackathon.
Stars: ✭ 54 (+315.38%)
Mutual labels:  hackathons
mlh-localhost-intro-to-docker
Sample code for MLH Localhost: Intro to Docker
Stars: ✭ 17 (+30.77%)
Mutual labels:  mlh
Recess
🤓 Recess - A Social Media Platform for students to share their experience/knowledge they gained in their free time. 🧐
Stars: ✭ 43 (+230.77%)
Mutual labels:  mlh
MLH-Quizzet
This is a smart Quiz Generator that generates a dynamic quiz from any uploaded text/PDF document using NLP. This can be used for self-analysis, question paper generation, and evaluation, thus reducing human effort.
Stars: ✭ 23 (+76.92%)
Mutual labels:  mlh

Travis Code Style

mlh-events

💻 ☕️ The unofficial http API for Major League Hacking events

As an example, visit https://mlh-events.now.sh/na-2019 to see all the North American 2019 hackathons.

Usage

mlh-events provides a GET http endpoint which returns an array. You can request any of the following endpoints at https://mlh-events.now.sh:

  • /na-2019
  • /eu-2019
  • /na-2018
  • /eu-2018
  • /na-2017
  • /eu-2017
  • /s2016
  • /f2015
  • /s2015
  • /f2014
  • /s2014
  • /f2013

Programmatic Example

We've chosen JavaScript here since it's approachable and most folks can reason about it:

// print the full response
fetch('https://mlh-events.now.sh/na-2017')
  .then(res => res.json())
  .then(hackathons => console.log(hackathons));

//  [
//    {
//      "name": "Hack the 6ix 2018",
//      "url": "http://hackthe6ix.com/",
//      "startDate": "2018-08-24",
//      "endDate": "2018-08-26",
//      "location": "Toronto,ON",
//      "isHighSchool": false,
//      "imageUrl": "https://s3.amazonaws.com/assets.mlh.io/events/splashes/000/000/909/thumb/Hackthe6ixcityBackground.jpg?1527782042"
//    },
//    {
//      "name": "HackMTY",
//      "url": "http://hackmty.com/",
//      "startDate": "2018-08-25",
//      "endDate": "2018-08-26",
//      "location": "Monterrey,MX",
//      "isHighSchool": false,
//      "imageUrl": "https://s3.amazonaws.com/assets.mlh.io/events/splashes/000/000/910/thumb/HackMTYsplash-MLH.png?1527782154"
//    },
//  ...hundreds more hackathons
//  ]

Here's an example counting the amount of high-school hackathons in North America's 2017 season:

// print the full response
fetch('https://mlh-events.now.sh/na-2017')
  .then(res => res.json())
  .then(hackathons => {
    const highSchoolHackathons = hackathons.filter(hackathon => hackathon.isHighSchool);
    console.log(`There were ${highSchoolHackathons.length} hackathons in "na-2017"`);
  });

// There were 12 hackathons in "na-2017"

API Documentation

The API response is an array of json object's, where the schema is as follows:

Key Value Type Example
name string 'HackCU III'
url string 'https://2017.hackcu.org'
startDate string '2017-04-22'
endDate string '2017-04-23'
location string 'Boulder,CO'
isHighSchool boolean false
image string 'https://s3.amazonaws.com/assets.mlh.io/events/splashes/000/000/543/thumb/70991d078d30-hackcusplash.png?1479915080'

History & Technical Details

For years, folks have made hacks to hack an API together from the MLH event page. This implementation is different because of several things.

  • The API performs caching daily, so the MLH page receives traffic only once per day, even if our endpoint is hit hundreds of times

  • The deployment url is static and will be there forever thanks to nowjs.

Development

Install

$ yarn

Start

$ npm start

License

MIT © with ❤️ from Neeraj Aggarwal & Dawson Botsford

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].