Skip to main content

IFPA API Python

PyPI version Python versions License: MIT CI codecov Documentation Code style: black AI Code Review

Unofficial Python client for the IFPA (International Flipper Pinball Association) API.

Access player rankings, tournament data, and statistics through a clean, type-safe Python interface with Pydantic validation.

Installation

pip install ifpa-api

Requires Python 3.11+.

Quick Start

from ifpa_api import IfpaClient

# Initialize (uses IFPA_API_KEY environment variable)
client = IfpaClient()

# Get player by ID
player = client.player.get(2643)
print(f"{player.first_name} {player.last_name}")

# Access stats
stats = player.player_stats["system"]["open"]
print(f"WPPR Rank: {stats['current_rank']}")

# Search with filters
results = client.player.search("John") \
    .country("US") \
    .state("CA") \
    .limit(10) \
    .get()

# Get rankings
rankings = client.rankings.wppr(count=100)
for entry in rankings.rankings[:10]:
    print(f"{entry.rank}. {entry.player_name}")

# Get tournament results
results = client.tournament(67890).results()
for result in results.results[:5]:
    print(f"{result.position}. {result.player_name}: {result.points} pts")

Features

  • Type-safe: Full type hints and Pydantic validation with IDE autocomplete
  • Fluent API: Chainable query builder for complex searches
  • 46 Endpoints: Complete IFPA API v2.1 coverage across 7 resources
  • Automatic Pagination: Memory-efficient iteration with .iterate() and .get_all()
  • Enhanced Errors: Structured exceptions with request context for debugging
  • 99% Test Coverage: Comprehensive unit and integration tests

Resources

  • Players — Search, profiles, rankings, tournament results, head-to-head
  • Tournaments — Search, details, results, formats
  • Rankings — WPPR, women, youth, country, age-based
  • Series — Circuit standings, player cards, region data
  • Stats — Overall metrics, largest tournaments, player activity
  • Directors — Search, tournament listings

Documentation

Full documentation: https://johnsosoka.github.io/ifpa-api-python/

AI Code Review

All pull requests are automatically reviewed by GPT-4o via ai-code-review. The AI checks for code quality, security issues, performance concerns, and maintainability.

Reviews run on every PR open and update. Results are posted as inline comments on the pull request.

License

MIT License — see LICENSE file.


Not affiliated with or endorsed by IFPA.

Metadata

Release files for ifpa-api 0.4.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ifpa-api 0.4.13
File Size Uploaded Provenance Actions
ifpa_api-0.4.13.tar.gz 53.6 kB With provenance Details for ifpa_api-0.4.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ifpa-api 0.4.13
File Interpreter ABI Platform Actions
ifpa_api-0.4.13-py3-none-any.whl Python 3 none any Details for ifpa_api-0.4.13-py3-none-any.whl

Total release size: 127.4 kB

Release files / ifpa_api-0.4.13.tar.gz

Download URL ifpa_api-0.4.13.tar.gz
Size 53.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dcccae82a59ab56a9613a506239f6f7cf4455ca0e3b37daa6b1b74e4d842d84b
BLAKE2b-256 checksum
How to use checksums
a7b91159e671d0697a8f167ec6ed84464b9c9d84498e4b3e46b3caa6a4f23106
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release files / ifpa_api-0.4.13-py3-none-any.whl

Download URL ifpa_api-0.4.13-py3-none-any.whl
Size 73.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bd46cc27a33fba47ba2ff6f1fd7bf7a0a57fc9ce9ac6aeb9cfc096e466d93be
BLAKE2b-256 checksum
How to use checksums
085435605eaceb1cbc14fe4f6611e4f83c5451ccd5cf73b6fe54d8d6ec622a77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Security for ifpa-api 0.4.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ifpa_api-0.4.13.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page