Skip to main content

Check trade URL

GET /utils/tradeurlCheck
Permission: Connected + API Validates a Steam trade offer URL format and checks if it’s accessible.

Query Parameters

tradeUrl
string
required
Steam trade offer URL to validate

Example

GET /utils/tradeurlCheck?tradeUrl=https://steamcommunity.com/tradeoffer/new/?partner=123456789&token=AbCdEfGh

Response

Valid URL
{
  "err": false,
  "success": true,
  "content": {
    "valid": true,
    "partnerId": "123456789",
    "token": "AbCdEfGh",
    "steamId": "76561198083722517",
    "message": "Trade URL is valid"
  }
}
Invalid URL
{
  "err": true,
  "success": false,
  "content": {
    "valid": false,
    "message": "Invalid trade URL format"
  }
}

Validation Checks

The endpoint performs the following validations:
  1. Format Check: Verifies URL starts with https://steamcommunity.com/tradeoffer/new/
  2. Parameter Check: Ensures partner and token parameters are present
  3. Token Validation: Validates token format (8 characters, alphanumeric)
  4. Steam ID Conversion: Converts partner ID to full Steam ID64
Use this endpoint before saving a trade URL to ensure it’s valid and properly formatted.