Skip to main content
POST
/
searchAthleteV2
Search athletes (V2)
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/searchAthleteV2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sortBy": "name",
  "filterByMultiParameter": "<string>",
  "filterByAthleteName": [
    "<string>"
  ],
  "filterByAthleteID": "<string>",
  "filterByName": "<string>",
  "filterBySchool": [
    123
  ],
  "filterByLocation": "<string>",
  "filterByPrice": "<string>",
  "filterByPlatform": false,
  "genderSelect": false,
  "eligibilitySelect": false,
  "gender": [
    "<string>"
  ],
  "is_current_athlete": "Y",
  "filterByTeam": "<string>",
  "filterskillsSearchKeywords": [
    "<string>"
  ],
  "filterBusinessCategorySearchKeywords": [
    123
  ],
  "filterSportsSearchKeywords": [
    123
  ],
  "filterPlatFormSearchKeywords": [
    "facebook"
  ],
  "filterByInstaMin": "<string>",
  "filterByInstaMax": "<string>",
  "filterByTwitterMin": "<string>",
  "filterByTwitterMax": "<string>",
  "filterByTiktokMin": "<string>",
  "filterByTiktokMax": "<string>",
  "sortOrderInsta": "asc",
  "sortOrderTwitter": "asc",
  "sortOrderTiktok": "asc",
  "sortOrderDistance": "asc",
  "filterByRating": 123,
  "filterByLatLong": [],
  "filterByDistanceInMiles": 123,
  "filterByDivisions": [
    "<string>"
  ],
  "filterByConference": [
    "<string>"
  ],
  "filterBySelectedLocation": "<string>",
  "view": "public",
  "default_sort_ios": "",
  "sortiOsByLatLong": [
    123
  ]
}
'

Documentation Index

Fetch the complete documentation index at: https://developer.mogl.online/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Query Parameters

page
integer

Page number

Example:

1

page_limit
integer

Items per page (default 10)

Example:

10

Body

application/json
sortBy
string | null

Sort field (e.g. name)

Example:

"name"

filterByMultiParameter
string | null

General search keyword (name or school)

filterByAthleteName
string[] | null

Filter by athlete name(s)

filterByAthleteID
string | null

Filter by athlete ID(s), comma-separated

filterByName
string | null

Filter by name

filterBySchool
integer[] | null

Filter by school/university ID(s)

filterByLocation
string | null

Filter by location keyword

filterByPrice
string | null

Filter by price

filterByPlatform
boolean | null

Platform filter flag

Example:

false

genderSelect
boolean | null

Gender filter enabled

Example:

false

eligibilitySelect
boolean | null

Eligibility filter enabled

Example:

false

gender
string[] | null

Filter by gender(s)

is_current_athlete
enum<string> | null

Y = current athletes, N = former, empty = all

Available options:
Y,
N,
Example:

"Y"

filterByTeam
string | null

Filter by team

filterskillsSearchKeywords
string[] | null

Filter by skills

filterBusinessCategorySearchKeywords
integer[] | null

Filter by business category IDs

filterSportsSearchKeywords
integer[] | null

Filter by sport category IDs

filterPlatFormSearchKeywords
enum<string>[] | null

Filter by social platforms

Available options:
facebook,
instagram,
twitter,
google,
youtube,
tiktok
filterByInstaMin
string | null

Min Instagram followers

filterByInstaMax
string | null

Max Instagram followers

filterByTwitterMin
string | null

Min Twitter followers

filterByTwitterMax
string | null

Max Twitter followers

filterByTiktokMin
string | null

Min TikTok followers

filterByTiktokMax
string | null

Max TikTok followers

sortOrderInsta
enum<string> | null

Sort by Instagram followers

Available options:
asc,
desc
sortOrderTwitter
enum<string> | null

Sort by Twitter followers

Available options:
asc,
desc
sortOrderTiktok
enum<string> | null

Sort by TikTok followers

Available options:
asc,
desc
sortOrderDistance
enum<string> | null

Sort by distance

Available options:
asc,
desc
filterByRating
number | null

Min star rating (e.g. 3.5)

filterByLatLong
number[] | null

[longitude, latitude] for distance filter

Example:
[]
filterByDistanceInMiles
number | null

Max distance in miles (requires filterByLatLong)

filterByDivisions
string[] | null

Filter by divisions (e.g. NCAA-I-FBS)

filterByConference
string[] | null

Filter by conference names

filterBySelectedLocation
string | null

Selected location label

view
enum<string> | null

View type — 'public' includes non-MOGL athletes

Available options:
public
default_sort_ios
enum<string> | null

iOS default sort mode

Available options:
,
name_asc,
name_desc,
location,
social_media
sortiOsByLatLong
number[] | null

[longitude, latitude] for iOS distance sort

Response

Paginated athlete list