@datafire/rawg
v3.0.0
Published
DataFire integration for RAWG Video Games Database API
Downloads
3
Readme
@datafire/rawg
Client library for RAWG Video Games Database API
Installation and Usage
npm install --save @datafire/rawg
let rawg = require('@datafire/rawg').create();
.then(data => {
console.log(data);
});
Description
The largest open video games database.
Why build on RAWG
- More than 350,000 games for 50 platforms including mobiles.
- Rich metadata: tags, genres, developers, publishers, individual creators, official websites, release dates, Metacritic ratings.
- Where to buy: links to digital distribution services
- Similar games based on visual similarity.
- Player activity data: Steam average playtime and RAWG player counts and ratings.
- Actively developing and constantly getting better by user contribution and our algorithms.
Terms of Use
- Free for personal use as long as you attribute RAWG as the source of the data and/or images and add an active hyperlink from every page where the data of RAWG is used.
- Free for commercial use for startups and hobby projects with not more than 100,000 monthly active users or 500,000 page views per month. If your project is larger than that, email us at [email protected] for commercial terms.
- No cloning. It would not be cool if you used our API to launch a clone of RAWG. We know it is not always easy to say what is a duplicate and what isn't. Drop us a line at [email protected] if you are in doubt, and we will talk it through.
- You must include an API key with every request. The key can be obtained at https://rawg.io/apidocs. If you don’t provide it, we may ban your requests.
Actions
creator_roles.get
Get a list of creator positions (jobs).
rawg.creator_roles.get({}, context)
Input
- input
object
- page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page.
- page
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Position
- count required
creators_list
Get a list of game creators.
rawg.creators_list({}, context)
Input
- input
object
- page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page.
- page
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Person
- count required
creators_read
Get details of the creator.
rawg.creators_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Person.
- id required
Output
- output PersonSingle
developers_list
Get a list of game developers.
rawg.developers_list({}, context)
Input
- input
object
- page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page.
- page
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Developer
- count required
developers_read
Get details of the developer.
rawg.developers_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Developer.
- id required
Output
- output DeveloperSingle
games_list
Get a list of games.
rawg.games_list({}, context)
Input
- input
object
- page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page. - search
string
: Search query. - parent_platforms
string
: Filter by parent platforms, for example:1,2,3
. - platforms
string
: Filter by platforms, for example:4,5
. - stores
string
: Filter by stores, for example:5,6
. - developers
string
: Filter by developers, for example:1612,18893
orvalve-software,feral-interactive
. - publishers
string
: Filter by publishers, for example:354,20987
orelectronic-arts,microsoft-studios
. - genres
string
: Filter by genres, for example:4,51
oraction,indie
. - tags
string
: Filter by tags, for example:31,7
orsingleplayer,multiplayer
. - creators
string
: Filter by creators, for example:78,28
orcris-velasco,mike-morasky
. - dates
string
: Filter by a release date, for example:2010-01-01,2018-12-31.1960-01-01,1969-12-31
. - updated
string
: Filter by an update date, for example:2020-12-01,2020-12-31
. - platforms_count
integer
: Filter by platforms count, for example:1
. - exclude_collection
integer
: Exclude games from a particular collection, for example:123
. - exclude_additions
boolean
: Exclude additions. - exclude_parents
boolean
: Exclude games which have additions. - exclude_game_series
boolean
: Exclude games which included in a game series. - ordering
string
: Available fields:name
,released
,added
,created
,updated
,rating
. You can reverse the sort order adding a hyphen, for example:-released
.
- page
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Game
- count required
games_sitemap_read
Get The Sitemap Games list.
rawg.games_sitemap_read({}, context)
Input
- input
object
- page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page.
- page
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items GameSingle
- count required
games_additions_list
Get a list of DLC's for the game, GOTY and other editions, companion apps, etc.
rawg.games_additions_list({
"game_pk": ""
}, context)
Input
- input
object
- page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page. - game_pk required
string
- page
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Game
- count required
games.game_pk.development_team.get
Get a list of individual creators that were part of the development team.
rawg.games.game_pk.development_team.get({
"game_pk": ""
}, context)
Input
- input
object
- ordering
string
: Which field to use when ordering the results. - page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page. - game_pk required
string
- ordering
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items GamePersonList
- count required
games.game_pk.game_series.get
Get a list of games that are part of the same series.
rawg.games.game_pk.game_series.get({
"game_pk": ""
}, context)
Input
- input
object
- page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page. - game_pk required
string
- page
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Game
- count required
games.game_pk.parent_games.get
Get a list of parent games for DLC's and editions.
rawg.games.game_pk.parent_games.get({
"game_pk": ""
}, context)
Input
- input
object
- page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page. - game_pk required
string
- page
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Game
- count required
games_screenshots_list
Get screenshots for the game.
rawg.games_screenshots_list({
"game_pk": ""
}, context)
Input
- input
object
- ordering
string
: Which field to use when ordering the results. - page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page. - game_pk required
string
- ordering
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items ScreenShot
- count required
games_stores_list
Get links to the stores that sell the game.
rawg.games_stores_list({
"game_pk": ""
}, context)
Input
- input
object
- ordering
string
: Which field to use when ordering the results. - page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page. - game_pk required
string
- ordering
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items GameStoreFull
- count required
games_read
Get details of the game.
rawg.games_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Game.
- id required
Output
- output GameSingle
games_achievements_read
Get a list of game achievements.
rawg.games_achievements_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Game.
- id required
Output
- output ParentAchievement
games_movies_read
Get a list of game trailers.
rawg.games_movies_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Game.
- id required
Output
- output Movie
games_reddit_read
Get a list of most recent posts from the game's subreddit.
rawg.games_reddit_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Game.
- id required
Output
- output Reddit
games_suggested_read
Get a list of visually similar games, available only for business and enterprise API users.
rawg.games_suggested_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Game.
- id required
Output
- output GameSingle
games_twitch_read
Get streams on Twitch associated with the game, available only for business and enterprise API users.
rawg.games_twitch_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Game.
- id required
Output
- output Twitch
games_youtube_read
Get videos from YouTube associated with the game, available only for business and enterprise API users.
rawg.games_youtube_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Game.
- id required
Output
- output Youtube
genres_list
Get a list of video game genres.
rawg.genres_list({}, context)
Input
- input
object
- ordering
string
: Which field to use when ordering the results. - page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page.
- ordering
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Genre
- count required
genres_read
Get details of the genre.
rawg.genres_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Genre.
- id required
Output
- output GenreSingle
platforms_list
Get a list of video game platforms.
rawg.platforms_list({}, context)
Input
- input
object
- ordering
string
: Which field to use when ordering the results. - page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page.
- ordering
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Platform
- count required
platforms_lists_parents_list
For instance, for PS2 and PS4 the “parent platform” is PlayStation.
rawg.platforms_lists_parents_list({}, context)
Input
- input
object
- ordering
string
: Which field to use when ordering the results. - page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page.
- ordering
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items PlatformParentSingle
- count required
platforms_read
Get details of the platform.
rawg.platforms_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Platform.
- id required
Output
- output PlatformSingle
publishers_list
Get a list of video game publishers.
rawg.publishers_list({}, context)
Input
- input
object
- page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page.
- page
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Publisher
- count required
publishers_read
Get details of the publisher.
rawg.publishers_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Publisher.
- id required
Output
- output PublisherSingle
stores_list
Get a list of video game storefronts.
rawg.stores_list({}, context)
Input
- input
object
- ordering
string
: Which field to use when ordering the results. - page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page.
- ordering
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Store
- count required
stores_read
Get details of the store.
rawg.stores_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Store.
- id required
Output
- output StoreSingle
tags_list
Get a list of tags.
rawg.tags_list({}, context)
Input
- input
object
- page
integer
: A page number within the paginated result set. - page_size
integer
: Number of results to return per page.
- page
Output
- output
object
- count required
integer
- next
string
- previous
string
- results required
array
- items Tag
- count required
tags_read
Get details of the tag.
rawg.tags_read({
"id": 0
}, context)
Input
- input
object
- id required
integer
: A unique integer value identifying this Tag.
- id required
Output
- output TagSingle
Definitions
Developer
- Developer
object
- games_count
integer
- id
integer
- image_background
string
- name required
string
- slug
string
- games_count
DeveloperSingle
- DeveloperSingle
object
- description
string
- games_count
integer
- id
integer
- image_background
string
- name required
string
- slug
string
- description
Game
- Game
object
- added
integer
- added_by_status
object
- background_image
string
- esrb_rating
object
- id
integer
- name
string
(values: Everyone, Everyone 10+, Teen, Mature, Adults Only, Rating Pending) - slug
string
(values: everyone, everyone-10-plus, teen, mature, adults-only, rating-pending)
- id
- id
integer
- metacritic
integer
- name
string
- platforms
array
- items
object
- platform
object
- id
integer
- name
string
- slug
string
- id
- released_at
string
- requirements
object
- minimum
string
- recommended
string
- minimum
- platform
- items
- playtime
integer
: in hours - rating required
number
- rating_top
integer
- ratings
object
- ratings_count
integer
- released
string
- reviews_text_count
string
- slug
string
- suggestions_count
integer
- tba
boolean
- updated
string
- added
GamePersonList
- GamePersonList
object
- games_count
integer
- id
integer
- image
string
- image_background
string
- name required
string
- slug
string
- games_count
GamePlatformMetacritic
- GamePlatformMetacritic
object
- metascore
integer
- url
string
- metascore
GameSingle
- GameSingle
object
- achievements_count
integer
- added
integer
- added_by_status
object
- additions_count
integer
- alternative_names
array
- items
string
- items
- background_image
string
- background_image_additional
string
- creators_count
integer
- description
string
- esrb_rating
object
- id
integer
- name
string
(values: Everyone, Everyone 10+, Teen, Mature, Adults Only, Rating Pending) - slug
string
(values: everyone, everyone-10-plus, teen, mature, adults-only, rating-pending)
- id
- game_series_count
integer
- id
integer
- metacritic
integer
- metacritic_platforms
array
- items GamePlatformMetacritic
- metacritic_url
string
: For example "http://www.metacritic.com/game/playstation-4/the-witcher-3-wild-hunt" - movies_count
integer
- name
string
- name_original
string
- parent_achievements_count
string
- parents_count
integer
- platforms
array
- items
object
- platform
object
- id
integer
- name
string
- slug
string
- id
- released_at
string
- requirements
object
- minimum
string
- recommended
string
- minimum
- platform
- items
- playtime
integer
: in hours - rating required
number
- rating_top
integer
- ratings
object
- ratings_count
integer
- reactions
object
- reddit_count
integer
- reddit_description
string
- reddit_logo
string
- reddit_name
string
- reddit_url
string
: For example "https://www.reddit.com/r/uncharted/" or "uncharted" - released
string
- reviews_text_count
string
- screenshots_count
integer
- slug
string
- suggestions_count
integer
- tba
boolean
- twitch_count
string
- updated
string
- website
string
- youtube_count
string
- achievements_count
GameStoreFull
- GameStoreFull
object
- game_id
string
- id
integer
- store_id
string
- url required
string
- game_id
Genre
- Genre
object
- games_count
integer
- id
integer
- image_background
string
- name required
string
- slug
string
- games_count
GenreSingle
- GenreSingle
object
- description
string
- games_count
integer
- id
integer
- image_background
string
- name required
string
- slug
string
- description
Movie
- Movie
object
- data
object
- id
integer
- name
string
- preview
string
- data
ParentAchievement
- ParentAchievement
object
- description
string
- id
integer
- image
string
- name
string
- percent
string
- description
Person
- Person
object
- games_count
integer
- id
integer
- image
string
- image_background
string
- name required
string
- slug
string
- games_count
PersonSingle
- PersonSingle
object
- description
string
- games_count
integer
- id
integer
- image
string
- image_background
string
- name required
string
- rating
string
- rating_top
integer
- reviews_count
integer
- slug
string
- updated
string
- description
Platform
- Platform
object
- games_count
integer
- id
integer
- image
string
- image_background
string
- name required
string
- slug
string
- year_end
integer
- year_start
integer
- games_count
PlatformParentSingle
- PlatformParentSingle
object
- id
integer
- name required
string
- platforms required
array
- items Platform
- slug
string
- id
PlatformSingle
- PlatformSingle
object
- description
string
- games_count
integer
- id
integer
- image
string
- image_background
string
- name required
string
- slug
string
- year_end
integer
- year_start
integer
- description
Position
- Position
object
- id
integer
- name
string
- slug
string
- id
Publisher
- Publisher
object
- games_count
integer
- id
integer
- image_background
string
- name required
string
- slug
string
- games_count
PublisherSingle
- PublisherSingle
object
- description
string
- games_count
integer
- id
integer
- image_background
string
- name required
string
- slug
string
- description
- Reddit
object
- created
string
- id
integer
- image
string
- name
string
- text
string
- url
string
- username
string
- username_url
string
- created
ScreenShot
- ScreenShot
object
- height
integer
- hidden
boolean
: Set image as hidden or visible. - id
integer
- image
string
: An image file with size up to 20 MB. - width
integer
- height
Store
- Store
object
- domain
string
- games_count
integer
- id
integer
- image_background
string
- name required
string
- slug
string
- domain
StoreSingle
- StoreSingle
object
- description
string
- domain
string
- games_count
integer
- id
integer
- image_background
string
- name required
string
- slug
string
- description
Tag
- Tag
object
- games_count
integer
- id
integer
- image_background
string
- language
string
- name required
string
- slug
string
- games_count
TagSingle
- TagSingle
object
- description
string
- games_count
integer
- id
integer
- image_background
string
- name required
string
- slug
string
- description
Twitch
- Twitch
object
- created
string
- description
string
- external_id
integer
- id
integer
- language
string
- name
string
- published
string
- thumbnail
string
- view_count
integer
- created
Youtube
- Youtube
object
- channel_id
string
- channel_title
string
- comments_count
integer
- created
string
- description
string
- dislike_count
integer
- external_id
string
- favorite_count
integer
- id
integer
- like_count
integer
- name
string
- thumbnails
object
- view_count
integer
- channel_id