Squad Golf LogoSQUAD GOLF

Squad Golf

Simple golf groups for recurring pool creation and friendly competition.

Platform

  • Pools
  • Groups
  • Tournaments

Developer

  • API Platform
  • Documentation
  • Pricing

Support

  • Coming Soon

© 2024 Squad Golf. All rights reserved.

Getting Started with Squad Golf API

Get up and running with professional golf data in minutes. Our TypeScript-first client makes integration simple and powerful.

1
Create an Account & Get API Key

Sign up for Squad Golf and generate your API key from the dashboard.

Generate API Key
2
Install the Client Library

Install our TypeScript client for the best development experience.

View Installation
3
Make Your First Request

Get tournament data and start building your golf application.

See Examples
4
Explore Advanced Features

Learn about WebSocket subscriptions, caching, and React hooks.

View Documentation
Installation
Choose your preferred installation method based on your development needs

TypeScript Client (Recommended)

Recommended

Full-featured TypeScript client with caching, WebSocket support, and React hooks

npm install @squad-golf/api-client
TypeScript support
Intelligent caching
WebSocket real-time updates
React hooks

Direct HTTP Requests

Make direct HTTP requests to our REST API endpoints

curl -H "Authorization: Bearer your-api-key"
Language agnostic
Simple integration
Full control
Custom implementations
Code Examples
See how to integrate the Squad Golf API in your preferred language
typescript
import { SquadGolfClient } from '@squad-golf/api-client';

// Initialize the client
const client = new SquadGolfClient({
  apiKey: process.env.SQUAD_GOLF_API_KEY,
  enableWebSocket: true, // Enable real-time updates
  cache: {
    ttl: 300, // Cache for 5 minutes
    storage: 'memory' // or 'localStorage' in browser
  }
});

// Get upcoming tournaments
const tournaments = await client.tournaments.getAllTournaments({
  status: 'upcoming'
});

console.log(`Found ${tournaments.length} upcoming tournaments`);

// Get detailed tournament with leaderboard
const tournament = await client.tournaments.getTournament('t_abc123');
console.log(tournament.name, tournament.leaderboard?.players.length);

// Subscribe to live leaderboard updates
const unsubscribe = client.tournaments.subscribeToLeaderboard(
  't_abc123',
  (update) => {
    console.log('Live update:', update.leaderboard.players[0]);
  }
);

// Search for players
const players = await client.players.searchPlayers({
  name: 'Tiger Woods',
  limit: 10
});

// Get player rankings
const rankings = await client.rankings.getOWGRRankings({
  limit: 50
});
Authentication
Your API key authenticates your requests. Keep it secure and never share it publicly.

Environment Variable (Recommended)

SQUAD_GOLF_API_KEY=your_api_key_here

HTTP Header

Authorization: Bearer your_api_key_here

Security Note: Never expose your API key in client-side code. Always make API calls from your server or use environment variables.

Next Steps
Continue your journey with the Squad Golf API
Authentication GuideLearn about API keys and rate limitingAPI ReferenceComplete endpoint documentationMore ExamplesReal-world use cases and patterns