Cycling stage-race research
Build a sourced cycling race, stage, or season brief with the endpoints in
reference/endpoints.md. SofaScore uses separate
competition IDs and stage IDs. Resolve each ID from the preceding discovery
response; do not assume road-race categories use the match-based football
endpoints. The UCI road calendar and results
and official Tour de France stage rankings
provide event context outside this Crawlora data workflow.
Resolve a cycling competition and season
- Call
sofascore_stage_categorieswithsport=cyclingand select the returned Cycling Men or Cycling Women competition that fits the request. Use its competitionidwithsofascore_stage_seasons; the competition ID is not a stage ID. - Pass the selected season's stage
idtosofascore_stage_substagesto discover its events. Carry each event ID, round, date, status, and winner as returned. Usesofascore_stagefor an event's details. - For a date-oriented calendar, call
sofascore_stage_schedulewithsport=cyclingand a real UTC date. This returns events around that date, not a strict one-day slice. Use each row'son_datefield to identify a session that starts on the requested UTC date. sofascore_stage_featuredis a current featured snapshot, not a complete competition calendar. Use season discovery and its child events for full season coverage.
Research an event and its stages
- Pass a race event's stage ID to
sofascore_stage_substagesto list its numbered stages. The event and its individual stage IDs are different. - Use
sofascore_stagefor a stage's published detail and status, thensofascore_stage_standingswithtype=competitorfor its classification. Preserve the source's order, time gaps, omissions, and retirement or non-finish labels. - Use
sofascore_stage_standingswithtype=competitoron a season stage ID when the source publishes a competition table. Team classifications are not available for cycling in this catalog; do not infer them from rider rows. A missing or unavailable classification is not a zero-point result. - Keep a race-event aggregate, an individual-stage result, and a season table separate. Do not recompute general-classification times, award UCI points, infer climb or sprint classifications, or merge men's and women's competitions based on similar event names.
- Cycling stage results are not Strava routes or a training feed. Do not use these results to infer an individual's exercise routine or location history.
Deliverable
Label each table as a competition calendar, race event, stage classification, or season table. Include the competition, season and stage IDs, event status, retrieval time, and timezone context for dates. Note when a source result is unfinished, absent, or unpublished. Cite the exact Crawlora endpoint and use official race pages only for additional event context; do not present provisional results as final or infer performance explanations from rankings.
Calling the API
# Discover cycling competitions and their seasons
scripts/crawlora.sh /sofascore/stage-categories sport=cycling | jq '.'
scripts/crawlora.sh /sofascore/stage-seasons id=<cycling-competition-id> | jq '.'
# List race events and resolve one event's stages
scripts/crawlora.sh /sofascore/stage-substages id=<season-stage-id> | jq '.'
scripts/crawlora.sh /sofascore/stage-substages id=<race-event-stage-id> | jq '.'
# Inspect a stage and its published results
scripts/crawlora.sh /sofascore/stage id=<stage-id> | jq '.'
scripts/crawlora.sh /sofascore/stage-standings id=<stage-id> type=competitor | jq '.'
Use the bundled scripts/crawlora.sh helper for requests; it keeps the API
key out of command-line arguments. The helper accepts only this skill's
documented GET routes.
