1. Usage and Costs
Nstdata Resell Service API
  • Nstdata Resell API
    • Zones
      • Get service zone list
    • Channels
      • Get channel usage statistics
      • Get total usage for all service channels
      • Create channel
      • Batch query channels
      • Batch query channel usage summary
      • Get channel detail
      • Update channel
      • Delete channel
    • IP Products
      • Get service IP product list
    • IP Orders
      • Get total purchased IP quantity
      • Batch query IP orders
      • Buy service IPs
      • Get purchased IP order detail
      • Renew IP order
    • Regions
      • Get country list
    • Proxies
      • Generate proxies
    • Schemas
      • SuccessResponse
      • ErrorResponse
      • ProxyType
      • RegionProxyType
      • IpOrderType
      • ProxyProtocol
      • Zone
      • Channel
      • CreateChannelRequest
      • UpdateChannelRequest
      • ChannelIdsRequest
      • ChannelUsageRequest
      • ChannelStatistics
      • UsageMetric
      • ChannelUsageTotal
      • ChannelUsageSummary
      • IpProduct
      • PurchaseTotalByType
      • PurchaseTotal
      • OrderIdsRequest
      • IpProxyItem
      • IpOrder
      • IpOrderDetail
      • CreateIpOrderProduct
      • CreateIpOrderRequest
      • ErrorProxyItem
      • CreateIpOrderResponse
      • RenewSuccessItem
      • RenewIpOrderResponse
      • Country
      • GenerateProxiesResponse
  • Cloud Browser Developer API
    • Automation Access
      • Get CDP Credentials for an Existing Session
    • Session Configuration
      • Get Available Options
      • Estimate Browser Runtime Cost
    • Session Management
      • Create Browser Session
      • List Browser Sessions
      • Get Session Details and Status
      • Rename Browser Session
      • Stop Browser Session
    • Connection Credentials
      • Get Live View Credentials
    • Configuration Details
      • Get Session Configuration
    • Usage and Costs
      • Get Session Usage and Costs
        GET
      • Get Costs for Multiple Sessions
        POST
      • Get All Session Statistics
        GET
      • Get Historical Session Statistics
        GET
    • Schemas
      • BrowserConnectionResponseDto
      • BrowserOptionsResponseDto
      • BrowserErrorDto
      • SharedStorageErrorDto
      • SharedHttpErrorDto
      • BrowserEstimateDto
      • BrowserQuoteResponseDto
      • CreateBrowserDto
      • BrowserSessionResponseDto
      • BrowserListResponseDto
      • RenameBrowserDto
      • BrowserNameResponseDto
      • BrowserLiveViewResponseDto
      • BrowserConfigurationResponseDto
      • BrowserCostsResponseDto
      • BrowserCostsBatchDto
      • BrowserCostsBatchResponseDto
      • BrowserStatisticsResponseDto
      • BrowserHistoryStatisticsResponseDto
      • BrowserOptionsDto
      • BrowserQuoteDto
      • BrowserExtensionDto
      • BrowserCaptchaSettingsDto
      • BrowserFingerprintDto
      • BrowserSessionDto
      • BrowserListDto
      • BrowserNameDto
      • BrowserConnectionDto
      • BrowserLiveViewDto
      • BrowserConfigurationDto
      • BrowserCostsDto
      • BrowserCostsBatchDataDto
      • BrowserStatisticsDto
      • BrowserHistoryStatisticsDto
      • BrowserScreenOptionsDto
      • BrowserRecordingOptionsDto
      • BrowserFingerprintPresetDto
      • BrowserProxyCountryOptionDto
      • BrowserResourceClassOptionDto
      • BrowserCaptchaTypesDto
      • BrowserResolutionOptionDto
      • BrowserRecordingAvailabilityDto
      • BrowserProviderObservationDto
      • BrowserCaptchaPublicDto
      • BrowserEffectiveConfigurationDto
      • BrowserRequestedConfigurationDto
      • BrowserResolvedConfigurationDto
      • BrowserRuntimeCostDto
      • BrowserProxyCostDto
      • BrowserCaptchaCostDto
      • BrowserScreenRangeDto
      • BrowserNetworkIdentityDto
      • BrowserEffectiveExtensionDto
      • BrowserEffectiveFingerprintDto
      • BrowserConfigurationExtensionDto
      • BrowserResolvedFingerprintDto
      • BrowserIpAlignmentDto
  1. Usage and Costs

Get Session Usage and Costs

GET
/api/v1/cloud-browser/sessions/{sessionId}/costs
Requires a login JWT; API keys are not accepted. Returns runtime, proxy and CAPTCHA costs with availability states. recordedSubtotalAmount includes only known subtotalComponents and is not a final total. null means unknown, not zero. isFinal is currently false.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Header Params

Responses

🟢200
application/json
Recorded costs may be cached for five seconds within the owner scope.
Headers

Bodyapplication/json

🟠400
🟠401
🟠403
🟠404
🟠409
🟠410
🟠413
🟠422
🟠429
🟠470
🔴500
🔴503
⚪default
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/v1/cloud-browser/sessions//costs' \
--header 'x-team-id;' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "data": {
        "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459",
        "currency": "USD",
        "queriedAt": "2019-08-24T14:15:22.123Z",
        "runtime": {
            "status": "settled",
            "settledAmount": "string",
            "ledgerId": "string"
        },
        "proxy": {
            "status": "reported",
            "reportedAmount": "string",
            "rows": 0,
            "lastEventAt": "2019-08-24T14:15:22.123Z",
            "lastReportedAt": "2019-08-24T14:15:22.123Z"
        },
        "captcha": {
            "status": "reported",
            "coverage": "retained_tasks",
            "settledAmount": "string",
            "frozenAmount": "string",
            "releasedAmount": "string",
            "tasks": 0,
            "unsettledTasks": 0
        },
        "recordedSubtotalAmount": "string",
        "subtotalComponents": [
            "runtime"
        ],
        "isFinal": false
    },
    "err": false,
    "code": 200,
    "msg": "SUCCESS"
}
Modified at 2026-10-28 10:42:27
Previous
Get Session Configuration
Next
Get Costs for Multiple Sessions
Built with