How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

DMarket Buy items API

Browse marketplace offers and buy orders (targets), and purchase items.

DMarket Buy items API is one of 6 APIs that DMarket publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Buy items. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and authentication docs.

This API exposes 8 operations across 8 paths, and defines 37 schemas. It is described by OpenAPI 3.0.4, at version v2.0.0.

Requests are made against a single base URL, https://api.dmarket.com.

8 operations 8 paths 37 schemas 4 GET1 PATCH3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.4
API Version
v2.0.0
Base URL
https://api.dmarket.com
Authentication
API Key, API Key, API Key
Resource Areas
1

Authentication & Security 3

DMarket Buy items API declares 3 security schemes for authenticating requests. An API key is passed in the header as X-Api-Key (ApiKey). An API key is passed in the header as X-Sign-Date (SignDate). An API key is passed in the header as X-Request-Sign (RequestSign). By default, every request must be authenticated.

  • ApiKey — Public API key (lowercase hex). Generate it in your DMarket account settings. See https://dmarket.com/faqtradingAPI.
  • SignDate — Unix timestamp in seconds at signing time (e.g. 1605619994). Must be within 2 minutes of server time.
  • RequestSign — Ed25519 request signature prefixed with dmar ed25519 . Sign the concatenation of HTTP method + path (including query string) + body + X-Sign-Date with your sec…

Paths & Operations 8

Across 8 paths, the API surfaces 8 operations — 4 GET, 1 PATCH, 3 POST. Each is listed below with its method, path, parameters, and response codes.

Buy items 8

Browse marketplace offers and buy orders (targets), and purchase items.

GET
/marketplace-api/v1/targets-by-title/{game_id}/{title}
Find buy orders (targets) by item title
MarketAPI_GetTargetsByTitle 2 params → 200default
POST
/marketplace-api/v1/aggregated-prices
Get aggregated market prices for item titles
MarketAPI_ListAggregatedPrices body → 200default
GET
/marketplace-api/v2/user/targets
List user targets
GetUserTargetsV2 9 params → 200default
GET
/marketplace-api/v1/user-targets/closed
List user closed targets
GetUserClosedTargets 10 params → 200default
POST
/marketplace-api/v1/user-targets/create
Create targets
CreateTargets body → 200default
POST
/marketplace-api/v1/user-targets/delete
Remove targets
DeleteTargets body → 200default
GET
/marketplace-api/v2/offers
List marketplace offers
GetMarketplaceOffersV2 9 params → 200default
PATCH
/exchange/v1/offers-buy
Buy offers
buyOffers body → 200400401500default

Schemas 37

The contract defines 37 schemas that model the data the API accepts and returns. The most detailed are GetUserClosedTargetsResponseTrade (10 properties), marketplacev2Target (8 properties), marketplacev2TargetAttributesCS2 (6 properties), entity.OfferBuyResponse (6 properties). Each schema is shown below with its type and property counts.

marketplaceCreateTargetsRequest
object
2 properties
ListAggregatedPricesResponseAggregatedPrice
object
5 properties
.dmOffersFailReason
object
1 property 1 required
rest.ErrorRepresentation
object
2 properties 2 required
entity.OfferPrice
object
3 properties 3 required
marketplacev2TargetStatus
string
Target status. - TARGETSTATUSACTIVE: Target is currently active and can be matched with offers. - TARGETSTATUSINACTIVE: Target is currently inactive.
marketplacev2OfferV2
object
Marketplace offer with typed attributes.
5 properties
marketplaceDeleteTargetResponse
object
3 properties
marketplaceMoney
object
2 properties
marketplaceCreateTargetRequest
object
4 properties
marketplaceErrorDetails
object
2 properties
marketplaceGetUserClosedTargetsResponse
object
3 properties
marketplaceErrorCodes
string
http code 400(Bad Request): NotEnoughBalance - Not enough balance InvalidAPIKey - InvalidAPIKey
GetTargetsByTitleResponseOrder
object
4 properties
commonMoney
object
2 properties
marketplaceDeleteTargetsResponse
object
1 property
marketplaceDeleteTargetRequest
object
1 property
marketplaceCreateTargetResponse
object
4 properties
entity.P2POffersStatus
object
1 property 1 required
GetUserClosedTargetsResponseTrade
object
10 properties
entity.OfferBuyResponse
object
6 properties 4 required
marketplacev2GetMarketplaceOffersResponse
object
3 properties
marketplaceGetTargetsByTitleResponse
object
1 property
marketplaceListAggregatedPricesRequest
object
3 properties
entity.Money
object
2 properties 2 required
marketplacev2GetUserTargetsResponse
object
3 properties
marketplacev2TargetAttributesCS2
object
6 properties
marketplaceListAggregatedPricesResponse
object
2 properties
marketplacev2TargetAttributes
object
Target attributes. categoryPath, image, title, name are shared across games; game-specific attributes are carried in the cs2 field.
5 properties
entity.OfferBuyRequest
object
1 property 1 required
ListAggregatedPricesRequestFilter
object
2 properties
marketplaceTradeStatus
string
marketplacev2Target
object
User target with typed attributes.
8 properties
marketplaceCreateTargetsResponse
object
1 property
marketplaceDeleteTargetsRequest
object
1 property
runtimeError
object
3 properties
entity.DMOffersStatus
object
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

dmarket-buy-items-api-openapi.yml Raw ↑

Other APIs DMarket publishes across the network.

DMarket Account API
DMarket Aggregator API
DMarket Inventory/items API
DMarket Sell Items API
DMarket Sold user items API
Where this information came from

This is an independent, third-party profile of DMarket Buy items API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.