Public agent roster page
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/get-agent-roster \
--header 'Content-Type: application/json' \
--data '
{
"roster_route": "nilson-sports-group-talent-roster-E0K7YE",
"page": 1,
"limit": 100
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/get-agent-roster"
payload = {
"roster_route": "nilson-sports-group-talent-roster-E0K7YE",
"page": 1,
"limit": 100
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({roster_route: 'nilson-sports-group-talent-roster-E0K7YE', page: 1, limit: 100})
};
fetch('http://localhost/mogl/mogl-backend/api/get-agent-roster', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/get-agent-roster",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'roster_route' => 'nilson-sports-group-talent-roster-E0K7YE',
'page' => 1,
'limit' => 100
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/get-agent-roster"
payload := strings.NewReader("{\n \"roster_route\": \"nilson-sports-group-talent-roster-E0K7YE\",\n \"page\": 1,\n \"limit\": 100\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/mogl/mogl-backend/api/get-agent-roster")
.header("Content-Type", "application/json")
.body("{\n \"roster_route\": \"nilson-sports-group-talent-roster-E0K7YE\",\n \"page\": 1,\n \"limit\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/get-agent-roster")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"roster_route\": \"nilson-sports-group-talent-roster-E0K7YE\",\n \"page\": 1,\n \"limit\": 100\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Roster fetched successfully",
"data": {
"roster": {
"id": "E0K7YE",
"display_name": "Nilson Sports Group",
"roster_name": "Nilson Sports Group Talent Roster",
"agent_type": "agency",
"canonical_url": "https://influencer.mogl.online/rosters/nilson-sports-group-talent-roster-E0K7YE",
"profile_photo": "https://dfxdmt3q663j6.cloudfront.net/storage/agent.jpg",
"linkedin_url": "https://www.linkedin.com/in/nilson",
"athlete_count": 12,
"indexable": true,
"robots": "index, follow"
},
"athletes": [
{
"id": "Xy9AbC",
"first_name": "Jordan",
"last_name": "Example",
"name": "Jordan Example",
"profile_photo": "https://dfxdmt3q663j6.cloudfront.net/storage/athlete.jpg",
"school": "Example University",
"sport_category_name": "Basketball",
"average_rating": 5,
"instagram": "jordanexample",
"twitter": "",
"tiktok": "",
"public_profile_url": "https://influencer.mogl.online/athletes/jordan-example--Xy9",
"UserSocialMediaStatistics": {
"instagram_name": "jordanexample",
"instagram_followers_count": 12000,
"tiktok_name": null,
"tiktok_follower": null,
"twitter_name": null,
"twitter_follower": null
},
"social_media": {}
}
],
"socialData": {},
"pagination": {
"current_page": 1,
"per_page": 100,
"total": 12,
"last_page": 1
}
}
}{
"status": "error",
"message": "Roster not found",
"data": null
}{
"message": "The given data was invalid.",
"errors": {}
}Public agent roster page
One roster by its route (the part after /rosters/). Resolved by the hashid, so an old slug after a name change still returns the roster; compare roster.canonical_url with the browser URL and redirect when they differ. Unknown, unpublished, private, or test rosters, and a page past the end, return HTTP 404. Athletes are in the My Athletes default order and exclude test, private, deleted, and unregistered accounts. athletes and socialData keep the legacy get-roster key names, so existing roster cards and audience charts can render them; athlete cards are limited to public fields. socialData covers the whole roster, not only the current page. Throttle: 200/min.
POST
/
get-agent-roster
Public agent roster page
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/get-agent-roster \
--header 'Content-Type: application/json' \
--data '
{
"roster_route": "nilson-sports-group-talent-roster-E0K7YE",
"page": 1,
"limit": 100
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/get-agent-roster"
payload = {
"roster_route": "nilson-sports-group-talent-roster-E0K7YE",
"page": 1,
"limit": 100
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({roster_route: 'nilson-sports-group-talent-roster-E0K7YE', page: 1, limit: 100})
};
fetch('http://localhost/mogl/mogl-backend/api/get-agent-roster', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/get-agent-roster",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'roster_route' => 'nilson-sports-group-talent-roster-E0K7YE',
'page' => 1,
'limit' => 100
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/get-agent-roster"
payload := strings.NewReader("{\n \"roster_route\": \"nilson-sports-group-talent-roster-E0K7YE\",\n \"page\": 1,\n \"limit\": 100\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/mogl/mogl-backend/api/get-agent-roster")
.header("Content-Type", "application/json")
.body("{\n \"roster_route\": \"nilson-sports-group-talent-roster-E0K7YE\",\n \"page\": 1,\n \"limit\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/get-agent-roster")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"roster_route\": \"nilson-sports-group-talent-roster-E0K7YE\",\n \"page\": 1,\n \"limit\": 100\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Roster fetched successfully",
"data": {
"roster": {
"id": "E0K7YE",
"display_name": "Nilson Sports Group",
"roster_name": "Nilson Sports Group Talent Roster",
"agent_type": "agency",
"canonical_url": "https://influencer.mogl.online/rosters/nilson-sports-group-talent-roster-E0K7YE",
"profile_photo": "https://dfxdmt3q663j6.cloudfront.net/storage/agent.jpg",
"linkedin_url": "https://www.linkedin.com/in/nilson",
"athlete_count": 12,
"indexable": true,
"robots": "index, follow"
},
"athletes": [
{
"id": "Xy9AbC",
"first_name": "Jordan",
"last_name": "Example",
"name": "Jordan Example",
"profile_photo": "https://dfxdmt3q663j6.cloudfront.net/storage/athlete.jpg",
"school": "Example University",
"sport_category_name": "Basketball",
"average_rating": 5,
"instagram": "jordanexample",
"twitter": "",
"tiktok": "",
"public_profile_url": "https://influencer.mogl.online/athletes/jordan-example--Xy9",
"UserSocialMediaStatistics": {
"instagram_name": "jordanexample",
"instagram_followers_count": 12000,
"tiktok_name": null,
"tiktok_follower": null,
"twitter_name": null,
"twitter_follower": null
},
"social_media": {}
}
],
"socialData": {},
"pagination": {
"current_page": 1,
"per_page": 100,
"total": 12,
"last_page": 1
}
}
}{
"status": "error",
"message": "Roster not found",
"data": null
}{
"message": "The given data was invalid.",
"errors": {}
}Body
application/json