Skip to main content

nexus-mods-api

PyPI - Version Python License CI

Unofficial, typed synchronous and asynchronous Python clients for all three Nexus Mods APIs:

  • REST v1 with hand-written Pydantic v2 models
  • GraphQL v2 with typed execution and convenience queries
  • REST v3 generated from a checked-in, SHA-256-pinned OpenAPI specification

Authentication supports manual application-specific API keys, WebSocket SSO, and OAuth 2.0 Authorization Code with PKCE. OAuth applications do not use a client secret.

Installation

python -m pip install nexus-mods-api

Python 3.12 or newer is required. Install the optional WebSocket dependency for SSO:

python -m pip install "nexus-mods-api[sso]"

Quick start

from nexusmods_api import ApiKeyAuth, NexusClient, NexusConfig

config = NexusConfig(
    application_name="your-registered-app",
    application_version="1.0.0",
)

with NexusClient(config, ApiKeyAuth.from_value("your-api-key")) as client:
    games = client.v1.get_games()

Equivalent native async clients are available for applications that already use an event loop. The aggregate clients lazily construct their REST v1, GraphQL v2, and REST v3 clients.

Documentation

The authoritative AsciiDoc documentation is published in the Modding Forge documentation. It includes installation, sync and async usage, all authentication flows, API guides, error handling, rate limits, code generation, testing, and releases.

Version 1.0.0 completed both the mocked conformance suite and live acceptance tests for manual API key, SSO, and OAuth with maintainer-owned Nexus Mods application registrations.

License

MIT — see LICENSE.

About Modding Forge

nexus-mods-api is built for the Python tooling behind Modding Forge.

This project is not affiliated with or endorsed by Nexus Mods.

Metadata

Release files for nexus-mods-api 1.1.0

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

Source distribution (sdist)

Source distribution for nexus-mods-api 1.1.0
File Size Uploaded
nexus_mods_api-1.1.0.tar.gz 196.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nexus-mods-api 1.1.0
File Interpreter ABI Platform
nexus_mods_api-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 329.5 kB

Release files / nexus_mods_api-1.1.0.tar.gz

Download URL nexus_mods_api-1.1.0.tar.gz
Size 196.0 kB
Tags Source
SHA-256 checksum
How to use checksums
49fe5d78a3e8add2b1648d527942a8b83eaeed3db64410b257195fe5e214820d
BLAKE2b-256 checksum
How to use checksums
a9fd02526c2b1065415735906ed1382a6c04b93df58cd55e901c4f20c9bbff9b
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 Aug 20, 2026.

Transparency log

Release files / nexus_mods_api-1.1.0-py3-none-any.whl

Download URL nexus_mods_api-1.1.0-py3-none-any.whl
Size 133.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f993288f860ce2278196ba21628325a211212c3fb0330593568b8aa017d8d986
BLAKE2b-256 checksum
How to use checksums
0c5321cec6c08c2424d01acaa06dcc76d5fb0227a9fcdf5cbd277a761aca28f0
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 Aug 20, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

This release

1.1.0 This release

2 release files

1.0.0

2 release files

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