API Key in header?

Thanks. I’ll take a look at those links.

I ended up finding this, which I think is what I need but there’s a lot on there that i’m not familiar with so I might need to do some more research.

var apiKey = "YOUR-API-KEY-HERE";

var xhr = new XMLHttpRequest();
xhr.open("GET", "https://www.bungie.net/platform/Destiny/Manifest/InventoryItem/1274330687/", true);
xhr.setRequestHeader("X-API-Key", apiKey);

xhr.onreadystatechange = function(){
 if(this.readyState === 4 && this.status === 200){
  var json = JSON.parse(this.responseText);
  console.log(json.Response.data.inventoryItem.itemName); //Gjallarhorn
 }
}

xhr.send();

Edit -
I’ve been seeing a lot of things about OAuth Authentication, i’m not sure if that is something that needs to be included but I did get an ‘OAuth Authorization URL’ and ‘OAuth client_id’ when I generated my key. I also found this link

Everything seems well documented, so i’m sure the answer is out there somewhere but I could have the answer staring me in the face and wouldn’t even know.

1 Like