Analytics REST API
Analytics
This API allows you to fetch analytics tracked by the leto.gg
platform for the requested CIDs.
Request Headers:
Request Body:
Request Body Parameters:
cids
(array): An array of strings, denoting content identifiers (CIDs)page
(integer): The page number of the search resultssize
(integer): The number of results to return per page
Fetch Analytics Example
Request payload:
Response:
success
(boolean): Indicates whether the API request was successful or not.data
(object): Contains the search results.metadata
(object): Contains metadata information about the search results such as pagination information.total
(integer): The total number of results available.page
(integer): The current page number of the search results.
data
(array): Contains the actual search results.cid
(string): The content identifier (CID).cidType
(string): The type of identifier, i.e.ipfs
oripns
.lastAccessed
(string): Timestamp when the CID was last accessed.numbersAccessed
(integer): Number of times the CID was accessed.
Try it!
Error Responses
These error responses provide information about the encountered errors during the API requests and can help you identify and address the issues with the requests.
No CIDs provided
Request:
Response:
Status: 400
Invalid Page
Request:
Response:
Status: 400
Invalid Size
Request:
Response:
Status: 400
Last updated