Giter Club home page Giter Club logo

oneyplays-api's Introduction

npm package

oneyplays-api

An api to provide info about OneyPlays videos (OneyNG's gaming YouTube channel).

Usage

Node api

yarn add oneyplays-api
const oneyPlays = require('oneyplays-api')
const searchLittleHarry = oneyPlays('harry potter') // video game title OR RAWG ID

=>

[
  {
    id: 28,
    title: 'Harry Potter And The Chamber Of Secrets',
    release_year: '2002',
    url: 'https://www.youtube.com/watch?v=mae2i1atCWk',
    yt_id: 'mae2i1atCWk',
    rawg_id: 31476
  }
]

HTTP api

Served by Express.Js. see server.js

GET /api/1/videos/{id} - returns a specific video game title with the id

GET /api/1/videos/?q={query} - returns search result for the query string (video game title OR RAWG ID). E.g.: /api/1/videos/?q=crash

[
  {
    "id": 6,
    "title": "Crash N. Sane Trilogy",
    "release_year": "2017",
    "url": "https://www.youtube.com/watch?v=ZZs7SaQOiVc",
    "yt_id": "ZZs7SaQOiVc",
    "yt_thumbnail": "https://i.ytimg.com/vi/ZZs7SaQOiVc/mqdefault.jpg",
    "rawg_id": 34
  },
  {
    "id": 13,
    "title": "Crash Bandicoot 2: Cortex Strikes Back",
    "release_year": "1997",
    "url": "https://www.youtube.com/watch?v=mEYGSRC04rQ",
    "yt_id": "mEYGSRC04rQ",
    "yt_thumbnail": "https://i.ytimg.com/vi/mEYGSRC04rQ/mqdefault.jpg",
    "rawg_id": 52827
  },
  {
    "id": 22,
    "title": "Crash Bandicoot 3: Warped ",
    "release_year": "1998",
    "url": "https://www.youtube.com/watch?v=KBm_U564pI8",
    "yt_id": "KBm_U564pI8",
    "yt_thumbnail": "https://i.ytimg.com/vi/KBm_U564pI8/mqdefault.jpg",
    "rawg_id": 5426
  },
  {
    "id": 34,
    "title": "Crash Bandicoot: Wrath of Cortex",
    "release_year": "2001",
    "url": "https://www.youtube.com/watch?v=_nRfJptXgWg",
    "yt_id": "_nRfJptXgWg",
    "yt_thumbnail": "https://i.ytimg.com/vi/_nRfJptXgWg/mqdefault.jpg",
    "rawg_id": 49868
  },
  {
    "id": 36,
    "title": "Crash Bandicoot",
    "release_year": "1996",
    "url": "https://www.youtube.com/watch?v=B0rnOeXpaWM",
    "yt_id": "B0rnOeXpaWM",
    "yt_thumbnail": "https://i.ytimg.com/vi/B0rnOeXpaWM/mqdefault.jpg",
    "rawg_id": 5488
  },
  {
    "id": 46,
    "title": "Crash Twinsanity ",
    "release_year": "2004",
    "url": "https://www.youtube.com/watch?v=KnUxkIfRQQ8",
    "yt_id": "KnUxkIfRQQ8",
    "yt_thumbnail": "https://i.ytimg.com/vi/KnUxkIfRQQ8/mqdefault.jpg",
    "rawg_id": 59192
  },
  {
    "id": 51,
    "title": "Crash Team Racing (CTR) Nitro-Fueled",
    "release_year": "2019",
    "url": "https://www.youtube.com/watch?v=UdrqiRM8-lI",
    "yt_id": "UdrqiRM8-lI",
    "yt_thumbnail": "https://i.ytimg.com/vi/UdrqiRM8-lI/mqdefault.jpg",
    "rawg_id": 274571
  }
]

Content

Oney Plays COMPLETE SERIES

Connected to RAWG.io database.

Updated on 01/26/2020

License

MIT License

Copyright (c) 2020 David Barton

oneyplays-api's People

Contributors

dependabot[bot] avatar thedavidbarton avatar

Watchers

 avatar  avatar

oneyplays-api's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.