Discover/Light API
live

Light APIlight.gg

Access Destiny 2 weapon stats, perk popularity, god roll rankings, and community reviews from Light.gg via 4 structured endpoints.

Endpoint health
verified 4d ago
get_weapon_details
search_weapons
get_popular_weapons
3/3 passing latest checkself-healing
Endpoints
4
Updated
21d ago

What is the Light API?

The Light.gg API exposes 4 endpoints covering Destiny 2 weapon data drawn from Light.gg and the Bungie API, including full weapon stats, perk popularity percentages, popular trait combinations, and community reviews. The get_weapon_details endpoint returns over 8 distinct fields per weapon — stats array, perks_popularity, popular_trait_combinations, community_insight, and user reviews — keyed by Bungie item hash ID.

Try it
Search term for weapon or item name (e.g. 'ace of spades', 'hand cannon')
api.parse.bot/scraper/8619cb88-88b8-490c-94fb-0c3b8b1b8f28/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/8619cb88-88b8-490c-94fb-0c3b8b1b8f28/search_weapons?query=ace+of+spades' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace light-gg-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: Light.gg Destiny 2 weapon data — search, inspect, rank."""
from parse_apis.light_gg___destiny_2_weapon_api import LightGG, WeaponNotFound

client = LightGG()

# Search weapons by name — limit caps total items returned.
for result in client.weapons.search(query="hand cannon", limit=5):
    print(result.name, result.url)

# Drill into the first result's full details.
hit = client.weapons.search(query="ace of spades", limit=1).first()
if hit:
    weapon = hit.details()
    print(weapon.name, weapon.item_type)
    for stat in weapon.stats[:3]:
        print(f"  {stat.name}: {stat.value}")

# Browse the current popular weapons ranking.
for popular in client.weapons.popular(limit=5):
    print(f"#{popular.rank} {popular.name}")

# Fetch a weapon by ID with typed-error handling.
try:
    ace = client.weapons.get(item_id="347366834")
    print(ace.name, ace.item_type, len(ace.reviews), "reviews")
except WeaponNotFound as exc:
    print(f"Weapon not found: {exc.item_id}")

print("exercised: weapons.search / details / weapons.popular / weapons.get")
All endpoints · 4 totalmissing one? ·

Full-text search over light.gg's weapon and item database by name. Returns matching items with their Bungie hash IDs and light.gg URLs. Results include weapons, catalysts, ornaments, and other named items whose title matches the query.

Input
ParamTypeDescription
queryrequiredstringSearch term for weapon or item name (e.g. 'ace of spades', 'hand cannon')
Response
{
  "type": "object",
  "fields": {
    "results": "array of matching weapon/item summaries with id, name, url"
  },
  "sample": {
    "data": {
      "results": [
        {
          "id": "347366834",
          "url": "https://www.light.gg/db/items/347366834",
          "name": "Ace of Spades"
        }
      ]
    },
    "status": "success"
  }
}

About the Light API

Weapon Search and Lookup

The search_weapons endpoint accepts a free-text query parameter (e.g. 'ace of spades' or 'hand cannon') and returns an array of matching items, each with an id, name, and url. The id values returned here are Bungie item hash IDs, which feed directly into get_weapon_details as the item_id parameter.

Detailed Weapon Data

get_weapon_details is the core endpoint. Given a numeric Bungie item hash, it returns the weapon's stats array (each stat includes name, value, and hash), perks_popularity (each perk with its community adoption percentage), popular_trait_combinations (perk pairs with a popularity string), community_insight text, user reviews with ratings and comments, and metadata like itemTypeDisplayName and flavor description. This makes it straightforward to build god roll evaluation tools without maintaining your own Bungie API integration.

Popularity Rankings and Perk-Based Search

get_popular_weapons requires no inputs and returns up to 25 weapons ranked by community usage, each with an id, name, rank, and url — useful for tracking the current meta. search_by_perks takes a comma-separated list of perk hash IDs in the perk_ids parameter and returns all weapons that carry those perks, letting you approach the dataset from the perk side rather than the weapon side.

Data Coverage Notes

