Getting Started
Welcome to the Frame Analytics API! This API will give you finer grain access to Frame Analytics than the FDK and unlock some unique applications
To get started you will need a Pinata API Key!
API Keys
Visit the Pinata API Keys page to generate new keys.
In the ‘New Key’ modal, you can choose if you want the key to be an Admin key and have full access over every endpoint, or scope the keys by selecting which endpoints you want to use. You can also give it a limited number of uses, so be sure to give it a name to keep track of it. Once you have that filled out, click “Generate API Key” and it will show you the pinata_api_key
, pinata_api_secret_key
, and the JWT
. It’s best to click “Copy All” and keep the API key data safe and secure.
Once API keys have been created, you will not be able to see the secret or JWT again
Once you have created your keys you can go ahead and try testing them! Try to paste this into your terminal with your JWT
If successful you should see something like this!
Endpoints Overview
/interactions
This endpoint is used for both sending analytics and fetching them for a set of parameters
Send Analytics
Can be any name you want to give your frame to reflect in the analytics results
More granular for specific parts of your frame
An object representing the raw payload of an action frame produced by Farcaster.
Get Interactions
Start date for the analytics results in the format of YYYY-MM-DD HH:MM:SS
End date for the analytics results in the format of YYYY-MM-DD HH:MM:SS
Filters results by a specified frame_id
used in the initial post request
Filters results by the button_index
used in the frame payload
Filters results by the url
of a frame
Filters results by a specified custom_id
used in the initial post request
/interactions/top
Instead of fetching the interactions for a specific frame, get results for all frames with analytics in your Pinata account
Get Top Interactions
Start date for the analytics results in the format of YYYY-MM-DD HH:MM:SS
End date for the analytics results in the format of YYYY-MM-DD HH:MM:SS
Filters results for a specific attribute. The following are available:
button_index
cast_fid
cast_hash
frame_id
url