Skip to main content
This method identifies products and periods with excess or unused floating-license capacity using the same tracked state as the Devolens floating capacity dashboard. This method requires Usage Analytics permission. It returns capacity period objects.

Parameters

This method is accessed by https://api.cryptolens.io/api/ai/GetFloatingCapacity

Results

Example results

This response illustrates one product on 1 October 2026. Its greatest excess occurs at 12:00 UTC. The request example below uses the same product and date. IDs and values are illustrative.

Remarks

  • This method supports GET with query parameters and POST with a form or JSON body. Send the access token in the token header, query string, or form field. For JSON requests, use Content-Type: application/json and send the token separately; it is not read from the JSON body.
  • JSON responses use camel-case field names. All timestamps are Unix seconds in UTC; date strings use yyyy-MM-dd.
  • An out-of-range page returns an empty list. Total counts all rows in the authorized result before pagination; Returned counts only this page.
  • The access token must allow the requested product. Key-locked tokens cannot access this product-level overview.
  • In exceeded mode, CapacityValue sums only positive differences between floating machines and configured maximums. In below mode, it sums only negative differences. Underuse never cancels overuse.
  • Daily rows use the worst interval’s capacity value and license counts; ties select the earliest interval. SourceUpdatedUtc is the latest contributing source update for the day.
  • Rows include periods without findings and periods without data. When HasData is false, numeric zeros do not mean observed zero usage, and WorstIntervalStartUtc is null. Future intervals within today are omitted.
  • The summary contains MonitoredProductCount, MatchingProductCount, and distinct MatchingLicenseCount across the full authorized date range before pagination.
  • Floating reports read asynchronously maintained state. Historical intervals use the latest state before the interval end; the current interval uses current tracked state. Values do not represent every instantaneous peak.
  • SourceUpdatedUtc is a source-record timestamp, not a guarantee that every license is current. GeneratedUtc is the request time; separate requests may observe background updates.

Drill down

  1. Call GetFloatingCapacity and find a period with HasFinding=true.
  2. Pass its ProductId and WorstIntervalStartUtc to Get Floating Capacity Licenses as ProductId and IntervalStartUtc, keeping the same CapacityMode. In the example, use product 3349 and interval 1790856000.
  3. Pass a returned ProductId and KeyId to Get Floating Capacity History with the desired Start and End. The linked examples follow license 12345 in product 3349.

Example request

Replace YOUR_USAGE_ANALYTICS_TOKEN and the sample identifiers with your own values. This POST example sends form-encoded parameters.

Errors

Errors return Result=1 with an explanation in Message. Common errors include: View the original Web API reference