{"id":16620562,"url":"https://github.com/spikehd/gamebanana","last_synced_at":"2025-07-29T23:16:00.328Z","repository":{"id":57244265,"uuid":"351331421","full_name":"SpikeHD/gamebanana","owner":"SpikeHD","description":"Game Banana API wrapper for NodeJS","archived":false,"fork":false,"pushed_at":"2021-04-02T06:48:32.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-21T15:05:20.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpikeHD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-25T06:26:54.000Z","updated_at":"2024-02-22T20:32:39.000Z","dependencies_parsed_at":"2022-09-01T06:11:44.647Z","dependency_job_id":null,"html_url":"https://github.com/SpikeHD/gamebanana","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SpikeHD/gamebanana","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpikeHD%2Fgamebanana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpikeHD%2Fgamebanana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpikeHD%2Fgamebanana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpikeHD%2Fgamebanana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpikeHD","download_url":"https://codeload.github.com/SpikeHD/gamebanana/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpikeHD%2Fgamebanana/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267779082,"owners_count":24143178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T02:44:35.534Z","updated_at":"2025-07-29T23:16:00.128Z","avatar_url":"https://github.com/SpikeHD.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GameBanana\n\nAsync API wrapper for Gamebanana, written for NodeJS.\n\n![https://github.com/SpikeHD/gamebanana](https://img.shields.io/github/package-json/v/SpikeHD/gamebanana) ![https://github.com/SpikeHD/gamebanana](https://img.shields.io/david/SpikeHD/gamebanana) ![https://www.npmjs.com/package/gamebanana](https://img.shields.io/npm/dw/gamebanana)\n\n## Jump to\n\n* [Installation](#installation)\n* [Quick-start](#quick-start)\n* [Documentation](#documentation)\n* [Examples](#examples)\n* [Contributing](#contributing)\n\n# Installation\n\n* With `npm`:\n  ```sh\n  npm install gamebanana\n  ```\n* With `yarn`:\n  ```sh\n  yarn add gamebanana\n  ```\n\n# Quick-start\n\nImport into your project:\n```js\nconst gb = require('gamebanana')\n```\n\nor with ES6 import/exports:\n```js\nimport gb from 'gamebanana'\n```\n\n# Documentation\n\nTODO (too lazy rn, just look at JSDocs for now)\n\n# Examples\n\n### Initializing a client\n\n```js\nconst { Client } = require('gamebanana')\n\n// Without an API key, since it's not required\nconst client = new Client()\n\n// With an API key n' stuff (for client.login())\nconst client = new Client({\n  api_key: 'myapikey',\n  userid: 'myuserid',\n  appid: 'myappid'\n})\n```\n\n### Initializing an Item\n\n```js\nconst item = await client.Item.getItem({\n  itemtype: 'type',\n  itemid: 'id',\n  fields: ['fields']\n})\n\n// OR with the class directly\n\nconst { Item } = require('gamebanana')\n\nconst item = new Item({\n  itemtype: 'type',\n  itemid: 'id',\n  fields: ['fields']\n})\n\nconst data = await item.data()\n```\n\n### Initializing a List query\n\n```js\nconst list = await client.List.list({\n  itemtype: 'type',\n  field: 'field',\n  query: 'searchquery'\n})\n\n// OR with the class directly\n\nconst { List } = require('gamebanana')\n\nconst list = new List({\n  itemtype: 'type',\n  field: 'field',\n  query: 'searchquery'\n})\n\nconst results = await list.data()\n```\n\n### Initializing a Section query\n\n```js\nconst section = await client.Section.list({\n  itemtype: 'type',\n  sort: 'sort',\n  direction: 'desc',\n  page: 1\n})\n\n// OR with the class directly\n\nconst { Section } = require('gamebanana')\n\nconst section = new Section({\n  itemtype: 'type',\n  sort: 'sort',\n  direction: 'desc',\n  page: 1\n})\n\nconst results = await section.data()\n```\n\n### Initializing a NewItems submissions query\n\n```js\nconst submissions = await client.NewItems.getNewItems({\n  page: 1\n})\n\n// OR with the class directly\n\nconst { NewItems } = require('gamebanana')\n\nconst submissions = new NewItems({\n  page: 1\n})\n\nconst results = await submissions.data()\n```\n\n### Initializing a Member\n\n```js\n// Via ID\nconst member = await client.Member.findByID({\n  userid: 1\n})\n\n// Via username\nconst member = await client.Member.findByName({\n  username: 'myuser'\n})\n\n// OR with the class directly\n\nconst { Member } = require('gamebanana')\n\n// With ID\nconst member = new Member({\n  userid: 1\n})\n\n// With username\nconst member = new Member({\n  username: 'myuser'\n})\n\nconst results = await member.find()\n```\n\n# Contributing\n\nIssues, PRs, etc. are all welcome!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspikehd%2Fgamebanana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspikehd%2Fgamebanana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspikehd%2Fgamebanana/lists"}