Socket
Socket
Sign inDemoInstall

oneyplays-api

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    oneyplays-api

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


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
94.2 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 16 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc