npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

oneyplays-api

v1.3.0

Published

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

Downloads

3

Readme

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