Help us shape the future of Go! Take the 2026 Go Developer Survey

flashscore

package module
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 12 Imported by: 0

README

Flashscore clients for Crawlora

Official Crawlora client packages for the hosted Flashscore API. Access 54 API endpoints covering scores, match details, competitions, teams, players, odds, and news from JavaScript/TypeScript, Python, Go, Ruby, Java, and PHP. These clients call Crawlora's hosted API; they do not scrape Flashscore locally. Requests use your Crawlora account and CRAWLORA_API_KEY; service usage follows your account billing plan. Crawlora is independent from and not affiliated with or endorsed by Flashscore or its owners.

Language packages

For installation and runnable examples, use the README for your language. See the API endpoint and parameter reference for shared operation details.

Create an account at crawlora.net, open the Crawlora console to get an API key, or read the API documentation. Keep CRAWLORA_API_KEY out of source control.

API coverage and supported endpoints

The six language clients provide access to all 54 selected public Flashscore API operations. Search or browse by endpoint path and operation ID below; the complete API reference adds parameters, enums, and response details.

Method Endpoint API operation Description
GET /flashscore/calendar flashscore-calendar Flashscore season calendar
GET /flashscore/calendar-categories flashscore-calendar-categories Flashscore season calendar categories
GET /flashscore/competitions flashscore-competitions Flashscore competitions by sport and date
GET /flashscore/entity-news flashscore-entity-news Flashscore news for a team, player, tournament or sport
GET /flashscore/match-box-score flashscore-match-box-score Flashscore basketball, hockey and baseball box score
GET /flashscore/match-darts flashscore-match-darts Flashscore darts throw-by-throw and statistics
GET /flashscore/match-h2h flashscore-match-h2h Flashscore match head-to-head and recent results
GET /flashscore/match-highlights flashscore-match-highlights Flashscore match highlights
GET /flashscore/match-info flashscore-match-info Flashscore match venue and broadcast information
GET /flashscore/match-lineups flashscore-match-lineups Flashscore match lineups and formations
GET /flashscore/match-missing-players flashscore-match-missing-players Flashscore missing and doubtful players
GET /flashscore/match-momentum flashscore-match-momentum Flashscore football match momentum
GET /flashscore/match-news flashscore-match-news Flashscore match news references
GET /flashscore/match-odds flashscore-match-odds Flashscore match bookmaker odds comparison
GET /flashscore/match-player-stats flashscore-match-player-stats Flashscore football player match statistics and ratings
GET /flashscore/match-point-by-point flashscore-match-point-by-point Flashscore point-by-point scoring history
GET /flashscore/match-predicted-lineups flashscore-match-predicted-lineups Flashscore predicted lineups
GET /flashscore/match-report flashscore-match-report Flashscore editorial match report
GET /flashscore/match-standings flashscore-match-standings Flashscore match league standings
GET /flashscore/match-stats flashscore-match-stats Flashscore match statistics
GET /flashscore/match-tv flashscore-match-tv Flashscore match TV and streaming broadcasters
GET /flashscore/navigation flashscore-navigation Flashscore sport, category, country, and competition navigation
GET /flashscore/news flashscore-news Flashscore News listings by section
GET /flashscore/news-article flashscore-news-article Flashscore news article metadata
GET /flashscore/news-article-body flashscore-news-article-body Flashscore news article with full text
GET /flashscore/news-categories flashscore-news-categories Flashscore News categories
GET /flashscore/news-most-read flashscore-news-most-read Flashscore most-read news
GET /flashscore/odds-geos flashscore-odds-geos Flashscore odds markets, subdivisions and odds enums
GET /flashscore/player flashscore-player Flashscore player profile and career
GET /flashscore/player-fixtures flashscore-player-fixtures Flashscore player fixtures
GET /flashscore/player-injuries flashscore-player-injuries Flashscore player injury history
GET /flashscore/player-match-log flashscore-player-match-log Flashscore player match log
GET /flashscore/player-news flashscore-player-news Flashscore player news
GET /flashscore/player-results flashscore-player-results Flashscore player results
GET /flashscore/player-transfers flashscore-player-transfers Flashscore player transfer history
GET /flashscore/ranking-categories flashscore-ranking-categories Flashscore ranking categories
GET /flashscore/rankings flashscore-rankings Flashscore rankings
GET /flashscore/scores flashscore-scores Flashscore scores and fixtures by sport
GET /flashscore/search flashscore-search Flashscore search
GET /flashscore/sports flashscore-sports Flashscore sports and live category counts
GET /flashscore/team flashscore-team Flashscore team profile
GET /flashscore/team-fixtures flashscore-team-fixtures Flashscore team fixtures
GET /flashscore/team-news flashscore-team-news Flashscore team news headlines
GET /flashscore/team-outright-odds flashscore-team-outright-odds Flashscore team title odds
GET /flashscore/team-results flashscore-team-results Flashscore team results
GET /flashscore/team-squad flashscore-team-squad Flashscore team squad
GET /flashscore/team-transfers flashscore-team-transfers Flashscore team transfers
GET /flashscore/top-search flashscore-top-search Flashscore top search entities
GET /flashscore/tournament-archive-seasons flashscore-tournament-archive-seasons Flashscore competition seasons by stage id
GET /flashscore/tournament-events flashscore-tournament-events Flashscore tournament season results or fixtures
GET /flashscore/tournament-outright-odds flashscore-tournament-outright-odds Flashscore competition winner odds
GET /flashscore/tournament-seasons flashscore-tournament-seasons Flashscore tournament archive seasons
GET /flashscore/tournament-standings flashscore-tournament-standings Flashscore competition standings table
GET /flashscore/tournament-standings-views flashscore-tournament-standings-views Flashscore competition standings view discovery

