All Projects → danger89 → metacritic_api

danger89 / metacritic_api

Licence: Apache-2.0 license
PHP Metacritic API - Mirrored by my GitLab

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to metacritic api

Instagram-Scraper-2021
Scrape Instagram content and stories anonymously, using a new technique based on the har file (No Token + No public API).
Stars: ✭ 57 (+83.87%)
Mutual labels:  scraper, webscraping
newsemble
API for fetching data from news websites.
Stars: ✭ 42 (+35.48%)
Mutual labels:  scraper, webscraping
Rcrawler
An R web crawler and scraper
Stars: ✭ 274 (+783.87%)
Mutual labels:  scraper, webscraping
newspaperjs
News extraction and scraping. Article Parsing
Stars: ✭ 59 (+90.32%)
Mutual labels:  scraper, webscraping
Youtube Projects
This repository contains all the code I use in my YouTube tutorials.
Stars: ✭ 144 (+364.52%)
Mutual labels:  scraper, webscraping
Mimo-Crawler
A web crawler that uses Firefox and js injection to interact with webpages and crawl their content, written in nodejs.
Stars: ✭ 22 (-29.03%)
Mutual labels:  scraper, webscraping
Xidel
Command line tool to download and extract data from HTML/XML pages or JSON-APIs, using CSS, XPath 3.0, XQuery 3.0, JSONiq or pattern matching. It can also create new or transformed XML/HTML/JSON documents.
Stars: ✭ 335 (+980.65%)
Mutual labels:  scraper, webscraping
bing-ip2hosts
bingip2hosts is a Bing.com web scraper that discovers websites by IP address
Stars: ✭ 99 (+219.35%)
Mutual labels:  scraper, webscraping
Django Dynamic Scraper
Creating Scrapy scrapers via the Django admin interface
Stars: ✭ 1,024 (+3203.23%)
Mutual labels:  scraper, webscraping
Huginn
Create agents that monitor and act on your behalf. Your agents are standing by!
Stars: ✭ 33,694 (+108590.32%)
Mutual labels:  scraper, webscraping
Autoscraper
A Smart, Automatic, Fast and Lightweight Web Scraper for Python
Stars: ✭ 4,077 (+13051.61%)
Mutual labels:  scraper, webscraping
BookingScraper
🌎 🏨 Scrape Booking.com 🏨 🌎
Stars: ✭ 68 (+119.35%)
Mutual labels:  scraper, webscraping
Mailinglistscraper
A python web scraper for public email lists.
Stars: ✭ 19 (-38.71%)
Mutual labels:  scraper, webscraping
Polite
Be nice on the web
Stars: ✭ 253 (+716.13%)
Mutual labels:  scraper, webscraping
robotstxt
robots.txt file parsing and checking for R
Stars: ✭ 65 (+109.68%)
Mutual labels:  scraper, webscraping
AzurLaneWikiScrapers
A console application that can scrape the Azur Lane wiki and export the data to Json files
Stars: ✭ 12 (-61.29%)
Mutual labels:  scraper
WaGpScraper
A Python Oriented tool to Scrap WhatsApp Group Link using Google Dork it Scraps Whatsapp Group Links From Google Results And Gives Working Links.
Stars: ✭ 18 (-41.94%)
Mutual labels:  scraper
ammobin-client
client for https://ammobin.ca
Stars: ✭ 18 (-41.94%)
Mutual labels:  scraper
Instagram-Comments-Scraper
Instagram comment scraper using python and selenium. Save the comments into excel.
Stars: ✭ 73 (+135.48%)
Mutual labels:  scraper
Trakt-Userscripts
Userscripts to improve and add features to Trakt.tv
Stars: ✭ 39 (+25.81%)
Mutual labels:  metacritic

Metacritic API

Using this Metacritic API, you are able to search games on metacritic.com.

It will give you back the metacritic score, users score, genres, rating, developers and much more (see below for an example). The output is in JSON format, so it is easy to parse in both PHP or other languages.

By default it uses the URL prefix: "http://www.metacritic.com/game/pc/". If you want to search for Playstation 3 games, just change it to: "http://www.metacritic.com/game/playstation-3". See metacritic.php file.

Example

Searching on the PC game called "The Elder Scrolls V: Skyrim", will give the following JSON output:

{
  "name": "The Elder Scrolls V: Skyrim",
  "metascritic_score": 94,
  "users_score": 8.2,
  "rating": "M",
  "genres": [
    "Role-Playing",
    "First-Person",
    "First-Person",
    "Western-Style"
  ],
  "developers": [
    "Bethesda Game Studios"
  ],
  "publishers": "Bethesda Softworks",
  "release_date": "Nov 10, 2011",
  "also_on": [
    "PlayStation 3",
    "Xbox 360"
  ],
  "also_on_url": [
    "/game/playstation-3/the-elder-scrolls-v-skyrim",
    "/game/xbox-360/the-elder-scrolls-v-skyrim"
  ],
  "thumbnail_url": "http://static.metacritic.com/images/products/games/7/5988ee04196a686e107b46174f94a3ae-98.jpg",
  "cheat_url": "http://www.gamefaqs.com/console/pc/code/615805.html"
}

On error

When for some reason the page couldn't be loaded / found or parsed, you will get the following JSON response:

{"error":"Page could not be loaded!"}

Or when metacritic.php is directly called, without input you will get: {"error": "Game title is empty"}

Code example

Please, see example.php

Another way to access the API is to directly call metacritic.php via the website URL:

metacritic.php?game_title=Halo%202

Be-aware that the game title needs to be URL encoded to work.

Have fun!

CI/CD

Code quality is checked in GitLab CI/CD, to avoid regression.

Currently in the pipeline:

  • Psalm - Static analysis tool for PHP
  • Phpcs - PHP coding style standard (phpcbf command for auto-fix)
  • Phpmetrics - PHP metrics for complexity, object oriented, maintainability and more.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].