Registry / http-networking / meraki

meraki

JSON →
library4.4.0pypypi✓ verified 22d ago

The Meraki Dashboard API Python library provides all current Meraki Dashboard API calls to interface with the Cisco Meraki cloud-managed platform. It handles error handling, logging, automatic retries for rate limits, and pagination. Generated from the OpenAPI specification, it aims to stay up-to-date with API releases. The library currently requires Python 3.10+ and is actively maintained with frequent updates.

pip install meraki
INSTALL
IMPORT
SIG · MERAKI
M
meraki
http-networkingpythonv4.4.0
Install
4.4s avg
Import
422ms
Disk
34MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.458s · 54.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.4s · import 0.386s · 56MB
34MB installed
● package 34MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DashboardAPI
from meraki import DashboardAPI
import meraki dashboard = meraki.DashboardAPI()

This quickstart initializes the Meraki Dashboard API client using an API key from an environment variable. It then fetches and prints the names and IDs of all organizations accessible with the provided API key. Ensure `MERAKI_DASHBOARD_API_KEY` is set in your environment.

import os import meraki API_KEY = os.environ.get('MERAKI_DASHBOARD_API_KEY', 'YOUR_API_KEY_HERE') if API_KEY == 'YOUR_API_KEY_HERE': print("Warning: MERAKI_DASHBOARD_API_KEY not set. Using placeholder.") try: dashboard = meraki.DashboardAPI(api_key=API_KEY, suppress_logging=True) organizations = dashboard.organizations.getOrganizations() if organizations: print("Successfully connected to Meraki Dashboard.") print("Organizations found:") for org in organizations: print(f" - {org['name']} (ID: {org['id']})") else: print("No organizations found or API key is invalid.") except meraki.exceptions.APIError as e: print(f"Meraki API Error: {e}") except Exception as e: print(f"An unexpected error occurred: {e}")
meraki --version
Debug
Known issues
breakingVersion 2.0.0 decoupled the library version from the API version, which included changes to operation IDs that were breaking for the library's method calls. This could require updates to existing scripts.
fix
Review the official Meraki Python Library documentation for updated method names and parameters, especially if migrating from versions prior to 2.0.0.
affects: >=2.0.0
breakingVersion 2.0.1 addressed a substantial issue (severity of #290) in the retry handler and user agent string. Users on version 2.0.0 should upgrade immediately to 2.0.1 or later to avoid potential request failures or incorrect behavior.
fix
Upgrade to version 2.0.1 or a later stable release: `pip install --upgrade meraki`.
affects: 2.0.0
deprecatedVersions of the library starting with `0.x.y` (e.g., 0.34) are end-of-life and are not supported or recommended. These legacy versions used a different import pattern (`from meraki import meraki`).
fix
Upgrade to the latest stable version of the library (`pip install --upgrade meraki`) and update your import statements to `import meraki`.
affects: <1.0.0
gotchaMeraki API keys provide authentication to all organizations accessible by the associated Dashboard administrator account. Storing the API key directly in source code is insecure. Also, the Meraki API returns a 404 (Not Found) for a missing or incorrect API key, rather than a 403 (Forbidden), to prevent leaking information about resource existence.
fix
Always use environment variables (e.g., `MERAKI_DASHBOARD_API_KEY`) to store and access your API key. Do not commit API keys to version control. Be aware that a 404 response might indicate an authentication issue.
affects: All versions
gotchaPrior to version 2.0.0, the library could encounter a `KeyError` when paginating through API endpoints whose response payloads were JSON objects using the `items/meta` pattern.
fix
Upgrade to version 2.0.0 or later to benefit from the fix for this pagination issue.
affects: <2.0.0
Upgrade
Version history
4.4.0latest on PyPI · released Aug 5, 2026
Audit
Dependencies
requestsrequiredCore HTTP client for synchronous API calls.
requests-toolbeltrequiredUsed internally for HTTP request utilities.
urllib3requiredHTTP client library, a dependency of 'requests'.
httpxoptionalHTTP client for asynchronous API calls (used by `meraki.aio`).
Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
2
Resources
meraki — pip install meraki · libregistry