NAV
shell

Introduction

General Header

  curl "{{BASE_URL}}/api-endpoint"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

General Response

{
  "status": "success",
  "payload": {
    // here response data
  }
}

Welcome to the NextGen360 API Documentation

The NextGen360 Multitenant Sports System portal will create digital relationship between the fans by offering distinct type of sports on a single platform with features which are fan centric as well as fan first.

Configuration

HTTP Request

GET

  curl "{{BASE_URL}}/config"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Response

{
  "status": "success",
  "payload": {
    "app_links": {
      "ios": "ios",
      "android": "android"
    },
    "social_links": {
      "youtube": "www.youtube.com",
      "facebook": "www.facebook.com",
      "twitter": "www.twitter.com",
      "instagram": "www.instagram.com"
    }
  }
}

GET {{BASE_URL}}/config

Sponsors

HTTP Request

GET

  curl "{{BASE_URL}}/sponsors"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Response

{
  "status": "success",
  "payload": {
    "id": "string",
    "name": "sponsor name",
    "logo": "https://image-url.com/",
    "url": "https://sponsor-url.com/",
    "type": "gold | silver | ...",
    "status": "true | false",
  }
}

GET {{BASE_URL}}/sponsors

Banners

HTTP Request

GET

  curl "{{BASE_URL}}/banners"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Response

{
  "status": "success",
  "payload": {
    "image": {
      "web": "https://image-url.com/",
      "android": "https://image-url.com/",
      "ios": "https://image-url.com/",
    },
    "isExternalLink": 1,
    "link": {
      "page": "news",
      "slug": "watch-the-best-of-andy",
      "externalURL": "http://external-link.com"
    },
    "overlay": {
      "heading": {
          "line1": "Football",
          "line2": "premiere",
          "line3": "League"
      },
      "des": "Watch the best of Andy 33 Premier League goals for the Hammers before he rejoined Newcastle ahead of 2019/20",
      "likesCount": 3223,
    }
  }
}

GET {{BASE_URL}}/banners

Points table

HTTP Request

GET

  curl "{{BASE_URL}}/points-table"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Response

{
  "status": "success",
  "payload": {
    "club": {
      "logo": "logo",
      "name": "Liverpool",
      "short_name": "LP",
      "abbrevation": "LP"
    },
    "stats": {
      "played": 10, // PL
      "won": 10, // W 
      "drawn": 10,  // D
      "lost": 10, // L
      "goals_for": 10, // GF
      "goals_against": 10, // GA
      "goal_difference": 10, // GD
      "points": 10.1 // Pts
    }
  }
}

GET {{BASE_URL}}/points-table

Latest news list

HTTP Request

GET

  curl "{{BASE_URL}}/latest-news-list"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Response

{
  "status": "success",
  "payload": [
    {
      "slug": "watch-the-best-of-andy-33-premier",
      "type": "news", // news | article | video 
      "title": "Watch the best of Andy 33 Premier.",
      "des": "Watch the best of Andy 33 Premier League goals for the Hammers before he rejoined Newcastle ahead of 2019/20",
      "date": "June 19, 2020",
      "related": {
          "logo": "image",
          "title": "Newcastle ahead of 2019/20",
      }
    },

    {
      "slug": "watch-the-best-of-andy-33-premier",
      "title": "Watch the best of Andy 33 Premier.",
      "des": "Watch the best of Andy 33 Premier League goals for the Hammers before he rejoined Newcastle ahead of 2019/20",
      "date": "June 19, 2020",
      "related": {
          "logo": "image",
          "title": "Newcastle ahead of 2019/20",
      }
    },
  ]
}

GET {{BASE_URL}}/latest-news-list

Top performers

HTTP Request

GET

  curl "{{BASE_URL}}/top-performers"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Response

{
  "status": "success",
  "payload": [
    {
      "player": {
          "name": "Raheem sterling",
          "logo": "logo",
          "playing_position": "Forward",
          "country": "Pakistan"
      },
      "stats": {
          "appearances": 251,
          "goals": 78,
          "assists": 44,
          "shots": 519
      },
      "club": {
          "logo": "logo",
          "name": "Liverpool",
          "short_name": "LP",
          "abbrevation": "LP",
          "primary_color": "#000000", // #hex 
          "secondary_color": "#000000" // #hex 
      }
    },
    ...
  ]
}

GET {{BASE_URL}}/top-performers

Fixtures

HTTP Request

GET

  curl "{{BASE_URL}}/fixtures"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Response

{
  "status": "success",
  "payload": [
    {
      "scheduled_date": "dd-mm-yyyy hh:mm:ss", //
      "match_status": "in_play", // bhot sa han idr
      "club1": {
          "logo": "logo",
          "name": "Liverpool",
          "short_name": "LP",
          "abbrevation": "LP",
      },
      "club2": {
          "logo": "logo",
          "name": "Liverpool",
          "short_name": "LP",
          "abbrevation": "LP",
      }, 
      "stats": {
          "club_1_score": 2,
          "club_2_score": 5,
      }
    },
    ...
  ]
}

GET {{BASE_URL}}/fixtures

Photo gallery

HTTP Request

GET

  curl "{{BASE_URL}}/photo-gallery"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Response

{
  "status": "success",
  "payload": [
    {
        "slug": "introduction-accelerate-puma-balls-2021",
        "title": "Introduction Accelerate & Puma balls 2021",
        "des": "Introduction Accelerate & Puma balls 2021. Introduction Accelerate & Puma balls 2021",
        "preview_iamge": "image",
        "images_count": 10,
    },
    {
        "slug": "introduction-accelerate-puma-balls-2021",
        "title": "Introduction Accelerate & Puma balls 2021",
        "des": "Introduction Accelerate & Puma balls 2021. Introduction Accelerate & Puma balls 2021",
        "preview_iamge": "image",
        "images_count": 10,
    },
    ...
  ]
}

GET {{BASE_URL}}/photo-gallery

Match highlights

HTTP Request

GET

  curl "{{BASE_URL}}/match-highlights"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Response

{
  "status": "success",
  "payload": [
    {
      "preview_iamge": "image",
      "title": "title",
      "slug": "slug"
    },
    {
      "preview_iamge": "image",
      "title": "title",
      "slug": "slug"
    },
    ...
  ]
}

GET {{BASE_URL}}/match-highlights

Like

HTTP Request

POST

  curl "{{BASE_URL}}/like"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Body

{
  "type": "news", // video | news | player
  "slug": "slug"
}

POST {{BASE_URL}}/like

Following

HTTP Request

POST

  curl "{{BASE_URL}}/following"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Body

{
  "type": "news", // video | news | player
  "slug": "slug"
}

POST {{BASE_URL}}/following

Errors

The Kittn API uses the following error codes:

Error Code Meaning
400 Bad Request -- Your request is invalid.
401 Unauthorized -- Your API key is wrong.
403 Forbidden -- The kitten requested is hidden for administrators only.
404 Not Found -- The specified kitten could not be found.
405 Method Not Allowed -- You tried to access a kitten with an invalid method.
406 Not Acceptable -- You requested a format that isn't json.
410 Gone -- The kitten requested has been removed from our servers.
418 I'm a teapot.
429 Too Many Requests -- You're requesting too many kittens! Slow down!
500 Internal Server Error -- We had a problem with our server. Try again later.
503 Service Unavailable -- We're temporarily offline for maintenance. Please try again later.