Search
K

Profile Count

Retrieve the total number of profiles found on the Lens ecosystem
This /profile/count endpoint retrieves the total number of profiles scored for a particular strategy. The returned value is an unsigned integer.
This endpoint requires a strategy parameter as described in the Scoring Strategies section. This strategy simplifies the developer experience abstracting away the EigenTrust Local-Trust and Pre-Trust strategies. Each strategy is pre-computed on a daily basis and applied to each Lens profile.
For details on each strategy ID, see Profile Scoring Strategies
There's a option to choose a particular day of how many profiles are available when the strategies were generated using the date parameter.

API Documentation

get
https://lens-api.k3l.io
/profile/count
Return the total population size of profiles scored

Returns the number of profiles available for a given strategy.

As an example, this can be used to display the number of pages on a paginated dashboard.

Parameters
Query
strategy*
string
The strategy name to use such as 'followship', 'engagement', 'influencer', or 'creator'.
date
string
A date, in `YYYY-MM-DD` format, for which to return the historic result. Defaults to the most recent date.
Responses
200: OK
Query succeeded.
400: Bad Request
Invalid request, ex: wrong parameters.
500: Internal Server Error
Internal server error, not caused by issues with the request.
You can try out this API at this OpenAPI interfacehttps://openapi.lens.k3l.io
Last modified 3mo ago