skillfed

Pinterest-Generated-Client

Pinterest REST API

pinterest-generated-client v0.1.11 317.2K downloads/30d#7,664 on PyPI20
Permissive license MIT Active released

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-client

uv

uv add pinterest-generated-client

poetry

poetry add pinterest-generated-client

Installing 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

pinterest api clientpinterest rest api pythonpinterest ads apipinterest analytics apiopenapi generated clientpinterest ad account managementpinterest campaign api
api-clientpinterestopenapi-generated

More WWW/HTTP packages