The MMA API provides comprehensive access to data from the world of Mixed Martial Arts (MMA). Designed for developers, sports analysts, and MMA enthusiasts, this API offers real-time updates, detailed fighter statistics, event information, and more, enabling robust integration into various applications. This API can be located on RapidAPI
- Live Event Data: Access real-time updates during MMA events, including fight results and statistics.
- Fighter Information: Retrieve detailed profiles and statistics for MMA fighters, including win/loss records, weight classes, and more.
- Event Schedule: Get information on upcoming MMA events, including dates, locations, and fight cards.
- Historical Data: Access past event results, fighter statistics, and historical fight data for in-depth analysis.
- Sign Up: Create an account on RapidAPI.
- Subscribe: Select a subscription plan that suits your needs.
- API Key: Obtain your unique API key to begin making requests.
- Documentation: For detailed usage instructions, visit the MMA API Documentation.
This endpoint allows users to search for MMA players. Users can provide a query string to search for specific players. The endpoint supports pagination and allows users to specify the number of results per page.
GET
/search
query(required): The search query string.limit(optional, default: 50): The maximum number of results to return per page.page(optional, default: 1): The page number for pagination.
The endpoint returns a JSON object containing the search results.
- Status Code: 200 OK
- Response Body: JSON object containing the search results.
-
Status Code: 400 Bad Request
- Response Body: JSON object with an error message indicating that the query parameter is missing.
-
Status Code: 500 Internal Server Error
- Response Body: JSON object with an error message indicating that something went wrong on the server side.
##MMA Fighter Profile
fighterId(required): The fighter id.
You can get the fighterId on the ESPN website or by making a call to scoreboard endpoints and in the json response you will find the id.
/available-leagues
Get the available leagues
This endpoint retrieves UFC rankings data. If the data is available in the cache, it returns it directly from the cache. Otherwise, it fetches the data, caches it for 15 minutes, and then returns it.
- 200 OK: If successful, returns a JSON object containing UFC rankings data.
- 500 Internal Server Error: If an error occurs during the process, it returns an error message in JSON format.
- The data is cached for 15 minutes (900,000 milliseconds) to reduce response time and API load.
This endpoint retrieves the rankings
year(required): The year (Format YYYY).league(Default: 'ufc'): The league.
Get the schedules
year(required): The year (Format YYYY).
This endpoint retrieves the fight history of a fighter based on their unique ID.
fighterId: The unique identifier of the fighter whose fight history is requested.
- Method: GET
- Headers: None
- Query Parameters:
fighterId(required): The unique identifier of the fighter.
- Success Response:
- Code: 200 OK
- Content: JSON object containing the fighter's fight history.
- Error Responses:
- Code: 400 Bad Request
- Content:
{ "error": "Invalid fighterId." }if thefighterIdis missing or empty.
- Content:
- Code: 500 Internal Server Error
- Content:
{ "error": "<Error message>" }if an unexpected error occurs during the request.
- Content:
- Code: 400 Bad Request
This endpoint retrieves comprehensive details for a fighter based on their unique ID.
fighterId: The unique identifier of the fighter whose details are requested.
- Method: GET
- Headers: None
- Query Parameters:
fighterId(required): The unique identifier of the fighter.
- Success Response:
- Code: 200 OK
- Content: JSON object containing the fighter's detailed information.
- Error Responses:
- Code: 400 Bad Request
- Content:
{ "error": "Invalid fighterId." }if thefighterIdis missing or empty.
- Content:
- Code: 500 Internal Server Error
- Content:
{ "error": "<Error message>" }if an unexpected error occurs during the request.
- Content:
- Code: 400 Bad Request
This endpoint retrieves statistical data for a fighter based on their unique ID.
fighterId: The unique identifier of the fighter whose statistics are requested.
- Method: GET
- Headers: None
- Query Parameters:
fighterId(required): The unique identifier of the fighter.
- Success Response:
- Code: 200 OK
- Content: JSON object containing the fighter's statistical data.
- Error Responses:
- Code: 400 Bad Request
- Content:
{ "error": "Invalid fighterId." }if thefighterIdis missing or empty.
- Content:
- Code: 500 Internal Server Error
- Content:
{ "error": "<Error message>" }if an unexpected error occurs during the request.
- Content:
- Code: 400 Bad Request
This endpoint retrieves detailed information about a fighter based on their unique ID.
fighterId: The unique identifier of the fighter whose profile information is requested.
- Method: GET
- Headers: None
- Query Parameters:
fighterId(required): The unique identifier of the fighter.
- Success Response:
- Code: 200 OK
- Content: JSON object containing the fighter's profile information.
- Error Responses:
- Code: 400 Bad Request
- Content:
{ "error": "Invalid fighterId." }if the providedfighterIdis not a valid number.
- Content:
- Code: 500 Internal Server Error
- Content:
{ "error": "<Error message>" }if an unexpected error occurs during the request.
- Content:
- Code: 400 Bad Request
Endpoint: GET /scoreboard This endpoint provides access to a scoreboard for various leagues, with the ability to filter by year, month, and day.
If the year parameter is missing from the request query, it will respond with a 400 error indicating that the year is required. Upon successful retrieval of the scoreboard data, it returns a JSON response containing the requested scoreboard information.
league: Specifies the league for which the scoreboard is requested. Default value is 'ufc'.year: Specifies the year for which the scoreboard is requested. Required parameter.month: Specifies the month for which the scoreboard is requested. Optional parameter.day: Specifies the day for which the scoreboard is requested. Optional parameter. Response:
Upon successful retrieval, returns a JSON object containing the scoreboard information. In case of an error during processing, it responds with an appropriate error status code and a JSON object containing the error message. Example Usage: /scoreboard?league=ufc&year=2024
Endpoint: GET /scoreboard-by-event This endpoint retrieves scoreboard information for a specific event within a given league. It allows querying by the event ID.
league: Specifies the league for which the scoreboard is requested. Default value is 'ufc'.eventId: Specifies the unique ID of the event for which the scoreboard is requested. Required parameter. Response:
Upon successful retrieval, returns a JSON object containing the scoreboard information for the specified event. In case of an error during processing, it responds with an appropriate error status code and a JSON object containing the error message.
You can get the eventId using the endpoint> getEventId
/scoreboard-by-event?league=ufc&eventId=600039893
This endpoint returns the leagues with its eventId.
year: The yearleague(Default: ufc)
This endpoint retrieves the latest MMA news
limit(Default: 15)league(Default: 'ufc')
Get the MMA News by Fighter
fighterId: The fighter Id.
You can access live event data, fighter profiles, event schedules, and historical fight data.
You must include your API key in the headers of your requests as outlined in the API documentation.
Yes, usage limits vary based on your chosen subscription plan. Check the RapidAPI dashboard for specifics.
Yes, the API allows filtering to retrieve data for specific fighters or events.
Yes, the MMA API includes historical data for previous events and fights, allowing for detailed analysis and comparisons.
For more information and to start using the MMA API, visit MMA API on RapidAPI.