Crashsight OpenAPI
  1. API Reference
Crashsight OpenAPI
  • API Reference
    • Introduction
    • Overview Statistics
      • Get hourly top issue list
      • Get trend data for the last N days
      • Get overview of data analysis for a single day, including crash, ANR and error
      • Get cumulative trend data
      • Get top issue list
      • Get hourly trend data
    • Crash/Exception Analysis
      • To set issue-level tags.
      • Get device list based on stack keyword
      • Get crash user list within a specific time period
      • Get crash statistics based on stack keyword
      • Get crash Stat based on device ID
      • Get crashHash list based on issue ID
      • Get OpenId base on device ID
      • Get notes based on issue ID
      • Get issue details
      • Get the most recent crash hash based on issue ID
      • Get the list of crash hashes based on an issue ID
      • Get the trace data, trace logs, additional information, and custom key-value pairs
      • Get crash details
      • Get Issue list
    • Others
      • Get the list of versions, bundle, and handlers
      • Get the crash details based on OpenID
  1. API Reference

Introduction

CrashSight OpenAPI provides professional data service interface for crash/exception detection, report, analysis, and solutions, It helps developers locate and address problem more efficiently to keep improving user experience of product.

Signatures and restrictions#

Public request parameters#

1.1 URL Signature Parameters#

NameTypeRequired?Description
tintYesThe request’s unix timestamp which the base unit of time is sencod.
userSecretStringYesThe signature result string. See Signature for the signature calculation method.
localUserIdStringYesUserID

1.2 Generic Header Parameters#

NameRequired?Description
Content-TypeYesapplication/json
Accept-EncodingYes*

1.3 Signature#

localUserId:You can be obtained in personal information.
企业微信截图_16937999612475.png
user_key:OpenAPI Secret Key,example:bec5b56d-7ae7-43f7-8763-51580aed5fa2
企业微信截图_16938002196859.png
t: current unix timestamp,example:1618199626

Procedure#

base64.b64encode(bytes(hmac.new(bytes(self.user_key, 'utf-8'), bytes(str(self.local_user_id) + '_' + str(self.t), 'utf-8'), digestmod=hashlib.sha256).hexdigest(), encoding=utf8))
The following method is used to sign the access request:
1.
Construct Canonicalized Query String using the request parameters.
message = localUserId + '_' + t
key = userOpenapiKey
base64_encode(hash_hmac('sha256', message, key, false));
2.
Follow the following rules to construct the string for signature calculation using the Canonicalized Query String constructed in the previous step
3.
Encode the HMAC value into a string based on Base64 encoding rules, and you can get the signature value (Signature).
4.
Add the obtained signature value to the request parameters as the Signature parameter. The request signing process is completed,example:&userSecret=ODAxZGE1NmI3NDQ5Nzk0YjEzMjI1ZjJlZGY4NWNmZGE5Mzc4NGZmYjYzMjg4N2M0ODliMTkyZGU0MzBjODdkMw==&localUserId=12453&t=1693818679.
https://crashsight-docs-1258344700.cos.ap-shanghai.myqcloud.com/global/signature.py

Error Codes#

企业微信截图_16945729271867.png

API endpoints#

Need to access different sites based on user's registration region:
China Website: https://crashsight.qq.com/uniform/
Overseas Website: https://crashsight.wetest.net/uniform/
Next
Get hourly top issue list
Built with