Skip to content
DonutStatsAPI
Sign up
Items and prices

Get an item

One product in depth: prices, 7 days hourly, a year daily and the order book.

GET/v1/items/{key}

Everything about one product. hourly covers the last 7 days and daily the last 365, both oldest first. topOrders are the 10 best open buy orders and cheapestListings the 10 cheapest listings. For older prices, use price history.

The key is a product key, for example diamond or netherite_sword[sharpness:5,unbreaking:3]. URL encode it: brackets, commas and colons all need escaping.

Authentication

API key with the read scope

Cached for

1 min

Data updates

Prices every 5 minutes. Orders and listings as the market refreshes.

Path parameters

  • keystringrequired

    Product key. Find keys with GET /v1/items.

Response

The item.

  • itemobject

    An Item with the extra detail fields below.

    Show16 child fields
    • keystring

      Unique product key: the item id, plus the variant in square brackets when there is one. Examples: diamond, elytra[mending,unbreaking:3], potion[poison]. Use it with product= filters and /v1/items/{key}.

    • itemstring

      Minecraft item id without the minecraft: namespace, for example netherite_sword. Many products can share one item id.

    • namestring

      Display name, for example Potion of Poison.

    • variantstring

      What sets this product apart from the plain item. Empty for plain items. See variants for the rules.

    • categorystring | null

      One of combat, tools, valuables, drops, food, potions, blocks or misc.

    • Structured extras such as enchantments, shulker box contents or a custom name.

      Show5 child fields
      • enchantmentsEnchantment[]

        Enchantments on the item itself, sorted by id. Left out when there are none.

        Show2 child fields
        • idstring

          Enchantment id without the minecraft: namespace, for example sharpness.

        • levelinteger

          Enchantment level, starting at 1.

      • storedEnchantmentsEnchantment[]

        Enchantments stored in an enchanted book. Left out for every other item.

        Show2 child fields
        • idstring

          Enchantment id without the minecraft: namespace, for example sharpness.

        • levelinteger

          Enchantment level, starting at 1.

      • contentsContainerEntry[]

        What a shulker box holds, one entry per item id with counts added together, largest first.

        Show2 child fields
        • itemstring

          Item id, for example netherite_sword.

        • countinteger

          Total number of that item in the box.

      • customNamestring

        The name shown in game when it differs from the default item name. DonutSMP renames some items, for example Dried Ghast on a skeleton skull.

      • flightDurationinteger

        Flight duration of a firework rocket, from 1 to 3.

    • Current market figures.

      Show10 child fields
      • pricenumber | null

        Market price per item: the median unit price of the 5 cheapest open listings. null when nothing is listed.

      • lownumber | null

        Cheapest open listing, per item.

      • mediannumber | null

        Median unit price across every open listing of the product.

      • bidnumber | null

        Best open buy order, per item. Lowball orders under 25% of the market price are ignored unless they have already been filled for at least 1%.

      • listingsinteger

        Number of open auction listings.

      • quantityinteger

        Items for sale across those listings.

      • ordersinteger

        Number of open buy orders counted towards bid.

      • demandinteger

        Items those buy orders still want.

      • orderValuenumber

        Money those buy orders would still pay out: the sum of price times remaining amount.

      • updatedAttimestamp

        When these figures were computed.

    • change1dnumber | null

      Price change since yesterday as a fraction: 0.05 is 5% up.

    • change7dnumber | null

      Price change over 7 days as a fraction.

    • shardCostinteger | null

      Price in the shard shop, when it is sold there.

    • Last 7 days, one point per hour.

      Show9 child fields
      • ttimestamp

        Start of the hour or day this point covers, in UTC.

      • pricenumber | null

        Market price at the end of the period.

      • lownumber | null

        Cheapest listing at the end of the period.

      • mediannumber | null

        Median listing at the end of the period.

      • bidnumber | null

        Best buy order at the end of the period.

      • listingsinteger

        Open listings at the end of the period.

      • quantityinteger

        Items for sale at the end of the period.

      • ordersinteger

        Open buy orders at the end of the period. Only in the full price history.

      • demandinteger

        Items those buy orders still wanted. Only in the full price history.

    • Last 365 days, one point per day.

      Show9 child fields
      • ttimestamp

        Start of the hour or day this point covers, in UTC.

      • pricenumber | null

        Market price at the end of the period.

      • lownumber | null

        Cheapest listing at the end of the period.

      • mediannumber | null

        Median listing at the end of the period.

      • bidnumber | null

        Best buy order at the end of the period.

      • listingsinteger

        Open listings at the end of the period.

      • quantityinteger

        Items for sale at the end of the period.

      • ordersinteger

        Open buy orders at the end of the period. Only in the full price history.

      • demandinteger

        Items those buy orders still wanted. Only in the full price history.

    • topOrdersOrder[]

      The 10 best open buy orders.

      Show10 child fields
      • idinteger

        Stable id of the buy order.

      • productProduct

        What the order wants to buy.

        Show6 child fields
        • keystring

          Unique product key: the item id, plus the variant in square brackets when there is one. Examples: diamond, elytra[mending,unbreaking:3], potion[poison]. Use it with product= filters and /v1/items/{key}.

        • itemstring

          Minecraft item id without the minecraft: namespace, for example netherite_sword. Many products can share one item id.

        • namestring

          Display name, for example Potion of Poison.

        • variantstring

          What sets this product apart from the plain item. Empty for plain items. See variants for the rules.

        • categorystring | null

          One of combat, tools, valuables, drops, food, potions, blocks or misc.

        • Structured extras such as enchantments, shulker box contents or a custom name.

      • unitPricenumber

        What the order pays per item delivered.

      • amountinteger

        Total number of items the order asks for.

      • deliveredinteger

        Items delivered so far.

      • remaininginteger

        Items still wanted: amount minus delivered.

      • firstSeenAttimestamp

        When the order first appeared.

      • lastSeenAttimestamp

        When the order was last confirmed open.

      • progressedAttimestamp | null

        When a delivery to this order was last recorded. null if none yet.

      • marketPricenumber | null

        Current market price of the product.

    • cheapestListingsListing[]

      The 10 cheapest listings.

      Show10 child fields
      • idinteger

        Stable id of the listing. It never changes or gets reused.

      • productProduct

        What is being sold.

        Show6 child fields
        • keystring

          Unique product key: the item id, plus the variant in square brackets when there is one. Examples: diamond, elytra[mending,unbreaking:3], potion[poison]. Use it with product= filters and /v1/items/{key}.

        • itemstring

          Minecraft item id without the minecraft: namespace, for example netherite_sword. Many products can share one item id.

        • namestring

          Display name, for example Potion of Poison.

        • variantstring

          What sets this product apart from the plain item. Empty for plain items. See variants for the rules.

        • categorystring | null

          One of combat, tools, valuables, drops, food, potions, blocks or misc.

        • Structured extras such as enchantments, shulker box contents or a custom name.

      • countinteger

        Stack size, from 1 to 64.

      • pricenumber

        Asking price for the whole stack.

      • unitPricenumber

        Asking price per item: price divided by count.

      • Details of this exact stack. They can carry more than the product does, such as the full contents of a shulker box.

        Show5 child fields
        • enchantmentsEnchantment[]

          Enchantments on the item itself, sorted by id. Left out when there are none.

        • storedEnchantmentsEnchantment[]

          Enchantments stored in an enchanted book. Left out for every other item.

        • contentsContainerEntry[]

          What a shulker box holds, one entry per item id with counts added together, largest first.

        • customNamestring

          The name shown in game when it differs from the default item name. DonutSMP renames some items, for example Dried Ghast on a skeleton skull.

        • flightDurationinteger

          Flight duration of a firework rocket, from 1 to 3.

      • firstSeenAttimestamp

        When the listing first appeared.

      • lastSeenAttimestamp

        When the listing was last confirmed on the auction house.

      • marketPricenumber | null

        Current market price of the product, so you can compare the ask at a glance.

      • sellerstring | null

        Username of the seller, once known. null until then.

    • filled24hinteger

      Items delivered to orders for this product in the last 24 hours.

    • paidOut24hnumber

      Money paid out for those deliveries.

Status codes

StatusWhen
404Not FoundNo product has this key.