License

MIT. See LICENSE.

Documentation

Overview

Package flashscore is Crawlora's Flashscore API client for 54 endpoints, covering scores, match details, competitions, teams, players, odds, and news. API documentation: https://crawlora.net/docs?utm_source=pkg.go.dev&utm_medium=referral&utm_campaign=platform-clients&utm_content=flashscore-go-api-docs

Index

Examples

Constants

View Source
const (
	DefaultBaseURL = "https://api.crawlora.net/api/v1"
	Version        = "0.3.6"
)
View Source
const OperationCount = 54

OperationCount reports how many selected-platform operations this module exposes.

Variables

This section is empty.

Functions

func OperationIDs

func OperationIDs() []string

OperationIDs returns the selected operation IDs in stable sorted order.

Types

type Client

type Client struct {
	APIKey     string
	BaseURL    string
	Timeout    time.Duration
	HTTPClient *http.Client
}

Client calls only the operation IDs included in this platform module.

func NewClient

func NewClient(apiKey string) *Client

NewClient creates a client using the supplied API key, or CRAWLORA_API_KEY when empty.

func (*Client) Calendar

func (c *Client) Calendar(ctx context.Context, params Params) (any, error)

Calendar calls the flashscore-calendar operation.

func (*Client) CalendarCategories

func (c *Client) CalendarCategories(ctx context.Context, params Params) (any, error)

CalendarCategories calls the flashscore-calendar-categories operation.

func (*Client) Call

func (c *Client) Call(ctx context.Context, operationID string, params Params) (any, error)

Call executes a selected platform operation by operation ID.

Example
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
	w.Header().Set("Content-Type", "application/json")
	_, _ = w.Write([]byte(`{"ok":true}`))
}))
defer server.Close()

client := NewClient("your-crawlora-api-key")
client.BaseURL = server.URL + "/api/v1"
client.HTTPClient = server.Client()
result, err := client.Call(context.Background(), "flashscore-calendar", Params{"category": "tennis-atp"})
if err != nil {
	panic(err)
}
fmt.Println(result.(map[string]any)["ok"])
Output:
true

func (*Client) Close

func (c *Client) Close() error

Close releases idle connections held by the configured HTTP transport.

func (*Client) Competitions

func (c *Client) Competitions(ctx context.Context, params Params) (any, error)

Competitions calls the flashscore-competitions operation.

func (*Client) EntityNews added in v0.3.0

func (c *Client) EntityNews(ctx context.Context, params Params) (any, error)

EntityNews calls the flashscore-entity-news operation.

func (*Client) MatchBoxScore added in v0.3.0

func (c *Client) MatchBoxScore(ctx context.Context, params Params) (any, error)

MatchBoxScore calls the flashscore-match-box-score operation.

func (*Client) MatchDarts added in v0.3.0

func (c *Client) MatchDarts(ctx context.Context, params Params) (any, error)

MatchDarts calls the flashscore-match-darts operation.

