1.4.4 • Published 5 months ago

supercell-api-scraper v1.4.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

��# supercell-api-scraper

An easy to use supercell api scraper with custom outputs and extra info.

Install

npm i supercell-api-scraper

Setup

IMPORTANT NOTICE: this scraper does not come with api tokens, as they are IP specific, get your own tokens from the developer pages of each game!

import SupercellHandler from 'supercell-api-scraper';

new SupercellHandler({
	tokens:{
		ClashOfClans: "Your API token",
		ClashRoyale: "Your API token",
		Brawl Stars: "Your API token"
	}
})

Get your API tokens for each game on the following sites.

Methods

Player

These are methods all to do with players.

findPlayer

import { Player } from "supercell-api-scraper";

await Player.findPlayer("#Y99CCLC0R");

This will return an array with all the player objects with the same tag. In this object you can find the following:

[
	{
		"name": "TheDummi",
		"tag": "#Y99CCLC0R",
		"game": "ClashOfClans",
		"formattedGame": "Clash of Clans"
	}
]

fetchChief

import { Player } from "supercell-api-scraper";

await Player.fetchChief("#Y99CCLC0R");

This will return an object with everything the Clash of Clans API provides. Before giving you the data I have made some modifications to the data and categorized it more.

fetchKing

import { Player } from "supercell-api-scraper";

await Player.fetchKing("#2ULY0CUPY");

This will return an object with everything the Clash Royale API provides.

fetchBrawler

This will return an object with everything the Brawl Stars API provides.

import { Player } from "supercell-api-scraper";

await Player.fetchBrawler("#QYGG9LL");

Notes

  • compatible with typescript and javascript
  • requires esm
1.4.4

5 months ago

1.4.3

5 months ago

1.4.2

5 months ago

1.2.0

2 years ago

1.4.1

1 year ago

1.3.2

2 years ago

1.4.0

1 year ago

1.3.1

2 years ago

1.3.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago