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.11 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.2.1

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.2.1
File Size Uploaded
nexus_mods_api-1.2.1.tar.gz 232.9 kB Details

Built distribution (wheel)

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

Total release size: 377.9 kB

Release files / nexus_mods_api-1.2.1.tar.gz

Download URL nexus_mods_api-1.2.1.tar.gz
Size 232.9 kB
Tags Source
SHA-256 checksum
How to use checksums
39fa9f1d3199186b33438d1ad25ba1cf65717514c54b029a814146821a217d9a
BLAKE2b-256 checksum
How to use checksums
706b259f65bb53ee5d261919425a6473c27c7adb5b12573f3809a346c50cdf8f
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 3, 2026.

Transparency log

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

Download URL nexus_mods_api-1.2.1-py3-none-any.whl
Size 145.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bffc4c3c8331c1afaa2dd152c4e58b39c7418568220f16a2938129c0612ba75a
BLAKE2b-256 checksum
How to use checksums
99ffaaf02b350e1873889deaa7174891640cc25c3324ef0c798d0366a70386f4
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 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

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