func (*Client) MatchH2h

func (c *Client) MatchH2h(ctx context.Context, params Params) (any, error)

MatchH2h calls the flashscore-match-h2h operation.

func (*Client) MatchHighlights

func (c *Client) MatchHighlights(ctx context.Context, params Params) (any, error)

MatchHighlights calls the flashscore-match-highlights operation.

func (*Client) MatchInfo

func (c *Client) MatchInfo(ctx context.Context, params Params) (any, error)

MatchInfo calls the flashscore-match-info operation.

func (*Client) MatchLineups

func (c *Client) MatchLineups(ctx context.Context, params Params) (any, error)

MatchLineups calls the flashscore-match-lineups operation.

func (*Client) MatchMissingPlayers

func (c *Client) MatchMissingPlayers(ctx context.Context, params Params) (any, error)

MatchMissingPlayers calls the flashscore-match-missing-players operation.

func (*Client) MatchMomentum added in v0.3.0

func (c *Client) MatchMomentum(ctx context.Context, params Params) (any, error)

MatchMomentum calls the flashscore-match-momentum operation.

func (*Client) MatchNews

func (c *Client) MatchNews(ctx context.Context, params Params) (any, error)

MatchNews calls the flashscore-match-news operation.

func (*Client) MatchOdds

func (c *Client) MatchOdds(ctx context.Context, params Params) (any, error)

MatchOdds calls the flashscore-match-odds operation.

func (*Client) MatchPlayerStats added in v0.3.0

func (c *Client) MatchPlayerStats(ctx context.Context, params Params) (any, error)

MatchPlayerStats calls the flashscore-match-player-stats operation.

func (*Client) MatchPointByPoint added in v0.3.0

func (c *Client) MatchPointByPoint(ctx context.Context, params Params) (any, error)

MatchPointByPoint calls the flashscore-match-point-by-point operation.

func (*Client) MatchPredictedLineups

func (c *Client) MatchPredictedLineups(ctx context.Context, params Params) (any, error)

MatchPredictedLineups calls the flashscore-match-predicted-lineups operation.

func (*Client) MatchReport added in v0.3.0

func (c *Client) MatchReport(ctx context.Context, params Params) (any, error)

MatchReport calls the flashscore-match-report operation.

func (*Client) MatchStandings

func (c *Client) MatchStandings(ctx context.Context, params Params) (any, error)

MatchStandings calls the flashscore-match-standings operation.

func (*Client) MatchStats

func (c *Client) MatchStats(ctx context.Context, params Params) (any, error)

MatchStats calls the flashscore-match-stats operation.

func (*Client) MatchTv

func (c *Client) MatchTv(ctx context.Context, params Params) (any, error)

MatchTv calls the flashscore-match-tv operation.

func (*Client) Navigation

func (c *Client) Navigation(ctx context.Context, params Params) (any, error)

Navigation calls the flashscore-navigation operation.

func (*Client) News

func (c *Client) News(ctx context.Context, params Params) (any, error)

News calls the flashscore-news operation.

func (*Client) NewsArticle

func (c *Client) NewsArticle(ctx context.Context, params Params) (any, error)

NewsArticle calls the flashscore-news-article operation.

func (*Client) NewsArticleBody added in v0.3.0

func (c *Client) NewsArticleBody(ctx context.Context, params Params) (any, error)

NewsArticleBody calls the flashscore-news-article-body operation.

func (*Client) NewsCategories

func (c *Client) NewsCategories(ctx context.Context, params Params) (any, error)

NewsCategories calls the flashscore-news-categories operation.

func (*Client) NewsMostRead added in v0.3.0

func (c *Client) NewsMostRead(ctx context.Context, params Params) (any, error)

NewsMostRead calls the flashscore-news-most-read operation.

func (*Client) OddsGeos

func (c *Client) OddsGeos(ctx context.Context, params Params) (any, error)

OddsGeos calls the flashscore-odds-geos operation.

func (*Client) Player

func (c *Client) Player(ctx context.Context, params Params) (any, error)

Player calls the flashscore-player operation.

func (*Client) PlayerFixtures added in v0.3.0

func (c *Client) PlayerFixtures(ctx context.Context, params Params) (any, error)

PlayerFixtures calls the flashscore-player-fixtures operation.

func (*Client) PlayerInjuries

