Giter Site home page Giter Site logo

ign-search-proxy's Introduction

IGN Search Proxy

Small google search proxy for ign.com, ign.com/games, ign.com/articles and ign.com/wikis

Quick Start


bundle install
foreman start

visit http://localhost:3004

Deploy to Production

Deploy on Railway

API

There is an instance running at https://ign-search.acidtib.cloud

Search Wiki Guides

GET /api/v1/search/wiki
params: 
		q = search query
		all = return all results, default is 0

examples:

# by default only 1 matching result is returned

GET /api/v1/search/wiki?q=Cyberpunk 2077

response-
{
  "data": [
    {
      "title": "Cyberpunk 2077 Wiki Guide - IGN",
      "url": "https://www.ign.com/wikis/cyberpunk-2077/"
    }
  ]
}

# search by game objective

GET /api/v1/search/wiki?q=Cyberpunk 2077 The Heist

response-
{
  "data": [
    {
      "title": "The Heist - Cyberpunk 2077 Wiki Guide - IGN",
      "url": "https://www.ign.com/wikis/cyberpunk-2077/The_Heist"
    }
  ]
}
# use all=1 to get all matches

GET /api/v1/search/wiki?q=Cyberpunk 2077&all=1

response-
{
  "data": [
    {
      "title": "Cyberpunk 2077 Wiki Guide - IGN",
      "url": "https://www.ign.com/wikis/cyberpunk-2077/"
    },
    {
      ....
    },
  ]
}

Search Games

GET /api/v1/search/game
params: 
		q = search query
		all = return all results, default is 0

examples:

# by default only 1 matching result is returned

GET /api/v1/search/game?q=Scorn

response-
{
  "data": [
    {
      "title": "Scorn - IGN",
      "url": "https://www.ign.com/games/scorn"
    }
  ]
}

Search Articles

GET /api/v1/search/article
params: 
		q = search query
		all = return all results, default is 0

examples:

# by default only 1 matching result is returned

GET /api/v1/search/article?q=Scorn

response-
{
  "data": [
    {
      "title": "Scorn Review - IGN",
      "url": "https://www.ign.com/articles/scorn-review"
    }
  ]
}

Search Entire Site

GET /api/v1/search/site
params: 
		q = search query
		all = return all results, default is 0

examples:

# by default only 1 matching result is returned

GET /api/v1/search/site?q=Cyberpunk 2077

response-
{
  "data": [
    {
      "title": "Cyberpunk 2077 [News] - IGN",
      "url": "https://www.ign.com/games/cyberpunk-2077"
    }
  ]
}

ign-search-proxy's People

Contributors

acidtib avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.