Sign inSign up

phalcode/rawg-to-steam-redirect

By phalcode

•Updated about 2 years ago

Drop-in replacement for api.rawg.io that redirects requests to the publicly available Steam API

Image
Web servers
0

3.6K

phalcode/rawg-to-steam-redirect repository overview

⁠RAWG to Steam Redirect 💬🚂

All credit goes to Toylerrr⁠ who conceived the idea and initiated this project.

Welcome to the RAWG to Steam Redirect API, a drop-in replacement for api.rawg.io that seamlessly redirects requests to the publicly available Steam API.

⁠Motivation 🚀

This Project was kickstarted by our trusted community member Toylerrr⁠ to have a quick replacement for the currently unreliable and unmaintained RAWG.IO⁠ API in GameVault⁠.

The transition from GameVault to move off of RAWG will likely require a significant amount of time and effort, prompting the need for a swift resolution.

⁠Supported APIs 🤖

⁠/api/games?search=query

Use this endpoint to search for games.

⁠Parameters
  • search: The query string to search for.
    • in: query
    • required: true
  • key: A Steam Web API Key⁠. Less data will be returned if not provided.
    • in: query
    • required: false
⁠/api/games/:id

This endpoint retrieves detailed information about a specific game.

⁠Parameters
  • id: The Steam ID of the game to retrieve.
    • in: path
    • required: true
  • key: A Steam Web API Key⁠. Less data will be returned if not provided.
    • in: query
    • required: false

⁠Setup ⚙️

⁠Hosted Instance ☁️

Access a publicly available hosted instance by Phalcode⁠ is available at https://rawg2steam.phalco.de⁠.

⁠Setting Up Your Own Instance 🛠️

You can easily set up the API yourself using Docker-Compose. Just add the following to your docker-compose.yml file:

version: "3.8"
services:
  rawg-to-steam-redirect:
    image: phalcode/rawg-to-steam-redirect:latest
    ports:
      - "80:9999"
    restart: always

⁠Tips for Usage with GameVault 🎲

  • Set the RAWG_API_URL environment variable to https://rawg2steam.phalco.de/api to redirect the requests to the hosted instance.
  • Set the RAWG_API_KEY environment variable to a Steam Web API Key if you have one. Otherwise, less data will be returned.
  • Set the RAWG_API_CACHE_DAYS environment variable to 36500, so GameVault does not try to search for rawg ids of existing games on steam for the next 100 years.

⁠Credit 💡

Tag summary

Content type

Image

Digest

sha256:1740bf5d0…

Size

371.7 MB

Last updated

about 2 years ago

docker pull phalcode/rawg-to-steam-redirect