Search documentation…

Search documentation…

At SportFeeds, we use a key system. When you subscribe to a specific league, you'll be given a key to include in your call.

A typical key example:92434f37-9c12-4fb6-8c9e-c7e76f0dd053l

If your users use the wrong key, or are over the limit, you'll receive an unauthorized error.

Don't have a key yet? email us!

At SportFeeds, we use a key system. When you subscribe to a specific league, you'll be given a key to include in your call.

A typical key example:92434f37-9c12-4fb6-8c9e-c7e76f0dd053l

If your users use the wrong key, or are over the limit, you'll receive an unauthorized error.

Don't have a key yet? email us!

Below are the parameters for this api call

Below are the parameters for this api call

Parameter

Type

Context

key

key

string

your SportFeeds subscription key

player_id

string

provider-specific player id example "12345"

id_provider

id_provider

timestamp

sportradar, sportsdataio, grid, etc

platform

platform

enum

instagram, x, youtube, or tiktok

Below are the parameters for this api call

Below are the parameters for this api call

ollioMiddleware() provides seamless access to user authentication states throughout your application, regardless of the route or page. Additionally, it enables you to secure specific routes from unauthenticated users. To integrate ollioMiddleware() into your app, follow these steps:

  1. Create a middleware.ts file:

    • If your app uses a /src directory, place middleware.ts in the /src directory.

    • Otherwise, create middleware.ts in the root directory, alongside your .env.local file.

  2. Export the ollioMiddleware() helper in your middleware.ts file.

ollioMiddleware() provides seamless access to user authentication states throughout your application, regardless of the route or page. Additionally, it enables you to secure specific routes from unauthenticated users. To integrate ollioMiddleware() into your app, follow these steps:

  1. Create a middleware.ts file:

    • If your app uses a /src directory, place middleware.ts in the /src directory.

    • Otherwise, create middleware.ts in the root directory, alongside your .env.local file.

  2. Export the ollioMiddleware() helper in your middleware.ts file.

Complete

{
   "player_information":{
      "first_name":"Patrick",
      "last_name":"Mahomes"
   },
   "player_id":{
      "sportradar":"11cad59d-90dd-449c-a839-dddaba4fe16c"
   },
   "instagram":{
      "username":"patrickmahomes",
      "updated":1762930749952,
      "id":"17841401329813311",
      "website":"http://www.patrickmahomes.com",
      "followers":6638004,
      "following":435,
      "media":968,
      "engagement_rate":1.240000009536743,
      "growth":{
         "media":{
            "1":0,
            "3":3,
            "7":3,
            "14":7,
            "30":13,
            "60":19,
            "90":32,
            "180":48,
            "365":88
         },
         "followers":{
            "1":0,
            "3":-1422,
            "7":-4784,
            "14":-10603,
            "30":-16239,
            "60":-35752,
            "90":-28700,
            "180":-123051,
            "365":-154116
         }
      }
   }
}

Open your app's homepage at http://localhost:3000 and sign up to create your initial user account.

Open your app's homepage at http://localhost:3000 and sign up to create your initial user account.

What did you think of this content?

It was helpful

It was not helpful

I have feedback

What did you think of this content?

Helpful

Not helpful

Feedback

Last updated on

Nov

01

2025

Last updated on

Nov

01

2025