Bungie-net / api

Resources for the Bungie.net API
Other
1.21k stars 92 forks source link
bnet bungie destiny openapi-spec

The Bungie.Net API

Full Documentation: https://bungie-net.github.io/multi/index.html

Documentation as one single, gigantic page: https://bungie-net.github.io

This section will be added to as time goes by - we're working with it as we go!

2022-12-06 Update for the Season of the Seraph

2022-08-23 Update for the Season of Plunder

2022-07-19 Update for Solstice 2022

2022-05-24 Update for the Season of the Haunted

2022-05-01 Update for housekeeping

2022-02-22 Update for The Witch Queen

2022-01-06 Update for Mapped Definition Attributes

Added hash-to-definition-type mapping attributes that were missing for many contract class properties.

2021-12-07 Update for Bungie's 30th Anniversary

Added a new InsertSocketPlugFree API for 'free and reversible' socket actions available to 3rd-party Destiny 2 apps (no new application scopes required).

2021-11-18 Update for Bungie Name Search

Added new Bungie Name search APIs with POST requests for special characters.

2021-10-12 Update for Uninstanced Item Perks

Added support for perk state components on uninstanced items.

2021-09-03 Update for Display Name Search and Stasis Energy

Added docs for the new Bungie Name search API and the Stasis Energy type enum value.

2021-08-24 Update for Cross Play and the Season of the Lost

Added Bungie Names and Bungie Friends.

2021-05-25 Update for Vendor String Variables

Added the 'StringVariables' component option to the D2 Vendor APIs.

2021-05-11 Update for the Season of the Splicer

Includes reward item visibility and string variables.

2021-02-09 Update for the Season of the Chosen

Includes seasonal challenges, item flavor text, gilded titles, record interval rewards, and season preview definitions.

2020-12-08 Update for Destiny 2 version 3.0.1

Includes 'ApiPurchasable' values for vendor items, and 'currentlyCanRoll' for randomized socket plugs.

2020-11-19 Update for Ghost Energy

Includes new enum values for Ghost and Subclass energy types.

2020-11-10 Update for Beyond Light and the Season of the Hunt

Includes changes for Stasis, item icon watermarks, 'Active' and 'Legacy' Triumphs, and scored presentation nodes.

Caveat - The new energy type for Ghost mods is not yet implemented.

2020-07-07 Update for Bungie Day 2020

Includes changes for the 'SetTrackedState' API and the current season reward power cap.

2020-06-09 Update for Season of Arrivals

Includes changes for Season of Arrivals, item versions, and power caps.

2020-03-10 Update for Season of the Worthy

Includes changes for Season of the Worthy, Trials of Osiris, and Stat Trackers (aka Metrics).

2020-02-13 Late Winter Refresh

Upkeep update. Includes traits info and new activity types.

2019-12-05 Winter Wishlist! File your requests here!

Go here for more information: https://github.com/Bungie-net/api/issues/1158

We would love your input! Even though we will have a very limited amount of time to work on improvements over the upcoming holiday season, it'll still be useful to know what you folks consider to be the highest priorities so that we can hopefully push in those directions in the coming year!

2019-09-26 Pre-release Shadowkeep API Changes

Head here for more information: https://github.com/Bungie-net/api/wiki/2.4.0-(Shadowkeep)-API-Changes

I'm New to the API. What can I do with it?

How do I register to use the API?

https://github.com/Bungie-net/api/wiki/Bungie.net-Application-Portal

Are there any restrictions on the API?

Right now the API doesn’t require a User-Agent header for requests and we haven’t set a standard for one. We will continue the policy of not requiring one for the foreseeable future. Starting now we do ask you send a User-Agent header as a best practice. Your agent string should include the app name and ap-id with an optional web url and/or email address. A suggested format is “AppName/Version AppId/appIdNum (+webUrl;contactEmail)”

For example: User-Agent: Really Cool App/1.0 AppId/##### (+www.example.com;contact@example.com)

It would be helpful to us and may also allow us to provide more detailed metrics in the future to app owners who provide one. On the off chance we need to contact you about your app this will help us reach out to you and may prevent us from having to disable an app (though only as a last resort!).

What about the Destiny 1 API?

I'm a Destiny 1 API Veteran. What's new in the API?

Swagger/OpenAPI Specs (or, how to generate your own clients for the BNet API)

NOTE: There are currently bugs in the generated documentation: it worked well enough to build the HTML documentation you'll see at the links above, but users are reporting a variety of issues - and in some cases, missing data - when they go to generate clients. Due to severe time constraints, I've not been able to prioritize fixing bugs in the documentation. It's still on our backlog, but for now any client generators you build will have to work with what we've got.

Extension Properties on OpenAPI Specs (or, how to generate much cooler clients for the BNet API if you want to take the time to do so)

FAQ

Known Issues