Skip to main content

1. Create an API key

  1. Sign in to the ClipStake web app.
  2. Open Settings, then API keys.
  3. Select Create API key and give the key a name.
  4. Copy the key. ClipStake shows it only once.
Store the key on your server, for example in an environment variable.

2. List your campaigns

Each campaign in data has an id that starts with cmp_. Copy one ID for the next steps. To list the campaigns of one brand, add brand_id:

3. Read the campaign metrics

The metrics are the same figures that the campaign dashboard shows.

4. Page through the clips

To list only some clips, add status or platform. For example, ?status=approved&platform=instagram lists the approved Instagram clips. A list returns up to 25 items by default. Send next_cursor back as cursor to get the next page. Stop when next_cursor is null.

Next steps

  • Read Pagination before you follow a cursor with filters.
  • Read Errors to handle each error code.