Skip to Content
Referência da APIInformações da Conta

Informações da Conta

Recupere os detalhes da sua conta, informações de nível, limites de taxa e recursos habilitados.

GET /api/v1/account

Este endpoint substitui o antigo endpoint /me. O formato da resposta foi atualizado para usar o envelope padrão v1.

AutenticaçãoPermalink for this section

Requer chave de API. Disponível em todos os níveis.

Exemplos de RequisiçõesPermalink for this section

curl -X GET "https://api.sharpapi.io/api/v1/account" \ -H "X-API-Key: YOUR_API_KEY"

RespostaPermalink for this section

Sucesso (200)Permalink for this section

{ "data": { "key_id": "key_abc123def456", "tier": "pro", "rate_limit": { "requests_per_minute": 300, "max_books": 15 }, "features": [ "odds", "schedule", "ev", "arbitrage", "middles", "low_hold", "closing_line", "splits" ], "streaming": { "enabled": true, "max_connections": 10 } }, "updated_at": "2026-02-08T14:44:32.123Z" }

Cabeçalhos da RespostaPermalink for this section

X-RateLimit-Limit: 300 X-RateLimit-Remaining: 287 X-RateLimit-Reset: 1707401100 X-Data-Delay: 0 X-Request-Id: req_acct123xyz

Respostas de ErroPermalink for this section

401 Unauthorized

{ "error": { "code": "unauthorized", "message": "Invalid or missing API key", "docs": "https://docs.sharpapi.io/en/authentication" } }

Campos da RespostaPermalink for this section

Objeto dataPermalink for this section

CampoTipoDescrição
key_idstringIdentificador da chave de API usada nesta requisição
tierstringNível de assinatura: free, hobby, pro, sharp ou enterprise
rate_limitobjectLimite de taxa e acesso a sportsbooks — veja abaixo
featuresstring[]Recursos habilitados no seu nível — veja abaixo
streamingobjectDisponibilidade de streaming SSE/WebSocket — veja abaixo

Um campo updated_at no nível superior (timestamp ISO 8601) acompanha data.

Objeto rate_limitPermalink for this section

CampoTipoDescrição
requests_per_minutenumberNúmero máximo de requisições à API permitidas por minuto no seu nível
max_booksnumberNúmero máximo de sportsbooks acessíveis no seu nível (999 indica ilimitado)

Array featuresPermalink for this section

Array de tokens de recurso habilitados no seu nível. Valores possíveis:

ValorDescrição
oddsEndpoints de odds ao vivo
scheduleEndpoints de eventos/calendário
evDetecção de oportunidades +EV
arbitrageDetecção de arbitragem
middlesDetecção de middles
low_holdDetecção de oportunidades low-hold
historyEndpoints de odds históricas
futuresMercados de futuros
closing_lineEndpoints de valor de linha de fechamento
splitsDistribuição pública de apostas

Objeto streamingPermalink for this section

CampoTipoDescrição
enabledbooleanIndica se o streaming SSE/WebSocket está disponível (por nível, add-on ou trial)
max_connectionsnumberNúmero máximo de conexões de streaming simultâneas (0 se o streaming não estiver habilitado)

Casos de UsoPermalink for this section

Verificar Acesso a Recursos Antes de Fazer RequisiçõesPermalink for this section

const { data: account } = await fetch( 'https://api.sharpapi.io/api/v1/account', { headers: { 'X-API-Key': 'YOUR_API_KEY' } } ).then(r => r.json()); if (!account.features.includes('ev')) { console.log('Upgrade to Pro tier for +EV detection'); } else { // Proceed with EV endpoint const evData = await fetch( 'https://api.sharpapi.io/api/v1/opportunities/ev', { headers: { 'X-API-Key': 'YOUR_API_KEY' } } ).then(r => r.json()); }

Endpoints RelacionadosPermalink for this section

Last updated on