Learn how to use custom query parameters to filter API results based on specific attributes, and understand the expected behavior of the output.
team
, sport
, coach
, or any other custom attributes defined in your organization’s data schema. These parameters enable you to narrow down the results to match your specific requirements.
Note: If your organization did not standardize the naming conventions or data, mismatches may occur when filtering athletes. For example,team
could be listed asTeam
,team
, or other variations, andxyz
could be represented inconsistently (e.g.,XYZ
,xyz
, orXyz
). These discrepancies may lead to incorrect or missing results. Ensure consistent naming conventions for both attribute names and their values to improve filtering accuracy.
sport
parameter:
sorted_by
parameter to organize the results by a specific field, such as first_name
, last_name
, or date_of_birth
:
team=XYZ
may not return the same results as team=xyz
or team=Xyz
. Ensure you verify your data structure and consistently use the correct casing, such as uppercase, lowercase, or camel case, based on your data schema.
limit=10
) and inspect the response payload to ensure the filtering criteria are applied correctly.