Skip to main content
GET
/
news
Basketball News
curl --request GET \
  --url https://v1.basketball.sportsapipro.com/news \
  --header 'x-api-key: <api-key>'

Overview

Returns basketball-related news articles, match previews, and updates. News can be filtered by competition or specific game.

Query Parameters

competitions
integer
Filter news by competition ID (e.g., 132 for NBA)
games
integer
Filter news by specific game ID for match-related content
isPreview
boolean
Return preview content for upcoming games
limit
integer
Maximum number of articles to return (default: 10)

Code Examples

curl -X GET "https://v1.basketball.sportsapipro.com/news?competitions=132&limit=5" \
  -H "x-api-key: YOUR_API_KEY"

Response Structure

articles
array
Array of news articles

Example Response

{
  "articles": [
    {
      "id": "12345",
      "title": "Lakers Win Thrilling Overtime Game Against Celtics",
      "summary": "LeBron James leads late comeback with 35 points...",
      "imageUrl": "https://...",
      "publishedAt": "2026-01-26T20:30:00Z",
      "source": "NBA.com"
    }
  ]
}

Use Cases

  • Pre-game content: Use isPreview=true to get match preview articles
  • Competition updates: Filter by competitions for league-specific news
  • Match analysis: Use games parameter for post-game analysis

Authorizations

x-api-key
string
header
required

Your SportsAPI Pro API key

Query Parameters

competitions
integer

Filter by competition ID (e.g., 132 for NBA)

Example:

132

games
integer

Filter by game ID for match-specific news

limit
integer
default:10

Maximum number of articles to return

Response

200

News articles retrieved successfully