pubgapi 0.1.5

  • Example
  • Installing
  • Versions
  • 62


A PUBGAPI Framework


A simple usage example:

import 'package:pubgapi/pubgapi.dart';

main() {
  var api = PUBGAPI($APIKEY);

  await api.getPlayerByName($name);
  await api.getSeasonInfo();
  await api.getSeasonByPlayerId();
  await api.getMatchById($matchID);

Player matches also support fetching the telemetry data for that match. So if you have a match object you can simply

var match = await api.getMatchById($matchID);
await match.loadTelemetryData(// Pass the PUBGAPI Instance);


If you're uncertain how to use the API, feel free to browse the unit tests. Also to run the tests just provide your own API key to the tests.

Features and bugs

Please file feature requests and bugs in the issues.


  • Initial version, created by Stagehand


import 'package:pubgapi/pubgapi.dart';

main() {
    .then((player) {
    .catchError((e) => print(e));

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  pubgapi: "^0.1.5"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:pubgapi/pubgapi.dart';
Version Uploaded Documentation Archive
0.1.5 May 17, 2018 Go to the documentation of pubgapi 0.1.5 Download pubgapi 0.1.5 archive
0.1.4 May 15, 2018 Go to the documentation of pubgapi 0.1.4 Download pubgapi 0.1.4 archive
0.1.3 May 15, 2018 Go to the documentation of pubgapi 0.1.3 Download pubgapi 0.1.3 archive
0.1.2 May 15, 2018 Go to the documentation of pubgapi 0.1.2 Download pubgapi 0.1.2 archive
0.1.1 May 15, 2018 Go to the documentation of pubgapi 0.1.1 Download pubgapi 0.1.1 archive
0.1.0 May 15, 2018 Go to the documentation of pubgapi 0.1.0 Download pubgapi 0.1.0 archive
0.0.8 May 15, 2018 Go to the documentation of pubgapi 0.0.8 Download pubgapi 0.0.8 archive
0.0.7 May 15, 2018 Go to the documentation of pubgapi 0.0.7 Download pubgapi 0.0.7 archive
0.0.6 May 15, 2018 Go to the documentation of pubgapi 0.0.6 Download pubgapi 0.0.6 archive
0.0.5 May 15, 2018 Go to the documentation of pubgapi 0.0.5 Download pubgapi 0.0.5 archive

All 14 versions...


We analyzed this package on Jul 13, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
25 / 100
Code health derived from static analysis. [more]
99 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:pubgapi/pubgapi.dart.


  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 9 hints.

    Run dartfmt to format lib/pubgapi.dart.

    Run dartfmt to format lib/src/models/match.dart.

    Similar analysis of the following files failed:

    • lib/src/models/player.dart (hint)
    • lib/src/models/season.dart (hint)
    • lib/src/models/telemetry.dart (hint)
    • lib/src/pubgapi_base.dart (hint)


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <=2.0.0
http ^0.11.3+16 0.11.3+17
json_annotation ^0.2.3 0.2.9
Transitive dependencies
async 2.0.7
charcode 1.1.2
collection 1.14.10
http_parser 3.1.2
path 1.6.1
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
Dev dependencies
build_runner ^0.8.8
json_serializable ^0.5.0
test ^0.12.0