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.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.2.0
File Size Uploaded
nexus_mods_api-1.2.0.tar.gz 231.1 kB Details

Built distribution (wheel)

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

Total release size: 374.7 kB

Release files / nexus_mods_api-1.2.0.tar.gz

Download URL nexus_mods_api-1.2.0.tar.gz
Size 231.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e5028477049127361ec0a5343d20494f5f90df176f595f6d05a22f67a11e38fd
BLAKE2b-256 checksum
How to use checksums
35d529bd0147696bfa0b03f530609635091a48fad6fd08298d74702b27d48147
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 22, 2026.

Transparency log

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

Download URL nexus_mods_api-1.2.0-py3-none-any.whl
Size 143.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
634d3f9688eea92d267c8d19e76a121ded6f985800c39dbdbdcd9e0140e91fb8
BLAKE2b-256 checksum
How to use checksums
f85afac75adbb5c9d898bfd264136a97541a6b322fc59ae062bc856229bfc59e
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 22, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.1

2 release files

This release

1.2.0 This release

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