curl --request GET \
--url https://api.example.com/api/itemsREST API endpoints for retrieving League of Legends item data
curl --request GET \
--url https://api.example.com/api/itemsMap<String, Item> - Map of item IDs to Item objects
Example Request:
curl http://localhost:5000/api/items
{
"3078": {
"id": "3078",
"name": "Fuerza de trinidad",
"description": "...",
"totalCost": 3333,
"from": ["3044", "3051", "3057"],
"imageUrl": "https://ddragon.leagueoflegends.com/cdn/16.3.1/img/item/3078.png"
},
"1001": {
"id": "1001",
"name": "Botas de velocidad",
"description": "...",
"totalCost": 300,
"imageUrl": "https://ddragon.leagueoflegends.com/cdn/16.3.1/img/item/1001.png"
}
}
Map<String, Item> - Map of craftable item IDs to Item objects
Example Request:
curl http://localhost:5000/api/items/craftable
from field, indicating they can be built from component items.Item - The item object or 404 if not found
Example Request:
curl http://localhost:5000/api/items/3078
{
"id": "3078",
"name": "Fuerza de trinidad",
"description": "Un objeto legendario...",
"totalCost": 3333,
"from": ["3044", "3051", "3057"],
"into": [],
"tags": ["Damage", "AttackSpeed", "CooldownReduction"],
"imageUrl": "https://ddragon.leagueoflegends.com/cdn/16.3.1/img/item/3078.png",
"image": {
"full": "3078.png",
"sprite": "item2.png",
"group": "item"
}
}
/craftable endpoint.
ItemService.getItemById(String itemId)
Retrieves a specific item by its unique identifier. Used internally by the /{itemId} endpoint.
ItemService.isValidCraftingCombination(String targetItemId, List<String> componentIds)
Validates whether the selected components correctly craft the target item. Used by the game validation endpoint.
https://ddragon.leagueoflegends.com/cdn/{version}/data/es_MX/item.jsonhttps://ddragon.leagueoflegends.com/cdn/{version}/img/item/{itemId}.pngfrom field populated)gold.total fieldinto field) for potential future features