Skip to content

A module to search and scrape Xbox Gamertag. This is not sponsored, supported, or affiliated with Xbox.

License

Notifications You must be signed in to change notification settings

DrelezTM/XboxGamertag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XboxGamertag

@xboxgamertag

XboxGamertag

A module to search and scrape Xbox Gamertag. This is not sponsored, supported, or affiliated with Xbox.

Installation 📑

  • Install Modules
    npm i xboxgamertag

How to Use 🔭

  • With Asynchronous

    • ESModule
    import xboxGamertag from 'xboxgamertag';
    
    async function main(query) {
      const response = await xboxGamertag(query);
      console.log(response);
    }
    
    main("Drelez");
    • CommonJS
    const xboxGamertag = require('xboxgamertag');
    
    async function main(query) {
      const response = await xboxGamertag(query);
      console.log(response);
    }
    
    main("Drelez");
  • Without Asynchronous

    • ESModule
    import xboxGamertag from 'xboxgamertag';
    
    function main(query) {
      xboxGamertag(query).then((response) => {
        console.log(response);
      });
    }
    
    main("Drelez");
    • CommonJS
    const xboxGamertag = require('xboxgamertag');
    
    function main(query) {
      xboxGamertag(query).then((response) => {
        console.log(response);
      });
    }
    
    main("Drelez");

Response 📨

  • Example Response
    {
      "message": "Successfully found Gamertag!",
      "profile": {
          "gamertag": "Drelez",
          "avatar": "https://images.weserv.nl/?url=https://images-eds-ssl.xboxlive.com/image?url=wHwbXKif8cus8csoZ03RW_ES.ojiJijNBGRVUbTnZKsoCCCkjlsEJrrMqDkYqs3Mr4hSPR51EO7YOcBVc07Tk5bdOFLOrIT2PBk7nzYYihZ287x72g7AkxO2sByN5BI1NuLBXqDrwdtEOeZKFtZfwvr5b_6aoOARmXS78pvHwyU-&format=png&maxage=1d&output=webp&w=90&h=90",
          "detail": {
              "gamerscore": "70",
              "gamesplayed": "1"
          },
          "history": [
              {
                  "gamename": "Minecraft for Android",
                  "lastplayed": "Last played 1 year ago",
                  "platform": "Android",
                  "gamescore": "70 / 2870",
                  "achievement": "6 unlocked",
                  "progress": "2.0%"
              }
          ]
      }
    }

Built With 🛠

Error or Bug 🐞

License 📜

About

A module to search and scrape Xbox Gamertag. This is not sponsored, supported, or affiliated with Xbox.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published