Cricket Api Version 3 is release in beta

Search Data API

Player Search

get

Endpoint Description

This endpoint allows users to search for cricket players by their name. It retrieves player information based on the query parameter provided in the request.

Request

  • Method: GET

  • URL: https://apiv3.sportsapi360.com/cricket/api/v2/search/player

  • Query Parameters:

    • query (string): The name of the player to search for. For example, Virat Kohli.

Response

The response will return a JSON array containing player details that match the search query. Each player object in the response may include the following fields:

  • name: The name of the player.

  • fullName: The full name of the player.

  • playerID: A unique identifier for the player.

  • birthPlace: The birthplace of the player.

  • playerRank: The rank of the player (if available).

  • image: A URL to the player's image.

Notes

  • Ensure that the query parameter is properly encoded if it contains spaces or special characters.

  • The response may contain multiple player objects or none, depending on the search results.

  • Some fields in the response may be empty or null if the information is not available.

This endpoint is useful for applications that require player information for display or analytics purposes.

Authorizations
Query parameters
querystringOptionalExample: Virat Kohli
Header parameters
x-api-keystringOptionalExample: {API_KEY}
Responses
200
OK
application/json
Responseobject
get
GET /cricket/api/v2/search/player HTTP/1.1
Host: apiv3.sportsapi360.com
Authorization: x-api-key YOUR_SECRET_TOKEN
Accept: */*
200

OK

[
  {
    "name": "Virat Kohli",
    "fullName": "Virat Kohli",
    "playerID": "3993",
    "birthPlace": "India",
    "playerRank": null,
    "image": "https://static-image.sportsapi360.com/cricket/logo/player/3993.png"
  }
]

Team Search

get

API Endpoint: Search Team

Purpose

This endpoint allows users to search for cricket teams based on a specified query. It is particularly useful for retrieving team information, such as the team's name, ID, short name, and associated image.

Request

  • Method: GET

  • URL: https://apiv3.sportsapi360.com/cricket/api/v2/search/team

Query Parameters

  • query (string, required): The name or part of the name of the cricket team you want to search for. For example, to search for the England cricket team, you would use query=England.

Expected Response Format

The response will be a JSON array containing objects that represent the teams matching the search criteria. Each object will include the following fields:

  • name (string): The full name of the cricket team.

  • teamID (string): A unique identifier for the team.

  • shortName (string): A shorter version of the team's name.

  • image (string): A URL or path to an image representing the team.

Additional Notes

  • Ensure that the query parameter is URL-encoded if it contains special characters.

  • The response may return an empty array if no teams match the search criteria.

  • This endpoint is useful for applications that require dynamic team information based on user input.

Authorizations
Query parameters
querystringOptionalExample: England
Header parameters
x-api-keystringOptionalExample: {API_KEY}
Responses
200
OK
application/json
Responseobject
get
GET /cricket/api/v2/search/team HTTP/1.1
Host: apiv3.sportsapi360.com
Authorization: x-api-key YOUR_SECRET_TOKEN
Accept: */*
200

OK

[
  {
    "name": "England",
    "teamID": "3",
    "shortName": "ENG",
    "image": "https://static-image.sportsapi360.com/cricket/logo/team/3.png"
  },
  {
    "name": "All England Eleven",
    "teamID": "59",
    "shortName": "AEE",
    "image": "https://static-image.sportsapi360.com/cricket/logo/team/59.png"
  },
  {
    "name": "Another England Eleven",
    "teamID": "75",
    "shortName": "ANE",
    "image": "https://static-image.sportsapi360.com/cricket/logo/team/75.png"
  },
  {
    "name": "A Shrewsbury's England XI",
    "teamID": "85",
    "shortName": "ASE",
    "image": "https://static-image.sportsapi360.com/cricket/logo/team/85.png"
  },
  {
    "name": "England A",
    "teamID": "269",
    "shortName": "ENA",
    "image": "https://static-image.sportsapi360.com/cricket/logo/team/269.png"
  },
  {
    "name": "England XI",
    "teamID": "289",
    "shortName": "ENG-XI",
    "image": "https://static-image.sportsapi360.com/cricket/logo/team/289.png"
  },
  {
    "name": "New All England Eleven",
    "teamID": "621",
    "shortName": "NAE",
    "image": "https://static-image.sportsapi360.com/cricket/logo/team/621.png"
  },
  {
    "name": "North of England",
    "teamID": "634",
    "shortName": "NE",
    "image": "https://static-image.sportsapi360.com/cricket/logo/team/634.png"
  },
  {
    "name": "New England XI",
    "teamID": "639",
    "shortName": "NEX",
    "image": "https://static-image.sportsapi360.com/cricket/logo/team/639.png"
  },
  {
    "name": "United North of England",
    "teamID": "982",
    "shortName": "UNE",
    "image": "https://static-image.sportsapi360.com/cricket/logo/team/982.png"
  }
]