func (c *Client) PlayerInjuries(ctx context.Context, params Params) (any, error)

PlayerInjuries calls the flashscore-player-injuries operation.

func (*Client) PlayerMatchLog added in v0.3.0

func (c *Client) PlayerMatchLog(ctx context.Context, params Params) (any, error)

PlayerMatchLog calls the flashscore-player-match-log operation.

func (*Client) PlayerNews added in v0.3.0

func (c *Client) PlayerNews(ctx context.Context, params Params) (any, error)

PlayerNews calls the flashscore-player-news operation.

func (*Client) PlayerResults added in v0.3.0

func (c *Client) PlayerResults(ctx context.Context, params Params) (any, error)

PlayerResults calls the flashscore-player-results operation.

func (*Client) PlayerTransfers

func (c *Client) PlayerTransfers(ctx context.Context, params Params) (any, error)

PlayerTransfers calls the flashscore-player-transfers operation.

func (*Client) RankingCategories

func (c *Client) RankingCategories(ctx context.Context, params Params) (any, error)

RankingCategories calls the flashscore-ranking-categories operation.

func (*Client) Rankings

func (c *Client) Rankings(ctx context.Context, params Params) (any, error)

Rankings calls the flashscore-rankings operation.

func (*Client) Scores

func (c *Client) Scores(ctx context.Context, params Params) (any, error)

Scores calls the flashscore-scores operation.

func (*Client) Search

func (c *Client) Search(ctx context.Context, params Params) (any, error)

Search calls the flashscore-search operation.

func (*Client) Sports

func (c *Client) Sports(ctx context.Context, params Params) (any, error)

Sports calls the flashscore-sports operation.

func (*Client) Team

func (c *Client) Team(ctx context.Context, params Params) (any, error)

Team calls the flashscore-team operation.

func (*Client) TeamFixtures

func (c *Client) TeamFixtures(ctx context.Context, params Params) (any, error)

TeamFixtures calls the flashscore-team-fixtures operation.

func (*Client) TeamNews

func (c *Client) TeamNews(ctx context.Context, params Params) (any, error)

TeamNews calls the flashscore-team-news operation.

func (*Client) TeamOutrightOdds added in v0.3.0

func (c *Client) TeamOutrightOdds(ctx context.Context, params Params) (any, error)

TeamOutrightOdds calls the flashscore-team-outright-odds operation.

func (*Client) TeamResults

func (c *Client) TeamResults(ctx context.Context, params Params) (any, error)

TeamResults calls the flashscore-team-results operation.

func (*Client) TeamSquad

func (c *Client) TeamSquad(ctx context.Context, params Params) (any, error)

TeamSquad calls the flashscore-team-squad operation.

func (*Client) TeamTransfers

func (c *Client) TeamTransfers(ctx context.Context, params Params) (any, error)

TeamTransfers calls the flashscore-team-transfers operation.

func (*Client) TopSearch

func (c *Client) TopSearch(ctx context.Context, params Params) (any, error)

TopSearch calls the flashscore-top-search operation.

func (*Client) TournamentArchiveSeasons added in v0.3.0

func (c *Client) TournamentArchiveSeasons(ctx context.Context, params Params) (any, error)

TournamentArchiveSeasons calls the flashscore-tournament-archive-seasons operation.

func (*Client) TournamentEvents

func (c *Client) TournamentEvents(ctx context.Context, params Params) (any, error)

TournamentEvents calls the flashscore-tournament-events operation.

func (*Client) TournamentOutrightOdds added in v0.3.0

func (c *Client) TournamentOutrightOdds(ctx context.Context, params Params) (any, error)

TournamentOutrightOdds calls the flashscore-tournament-outright-odds operation.

func (*Client) TournamentSeasons

func (c *Client) TournamentSeasons(ctx context.Context, params Params) (any, error)

TournamentSeasons calls the flashscore-tournament-seasons operation.

func (*Client) TournamentStandings

func (c *Client) TournamentStandings(ctx context.Context, params Params) (any, error)

TournamentStandings calls the flashscore-tournament-standings operation.

func (*Client) TournamentStandingsViews

func (c *Client) TournamentStandingsViews(ctx context.Context, params Params) (any, error)

TournamentStandingsViews calls the flashscore-tournament-standings-views operation.

type Params

type Params map[string]any

Params maps the exact OpenAPI parameter names expected by this platform client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL