Pinterest-Generated-Client
Pinterest REST API
What it is and what it does
This is an OpenAPI-generated Python client library for Pinterest's REST API. It provides typed bindings to Pinterest's ad account, analytics, and campaign management endpoints, allowing developers to query ad performance metrics, manage ad accounts, and retrieve conversion data programmatically. The package wraps HTTP calls and handles request/response serialization using urllib3 and python-dateutil.
The package is explicitly positioned as a low-level, auto-generated artifact rather than a user-facing SDK. Its own documentation directs users toward an alternative SDK for production use. The generated code exposes a large API surface covering ad accounts, analytics, MMM reports, targeting, and conversion attribution, but comes with typical code-generation trade-offs: minimal documentation beyond endpoint signatures and limited customization.
Use it for:
- Retrieve ad account analytics and performance metrics for a specific date range and granularity level.
- Query conversion attribution data with configurable click, engagement, and view attribution windows.
- Programmatically access ad account details and create new ad accounts.
- Build internal tools or dashboards that consume Pinterest advertising data without writing raw HTTP requests.
- Integrate Pinterest campaign metrics into a larger analytics or reporting pipeline.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides auto-generated Python bindings for Pinterest's REST API, enabling programmatic access to ad accounts, analytics, and campaign management endpoints.
Yes, with conditions. Install if you need direct, low-level access to Pinterest's REST API and are comfortable with an auto-generated client. However, the package's own documentation recommends an alternative SDK instead; evaluate that first. The package is actively maintained, has no known vulnerabilities, and carries permissive licensing. Low install friction and reasonable download volume suggest it is stable enough for production use, but treat it as a generated artifact rather than a polished, hand-maintained library.
Install
pinterest-generated-client on PyPI
pip
pip install pinterest-generated-clientuv
uv add pinterest-generated-clientpoetry
poetry add pinterest-generated-clientInstalling Pinterest-Generated-Client
Before you install
Low install friction with only two lightweight runtime dependencies (urllib3, python-dateutil). Active maintenance with recent commits; however, the package documentation explicitly recommends using the official Pinterest Python SDK instead of this generated client directly.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install pinterest-generated-client
import urllib3
import python-dateutil
# Configure API client with OAuth2 token
configuration = Configuration(host="https://api.pinterest.com/v5")
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Make API calls through the generated client
Requires a valid Pinterest OAuth2 access token to authenticate API requests.
Verify before relying
- Whether this generated client is kept in sync with Pinterest API schema changes or if drift occurs over time.
- Stability guarantees for the auto-generated API surface across minor version updates.
- Whether the recommendation to use an alternative SDK indicates planned deprecation or ongoing maintenance limitations.
- Actual Python version support, as requires_python is unspecified in the fact sheet.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — urllib3, python-dateutil |
| Maintenance | actively maintained — 333 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 317,218/month — #7,664 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pinterest_generated_client-0.1.11-py3-none-any.whl
Keywords: OpenAPI, OpenAPI-Generator, Pinterest REST API
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
pinterest-api-sdkPython client library for the Pinterest API…
permissive · top 15,000 on PyPI
dubDub is a Python SDK for the Dub.co link…
unclear · top 15,000 on PyPI
facebook-businessProvides Python bindings to Facebook's Business…
unclear · top 5,000 on PyPI
tiktok-business-api-sdk-officialProvides Python client libraries for the TikTok…
permissive · top 15,000 on PyPI
googleadsClient library for interacting with Google Ad…
permissive · top 5,000 on PyPI
whylabs-clientA Python client library for the WhyLabs API…
permissive · top 15,000 on PyPI
twitter-adsA Python SDK for managing Twitter Ads…
permissive · top 15,000 on PyPI
trieve-py-clientProvides a Python client library for the Trieve…
unclear · top 15,000 on PyPI
oneloginOfficial Python SDK for OneLogin's API,…
unclear · top 15,000 on PyPI
klaviyo-apiPython client library for the Klaviyo marketing…
permissive · top 15,000 on PyPI