Flashscore API endpoint
Returns Flashscore's public head-to-head and recent-results feed for a match id copied from a Flashscore match URL. The raw upstream feed is preserved as text because its format is not JSON.
/flashscore/match-h2hQuery parameters:
id (required): eight-character match id from a Flashscore match URL, for example xtmHKGT0.Returns the raw delimited head-to-head and recent-results feed as text under data. It may contain previous match IDs, teams, competitions, dates, scores, and result metadata; available fields depend on the match.
| Field | In the sample | Value in the sample |
|---|---|---|
| data | Has a value | 75,233 characters |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Eight-character Flashscore match id | xtmHKGT0 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/flashscore/match-h2h?id=xtmHKGT0" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"source_url": "https://global.flashscore.ninja/2/x/feed/df_hh_2_xtmHKGT0",
"data": "SA÷1¬~KA÷Overall¬IS÷¬~KB÷Last matches: Arsenal¬~KC÷1789826400¬KP÷j52jHsN8¬KF÷Premier League¬AC÷3¬KG÷198¬KH÷England¬KI÷PL¬~"
}
}Request schema
No body schema
Response schema
#/definitions/flashscore.responseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | flashscore.sourceDataDoc | No | ||||
| data.data | string | No | SE÷Match¬~SF÷Top stats¬~SD÷432¬SG÷Expected goals (xG)¬SH÷0.00¬SI÷0.00¬~ | |||
| data.source_url | string | No | https://global.flashscore.ninja/2/x/feed/df_st_2_xtmHKGT0 | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/flashscore/match-h2h?id=xtmHKGT0" \
-H "x-api-key: $CRAWLORA_API_KEY"