API Introduction
The Crypt2 Professional API is a suite of high-performance RESTful JSON endpoints that are specifically designed to meet the mission-critical demands of application developers, data scientists, and enterprise business platforms.
HTTP Status Codes
200 OK - Everything worked as expected.
400 Bad Request - Often missing a required parameter.
401 Unauthorized - No valid API key provided.
402 Request Failed - Parameters were valid but request failed.
404 Not Found - The requested item doesn't exist.
406 Not Acceptable - The requested item not acceptable.
409 Conflict - The requested item conflict with a stored item.
422 Insufficient information supplied - Insufficient information
supplied.
500, 502, 503, 504 Server errors - Something went wrong on FindaTrade's
end.
Errors
Crypt2 uses conventional HTTP response codes to indicate success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the provided information (e.g. a required parameter was missing), and codes in the 5xx range indicate an error with FindaTrade's servers.
Not all errors map cleanly onto HTTP response codes, however. When a request is valid but does not complete successfully, we return a 402 error code.
Authentication
Acquiring an API Key
All HTTP requests made against the Professional API must be validated with an API Key. If you don't have an API Key yet visit the Professional API Developer Portal to register for one.
Using Your API Key
You may use any server side programming language that can make HTTP requests to target the
Professional API. All requests should target domain https://crypt2esports.com/free_api/
.
You can supply your API Key in REST API calls Via a custom header named
Crypt2-API-KEY
https://crypt2esports.com/free_api/sports/betting?api_key=****
Example Request
Method:
GET/sports/betting?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"name": "Crypt2 Esports Betting",
"type": "Sports Betting",
"platform": "Ethereum",
"token": "C2ES",
"dapp": "Yes",
"updated": "2024-07-27",
"full_info": "http://example.com/crypt2-esports-betting"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports betting insights for Crypt2 Esports.
Output Attributes
-
name Required
Name of the sports betting platform.
-
type Required
Type of the platform (e.g., Sports Betting).
-
platform Required
Blockchain platform where the betting is hosted.
-
token Required
Token used in the sports betting.
-
dapp Required
Indicates if the platform is a DApp (Yes/No).
-
updated Required
Last updated date.
-
full_info Required
URL for full information about the platform.
https://crypt2esports.com/free_api/sports/game_engine?api_key=****
Example Request
Method:
GET/sports/game_engine?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"name": "Crypt2 Esports Game Engine",
"type": "Sports Game Engine",
"platform": "Binance Smart Chain",
"engine": "Crypt2 Engine",
"updated": "2024-07-27",
"full_info": "http://example.com/crypt2-esports-game-engine"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports game engines for Crypt2 Esports.
Output Attributes
-
name Required
Name of the sports game engine.
-
type Required
Type of the engine (e.g., Sports Game Engine).
-
platform Required
Blockchain platform where the engine is used.
-
engine Required
Name of the game engine.
-
updated Required
Last updated date.
-
full_info Required
URL for full information about the engine.
https://crypt2esports.com/free_api/sports/odds?api_key=****
Example Request
Method:
GET/sports/odds?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"name": "Crypt2 Esports Odds",
"type": "Sports Odds",
"odds": "2.5",
"updated": "2024-07-27",
"full_info": "http://example.com/crypt2-esports-odds"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports odds for Crypt2 Esports.
https://crypt2esports.com/free_api/sports/players?api_key=****
Example Request
Method:
GET/sports/players?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"name": "John Doe",
"type": "Player",
"team": "Crypt2 Esports",
"position": "Forward",
"stats": {
"games_played": 50,
"goals_scored": 20,
"assists": 10
},
"updated": "2024-07-27",
"full_info": "http://example.com/john-doe"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports players for Crypt2 Esports.
Output Attributes
-
name Required
Name of the player.
-
type Required
Type of the data (e.g., Player).
-
team Required
Team the player is associated with.
-
position Required
Position of the player.
-
stats Required
Player statistics (e.g., games played, goals scored, assists).
-
updated Required
Last updated date.
-
full_info Required
URL for full information about the player.
https://crypt2esports.com/free_api/sports/player_statistics?api_key=****
Example Request
Method:
GET/sports/player_statistics?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"player_name": "John Doe",
"stats": {
"games_played": 50,
"goals_scored": 20,
"assists": 10
},
"updated": "2024-07-27",
"full_info": "http://example.com/john-doe-stats"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns statistics for sports players in Crypt2 Esports.
https://crypt2esports.com/free_api/sports/matches?api_key=****
Example Request
Method:
GET/sports/matches?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"match_id": "12345",
"team1": "Crypt2 Esports",
"team2": "Rival Team",
"date": "2024-07-30",
"time": "15:00",
"status": "Scheduled",
"full_info": "http://example.com/match-12345"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports matches for Crypt2 Esports.
Output Attributes
-
match_id Required
Unique identifier for the match.
-
team1 Required
Name of the first team.
-
team2 Required
Name of the second team.
-
date Required
Date of the match.
-
time Required
Time of the match.
-
status Required
Status of the match (e.g., Scheduled, Completed).
-
full_info Required
URL for full information about the match.
https://crypt2esports.com/free_api/sports/scores?api_key=****
Example Request
Method:
GET/sports/scores?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"match_id": "12345",
"team1": "Crypt2 Esports",
"team2": "Rival Team",
"score_team1": 2,
"score_team2": 1,
"date": "2024-07-30",
"time": "15:00",
"full_info": "http://example.com/match-12345"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns the scores for sports matches involving Crypt2 Esports.
Output Attributes
-
match_id Required
Unique identifier for the match.
-
team1 Required
Name of the first team.
-
team2 Required
Name of the second team.
-
score_team1 Required
Score of the first team.
-
score_team2 Required
Score of the second team.
-
date Required
Date of the match.
-
time Required
Time of the match.
-
full_info Required
URL for full information about the match score.
https://crypt2esports.com/free_api/sports/statistics?api_key=****
Example Request
Method:
GET/sports/statistics?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"team": "Crypt2 Esports",
"total_wins": 25,
"total_losses": 10,
"total_draws": 5,
"current_rank": 1,
"updated": "2024-07-27",
"full_info": "http://example.com/crypt2-esports-stats"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns statistical information for Crypt2 Esports.
Output Attributes
-
team Required
Name of the team.
-
total_wins Required
Total number of wins.
-
total_losses Required
Total number of losses.
-
total_draws Required
Total number of draws.
-
current_rank Required
Current rank of the team.
-
updated Required
Last updated date.
-
full_info Required
URL for full information about the team statistics.
https://crypt2esports.com/free_api/sports/events?api_key=****
Example Request
Method:
GET/sports/events?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"event_id": "67890",
"event_name": "Crypt2 Esports Tournament",
"event_date": "2024-08-15",
"location": "Virtual Arena",
"full_info": "http://example.com/event-67890"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports events related to Crypt2 Esports.
https://crypt2esports.com/free_api/sports/tournaments?api_key=****
Example Request
Method:
GET/sports/tournaments?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"tournament_id": "78901",
"tournament_name": "Crypt2 Esports Championship",
"start_date": "2024-08-01",
"end_date": "2024-08-07",
"location": "Virtual Arena",
"full_info": "http://example.com/tournament-78901"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports tournaments related to Crypt2 Esports.
Output Attributes
-
tournament_id Required
Unique identifier for the tournament.
-
tournament_name Required
Name of the tournament.
-
start_date Required
Start date of the tournament.
-
end_date Required
End date of the tournament.
-
location Required
Location of the tournament.
-
full_info Required
URL for full information about the tournament.
https://crypt2esports.com/free_api/sports/leagues?api_key=****
Example Request
Method:
GET/sports/leagues?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"league_id": "34567",
"league_name": "Crypt2 Esports League",
"season": "2024",
"start_date": "2024-07-01",
"end_date": "2024-12-31",
"full_info": "http://example.com/league-34567"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports leagues related to Crypt2 Esports.
https://crypt2esports.com/free_api/sports/rankings?api_key=****
Example Request
Method:
GET/sports/rankings?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"ranking_id": "12345",
"team_name": "Crypt2 Esports",
"rank": 1,
"points": 1000,
"full_info": "http://example.com/ranking-12345"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports rankings related to Crypt2 Esports.
https://crypt2esports.com/free_api/sports/predictions?api_key=****
Example Request
Method:
GET/sports/predictions?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"prediction_id": "67890",
"match": "Crypt2 Esports vs. Team X",
"prediction": "Crypt2 Esports wins",
"odds": "2.5",
"full_info": "http://example.com/prediction-67890"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports predictions related to Crypt2 Esports.
Output Attributes
https://crypt2esports.com/free_api/sports/highlights?api_key=****
Example Request
Method:
GET/sports/highlights?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"highlight_id": "98765",
"match": "Crypt2 Esports vs. Team Y",
"highlight": "Crypt2 Esports made a spectacular comeback!",
"video_url": "http://example.com/highlight-98765",
"full_info": "http://example.com/highlight-98765"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports highlights related to Crypt2 Esports.
Output Attributes
https://crypt2esports.com/free_api/sports/news?api_key=****
Example Request
Method:
GET/sports/news?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"news_id": "54321",
"headline": "Crypt2 Esports Wins Big in Latest Tournament",
"content": "Crypt2 Esports secured a major victory in the latest tournament.",
"publish_date": "2024-07-27",
"full_info": "http://example.com/news-54321"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports news related to Crypt2 Esports.
https://crypt2esports.com/free_api/sports/analytics?api_key=****
Example Request
Method:
GET/sports/analytics?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"analysis_id": "112233",
"match": "Crypt2 Esports vs. Team Z",
"metric": "Win Probability",
"value": "75%",
"full_info": "http://example.com/analytics-112233"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns sports analytics related to Crypt2 Esports.
https://crypt2esports.com/free_api/sports/injuries?api_key=****
Example Request
Method:
GET/sports/injuries?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"injury_id": "67890",
"player": "John Doe",
"team": "Crypt2 Esports",
"injury": "Hamstring strain",
"expected_return": "2024-08-15",
"full_info": "http://example.com/injury-67890"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports injuries related to Crypt2 Esports.
Output Attributes
-
injury_id Required
Unique identifier for the injury record.
-
player Required
Name of the player injured.
-
team Required
Team to which the injured player belongs.
-
injury Required
Description of the injury.
-
expected_return Required
Expected return date of the player.
-
full_info Required
URL for full information about the injury.
https://crypt2esports.com/free_api/sports/transfers?api_key=****
Example Request
Method:
GET/sports/transfers?api_key=**** HTTP/1.1
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 0,
"error_message": "",
"credit_count": "5249",
"valid_till": "2024-08-28"
},
"data": [
{
"transfer_id": "98765",
"player": "Alice Smith",
"from_team": "Team A",
"to_team": "Crypt2 Esports",
"transfer_date": "2024-07-26",
"full_info": "http://example.com/transfer-98765"
}
]
}
Example Response
Status: 200
{
"status": {
"timestamp": "2024-07-28 12:34:56",
"error_code": 400,
"error_message": "Invalid parameters.",
"credit_count": 0
}
}
Returns a list of sports transfers related to Crypt2 Esports.
Output Attributes
-
transfer_id Required
Unique identifier for the transfer record.
-
player Required
Name of the player transferred.
-
from_team Required
Team the player is transferring from.
-
to_team Required
Team the player is transferring to.
-
transfer_date Required
Date of the transfer.
-
full_info Required
URL for full information about the transfer.