Weapon hash IDs in this API correspond directly to Bungie's item manifest, so they remain stable across Light.gg and any other Bungie-ecosystem tooling. Perk popularity percentages and community insights reflect Light.gg's user-contributed data and may lag shortly after new content releases.

Reliability & maintenanceVerified

The Light API is a managed, monitored endpoint for light.gg — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when light.gg changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official light.gg API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a god roll advisor that ranks perk combinations by the popularity field from popular_trait_combinations
  • Display community-written community_insight text alongside weapon stats in a Destiny 2 companion app
  • Track meta shifts by polling get_popular_weapons and logging rank changes over time
  • Find all weapons that share a desired perk using search_by_perks with specific perk hash IDs
  • Aggregate user reviews and ratings from get_weapon_details to surface sentiment on newly released weapons
  • Compare stats arrays across multiple weapons by resolving multiple Bungie item hash IDs in sequence
  • Auto-complete weapon search in a loadout builder using search_weapons query results
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Bungie offer an official API for Destiny 2 weapon data?+
Yes. Bungie provides the Bungie.net Platform API at https://bungie-net.github.io/, which covers item manifests and character data. However, it does not include Light.gg-specific data such as perk popularity percentages, popular trait combinations, or community insight text — those fields come exclusively from Light.gg's user data.
What does `perks_popularity` actually represent in `get_weapon_details`?+
perks_popularity is an array where each object contains a perk name and a popularity percentage string reflecting how often that perk appears in Light.gg users' submitted rolls for that weapon. It is distinct from popular_trait_combinations, which shows paired perk combinations ranked by frequency.
Does the API return data for Destiny 1 weapons or only Destiny 2?+
The API currently covers Destiny 2 weapons indexed on Light.gg. Destiny 1 item data is not exposed. You can fork this API on Parse and revise it to target Destiny 1 item pages if Light.gg still hosts that content.
Is there pagination for `search_weapons` or `get_popular_weapons` results?+
get_popular_weapons returns up to 25 weapons with no pagination parameters. search_weapons returns all matching results for the query string in a single response array. Neither endpoint currently supports page or offset parameters. You can fork the API on Parse and revise it to add pagination or result-count controls.
Does the API expose PvP or PvE-specific god roll recommendations separately?+
Not currently. The API returns a single popular_trait_combinations array per weapon without splitting by activity type (PvP vs. PvE). The community_insight text field may contain activity-specific commentary, but it is unstructured. You can fork the API on Parse and revise it to add an activity-filter parameter if that distinction becomes available in the source data.
Page content last updated . Spec covers 4 endpoints from light.gg.
Related APIs in EntertainmentSee all →
wiki.warframe.com API
Search and retrieve detailed damage statistics for every Warframe weapon, including breakdowns by damage type, fire modes, and alternate attacks to optimize your loadout. Compare combat performance metrics across weapons to find the perfect gear for your playstyle.
warframe.wiki API
Search for Warframe items and weapons to view their stats, crafting requirements, and mod information, while staying updated on current in-game events and patch notes. Get detailed information about gear, resources, and game updates all from one convenient source.
pred.gg API
Access all gaming assets from the Pred.gg platform including hero icons, ability icons, skin portraits, item icons, perk icons, and rank icons. Use these images to build gaming apps, guides, or community tools with official Pred.gg graphics.
rib.gg API
Access comprehensive Valorant competitive data including match results, player statistics, team information, and tournament details with powerful search and filtering capabilities. Track player performance history, view rankings, discover free agents, and analyze in-depth match rounds and analytics all in one place.
tracker.gg API
Track Valorant player profiles, match histories, competitive rankings, and agent performance statistics from tracker.gg. Search leaderboards, analyze player segments, view daily game data, and access comprehensive reference information covering all Valorant-related data available on the platform.
csgoskins.gg API
csgoskins.gg API
howbazaar.gg API
Query items, skills, merchants, and monsters from the How Bazaar game database. Look up detailed information about in-game equipment, abilities, NPCs, and enemy encounters, with optional filters by hero, tier, size, and tag.
poedb.tw API
Search and retrieve comprehensive Path of Exile game data including items, gems, leagues, and game mechanics like bleeding effects across both PoE 1 and PoE 2. Get detailed information about specific items and categories, or browse current league information to stay updated on the latest game content.