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

fotmob

package module
v0.1.10 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

FotMob clients for Crawlora

Official Crawlora client packages for the hosted FotMob API. Access 31 API endpoints covering leagues, matches, fixtures, teams, players, search, standings, news, and rankings from JavaScript/TypeScript, Python, Go, Ruby, Java, and PHP. These clients call Crawlora's hosted API; they do not scrape FotMob 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 FotMob 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 31 selected public FotMob 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 /fotmob/audio-matches fotmob-audio-matches FotMob matches with audio commentary
GET /fotmob/fifa-ranking-periods fotmob-fifa-ranking-periods FotMob FIFA ranking period directory
GET /fotmob/fifa-rankings fotmob-fifa-rankings FotMob FIFA national-team rankings
GET /fotmob/latest-news fotmob-latest-news FotMob latest football news
GET /fotmob/league fotmob-league FotMob league details and sections
GET /fotmob/leagues fotmob-leagues FotMob competition directory
GET /fotmob/lineup-builder-players fotmob-lineup-builder-players FotMob lineup builder player metadata
GET /fotmob/lineup-builder-team fotmob-lineup-builder-team FotMob lineup builder team data
GET /fotmob/match fotmob-match FotMob match details
GET /fotmob/match-media fotmob-match-media FotMob match videos and media metadata
GET /fotmob/matches fotmob-matches FotMob matches for a date
GET /fotmob/news fotmob-news FotMob league news
GET /fotmob/news-article fotmob-news-article FotMob full top-news article
GET /fotmob/player fotmob-player FotMob player profile
GET /fotmob/player-match-stats fotmob-player-match-stats FotMob player match stats
GET /fotmob/player-matches fotmob-player-matches FotMob player match history
GET /fotmob/player-stats fotmob-player-stats FotMob player season statistics
GET /fotmob/search fotmob-search Search FotMob entities
GET /fotmob/seasons fotmob-seasons FotMob league season discovery
GET /fotmob/stats fotmob-stats FotMob league player or team statistics
GET /fotmob/stats-categories fotmob-stats-categories FotMob league stat categories and seasons
GET /fotmob/table fotmob-table FotMob league table
GET /fotmob/team fotmob-team FotMob team details
GET /fotmob/team-fixtures fotmob-team-fixtures FotMob paginated team fixtures
GET /fotmob/team-news fotmob-team-news FotMob team news
GET /fotmob/transfers fotmob-transfers FotMob transfer center
GET /fotmob/trending-news fotmob-trending-news FotMob trending football news
GET /fotmob/trending-searches fotmob-trending-searches FotMob trending search suggestions
GET /fotmob/tv-guide fotmob-tv-guide FotMob football TV guide
GET /fotmob/tv-guide-channels fotmob-tv-guide-channels FotMob TV guide channels
GET /fotmob/tv-guide-countries fotmob-tv-guide-countries FotMob TV guide country directory

License

MIT. See LICENSE.

Documentation

Overview

Package fotmob is Crawlora's FotMob API client for 31 endpoints, covering leagues, matches, fixtures, teams, players, search, standings, news, and rankings. API documentation: https://crawlora.net/docs?utm_source=pkg.go.dev&utm_medium=referral&utm_campaign=platform-clients&utm_content=fotmob-go-api-docs

Index

Examples

Constants

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

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) AudioMatches

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

AudioMatches calls the fotmob-audio-matches 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(), "fotmob-audio-matches", Params{})
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) FifaRankingPeriods

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

FifaRankingPeriods calls the fotmob-fifa-ranking-periods operation.

func (*Client) FifaRankings

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

FifaRankings calls the fotmob-fifa-rankings operation.

func (*Client) LatestNews

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

LatestNews calls the fotmob-latest-news operation.

func (*Client) League

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

League calls the fotmob-league operation.

func (*Client) Leagues

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

Leagues calls the fotmob-leagues operation.

func (*Client) LineupBuilderPlayers

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

LineupBuilderPlayers calls the fotmob-lineup-builder-players operation.

func (*Client) LineupBuilderTeam

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

LineupBuilderTeam calls the fotmob-lineup-builder-team operation.

func (*Client) Match

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

Match calls the fotmob-match operation.

func (*Client) MatchMedia

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

MatchMedia calls the fotmob-match-media operation.

func (*Client) Matches

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

Matches calls the fotmob-matches operation.

func (*Client) News

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

News calls the fotmob-news operation.

func (*Client) NewsArticle

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

NewsArticle calls the fotmob-news-article operation.

func (*Client) Player

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

Player calls the fotmob-player operation.

func (*Client) PlayerMatchStats

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

PlayerMatchStats calls the fotmob-player-match-stats operation.

func (*Client) PlayerMatches

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

PlayerMatches calls the fotmob-player-matches operation.

func (*Client) PlayerStats

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

PlayerStats calls the fotmob-player-stats operation.

func (*Client) Search

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

Search calls the fotmob-search operation.

func (*Client) Seasons

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

Seasons calls the fotmob-seasons operation.

func (*Client) Stats

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

Stats calls the fotmob-stats operation.

func (*Client) StatsCategories

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

StatsCategories calls the fotmob-stats-categories operation.

func (*Client) Table

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

Table calls the fotmob-table operation.

func (*Client) Team

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

Team calls the fotmob-team operation.

func (*Client) TeamFixtures

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

TeamFixtures calls the fotmob-team-fixtures operation.

func (*Client) TeamNews

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

TeamNews calls the fotmob-team-news operation.

func (*Client) Transfers

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

Transfers calls the fotmob-transfers operation.

func (*Client) TrendingNews

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

TrendingNews calls the fotmob-trending-news operation.

func (*Client) TrendingSearches

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

TrendingSearches calls the fotmob-trending-searches operation.

func (*Client) TvGuide

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

TvGuide calls the fotmob-tv-guide operation.

func (*Client) TvGuideChannels

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

TvGuideChannels calls the fotmob-tv-guide-channels operation.

func (*Client) TvGuideCountries

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

TvGuideCountries calls the fotmob-tv-guide-countries 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