Metacritic Scraper
Try for free
3 days trial then $25.00/month - No credit card required now
View all Actors
Metacritic Scraper
epctex/metacritic-scraper
Try for free
3 days trial then $25.00/month - No credit card required now
Extract any data from Metacritic right away! Games, Music, Movies, TV Shows, People, Companies, and more information are ready for you. Get reviews immediately! Search for any keyword, filter by your needs, or get listing pages! Export your data by XML, JSON, CSV, Excel, or HTML
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
Node.js
Python
curl
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5 token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10 "search": "last of us",
11 "startUrls": [
12 "https://www.metacritic.com/company/rca",
13 "https://www.metacritic.com/music/sos/sza",
14 "https://www.metacritic.com/tv/the-witcher-blood-origin",
15 "https://www.metacritic.com/movie/whitney-houston-i-wanna-dance-with-somebody",
16 "https://www.metacritic.com/game/playstation-5/elden-ring",
17 "https://www.metacritic.com/person/robert-downey-jr",
18 "https://www.metacritic.com/search/all/hel/results",
19 "https://www.metacritic.com/search/person/hel/results",
20 "https://www.metacritic.com/search/game/hel/results",
21 "https://www.metacritic.com/browse/movies/score/metascore/all/filtered/netflix",
22 "https://www.metacritic.com/browse/tv/score/metascore/year/filtered?sort=desc&view=detailed",
23 "https://www.metacritic.com/browse/games/genre/date/action/ps4"
24 ],
25 "maxItems": 20,
26 "endPage": 1,
27 "extendOutputFunction": ($) => { return {} },
28 "customMapFunction": (object) => { return {...object} },
29 "proxy": {
30 "useApifyProxy": true
31 }
32};
33
34(async () => {
35 // Run the Actor and wait for it to finish
36 const run = await client.actor("epctex/metacritic-scraper").call(input);
37
38 // Fetch and print Actor results from the run's dataset (if any)
39 console.log('Results from dataset');
40 console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41 const { items } = await client.dataset(run.defaultDatasetId).listItems();
42 items.forEach((item) => {
43 console.dir(item);
44 });
45})();
46
47// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs