npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sportal365-content-sdk

v0.10.13

Published

## SDK Installation

Downloads

3

Readme

Sportal365 Typescript SDK

SDK Installation

NPM

npm install sportal365-content-sdk

Yarn

yarn add sportal365-content-sdk

SDK Example Usage

Example

import withAuthorization from "sportal365-content-sdk/oauth";
import { ContentApi } from "sportal365-content-sdk";

(async () => {
  const authRequest = withAuthorization(
    clientId,
    clientSecret,
    username,
    password
  );

  const auth = await authRequest();
  const sdk = new ContentApi(auth);
  const articles = await sdk.articles.getArticlesV2({
    page: 1,
    language: "en",
    limit: 10,
    project: "smp.demo",
  });
})();

Available Resources and Operations

articles

  • getArticleById - An article obtained by its ID. Note the Swagger list of returned properties does not include custom created properties from /articles/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility
  • getArticles - A paginated list of articles. Note the Swagger list of returned properties does not include custom created properties from /articles/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility
  • getArticlesV2 - A paginated list of articles. Note the Swagger list of returned properties does not include custom created properties from /articles/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility
  • getRelatedArticles - Get related content of an article. No resources from provider:sports-search-api will be returned
  • getRelatedArticlesV2 - Get related content of an article, including sport relations from different providers
  • searchArticles - A paginated list of articles. Note the list of queried/returned properties does not include custom created properties from /articles/properties
  • searchArticlesV2 - A paginated list of articles. Note the list of queried/returned properties does not include custom created properties from /articles/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility

authors

banners

  • getBannerById - Get Single Banner. Note the Swagger list of returned properties does not include custom created properties from /banners/properties
  • getBanners - List of all Banners. Note the Swagger list of returned properties does not include custom created properties from /banners/properties
  • searchBanners - A filtered list of Banners. Note the list of queried/returned properties does not include custom created properties from /banners/properties

categories

distribution

galleries

  • getGalleries - A paginated list of galleries. Note the Swagger list of returned properties does not include custom created properties from /galleries/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility
  • getGalleriesV2 - A paginated list of galleries. Note the Swagger list of returned properties does not include custom created properties from /galleries/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility
  • getGalleryById - A gallery obtained by its ID. Note the Swagger list of returned properties does not include custom created properties from /galleries/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility
  • getRelatedGalleries - Get related content of a gallery. No resources from provider:sports-search-api will be returned
  • getRelatedGalleriesV2 - Get related content of a gallery, including sport relations from different providers
  • searchGalleries - A paginated list of galleries. Note the list of queried/returned properties does not include custom created properties from /galleries/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility
  • searchGalleriesV2 - A paginated list of galleries. Note the list of queried/returned properties does not include custom created properties from /galleries/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility

images

latestFeed

  • getLatestFeed - Aggregated list of articles, videos, galleries, liveblogs from the last 5 days

lists

miscellaneous

  • getMappings - Get ID mappings according to various filters

tags

videos

  • getRelatedVideos - Get related content of a video. No resources from provider:sports-search-api will be returned
  • getRelatedVideosV2 - Get related content of a video, including sport relations from different providers
  • getVideoById - A video obtained by its ID. Note the Swagger list of returned properties does not include custom created properties from /videos/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility
  • getVideos - A paginated list of videos. Note the Swagger list of returned properties does not include custom created properties from /videos/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility
  • getVideosV2 - A paginated list of videos. Note the Swagger list of returned properties does not include custom created properties from /videos/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility
  • searchVideos - A paginated list of videos. Note the list of queried/returned properties does not include custom created properties from /videos/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility
  • searchVideosV2 - A paginated list of videos. Note the list of queried/returned properties does not include custom created properties from /videos/properties. Note also that content properties is_adult_content/is_sensitive_content would always be included in response DTOs as adult_content/sensitive_content for backward compatibility

wikiPages

  • getRelatedWikiPages - Get related content of a wiki page
  • getWikiPageById - A wiki page obtained by its ID. Note the Swagger list of returned properties does not include custom created properties from /wiki-pages/properties
  • getWikiPages - A paginated list of wiki pages. Note the Swagger list of returned properties does not include custom created properties from /wiki-pages/properties
  • searchWikiPages - A paginated list of wiki pages. Note the list of queried/returned properties does not include custom created properties from /wiki-pages/properties

commentPolicies

contentOrigins

contentProperties

contentStatuses

contentTypes

Server Selection

Select Server by Name

You can override the default server globally by passing a server name to the server: string optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:

| Name | Server | Variables | | ------------- | ------------------------------------------------ | --------- | | sandbox | https://content.api.sandbox.sportal365.com | None | | prod | https://content.api.sportal365.com | None | | staging | https://content.api.staging.sportal365.com | None | | integration | https://content.api.integration.sportal365.com | None | | betway | https://content.api.de2.sportal365.com | None | | bet365 | https://content.api.de1.sportal365.com | None | | livescore | https://content.api.uk1.sportal365.com | None |

Example

import withAuthorization from "sportal365-content-sdk/oauth";
import { ContentApi } from "sportal365-content-sdk";

(async () => {
  const authRequest = withAuthorization(
    clientId,
    clientSecret,
    username,
    password,
    "integration"
  );

  const authData = await authRequest();
  const sdk = new ContentApi({
    auth: authData.auth,
    server: "integration",
  });
  const articles = await sdk.articles.getArticlesV2({
    page: 1,
    language: "en",
    limit: 10,
    project: "smp.frontend",
  });
})();

Direct token implementation

Directly pass the token to the SDK instance

If you have an oath token you won't need to go through the authRequest() process and you can directly pass the token to the instance of the ContentApi you are making

import { ContentApi } from "sportal365-content-sdk";

(async () => {
  const sdk = new ContentApi({
    auth: "example_token",
  });
  const articles = await sdk.articles.getArticlesV2({
    page: 1,
    language: "en",
    limit: 10,
    project: "smp.frontend",
  });
})();