Skip to main content

Pinterest

The Pinterest agent connector is a Python package that equips AI agents to interact with Pinterest through strongly typed, well-documented tools. It's ready to use directly in your Python app, in an agent framework, or exposed through an MCP.

Connector for the Pinterest API v5, enabling access to Pinterest advertising and content management data. Supports reading ad accounts, boards, campaigns, ad groups, ads, board sections, board pins, catalogs, catalog feeds, catalog product groups, audiences, conversion tags, customer lists, and keywords.

Example questions

The Pinterest connector is optimized to handle prompts like these.

  • List all my Pinterest ad accounts
  • List all my Pinterest boards
  • Show me all campaigns in my ad account
  • List all ads in my ad account
  • Show me all ad groups in my ad account
  • List all audiences for my ad account
  • Show me my catalog feeds
  • Which campaigns are currently active?
  • What are the top boards by pin count?
  • Show me ads that have been rejected
  • Find campaigns with the highest daily spend cap

Unsupported questions

The Pinterest connector isn't currently able to handle prompts like these.

  • Create a new Pinterest board
  • Update a campaign budget
  • Delete an ad group
  • Post a new pin
  • Show me campaign analytics or performance metrics

Installation

uv pip install airbyte-agent-pinterest

Usage

Connectors can run in open source or hosted mode.

Open source

In open source mode, you provide API credentials directly to the connector.

from airbyte_agent_pinterest import PinterestConnector
from airbyte_agent_pinterest.models import PinterestAuthConfig

connector = PinterestConnector(
    auth_config=PinterestAuthConfig(
        refresh_token="<Pinterest OAuth2 refresh token.>",
        client_id="<Pinterest OAuth2 client ID.>",
        client_secret="<Pinterest OAuth2 client secret.>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@PinterestConnector.tool_utils
async def pinterest_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Hosted

In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead. If your Airbyte client can access multiple organizations, also set organization_id.

This example assumes you've already authenticated your connector with Airbyte. See Authentication to learn more about authenticating. If you need a step-by-step guide, see the hosted execution tutorial.

from airbyte_agent_pinterest import PinterestConnector, AirbyteAuthConfig

connector = PinterestConnector(
    auth_config=AirbyteAuthConfig(
        customer_name="<your_customer_name>",
        organization_id="<your_organization_id>",  # Optional for multi-org clients
        airbyte_client_id="<your-client-id>",
        airbyte_client_secret="<your-client-secret>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@PinterestConnector.tool_utils
async def pinterest_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Full documentation

Entities and actions

This connector supports the following entities and actions. For more details, see this connector's full reference documentation.

Entity Actions
Ad Accounts List, Get, Context Store Search
Boards List, Get, Context Store Search
Campaigns List, Context Store Search
Ad Groups List, Context Store Search
Ads List, Context Store Search
Board Sections List, Context Store Search
Board Pins List, Context Store Search
Catalogs List, Context Store Search
Catalogs Feeds List, Context Store Search
Catalogs Product Groups List, Context Store Search
Audiences List, Context Store Search
Conversion Tags List, Context Store Search
Customer Lists List, Context Store Search
Keywords List, Context Store Search

Authentication

For all authentication options, see the connector's authentication documentation.

Pinterest API docs

See the official Pinterest API reference.

Version information

  • Package version: 0.1.17
  • Connector version: 0.1.4
  • Generated with Connector SDK commit SHA: c5258debd165ab701252c1436d4acfb475bf92b9
  • Changelog: View changelog

Metadata

Release files for airbyte-agent-pinterest 0.1.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airbyte-agent-pinterest 0.1.17
File Size Uploaded
airbyte_agent_pinterest-0.1.17.tar.gz 184.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for airbyte-agent-pinterest 0.1.17
File Interpreter ABI Platform
airbyte_agent_pinterest-0.1.17-py3-none-any.whl Python 3 none any Details

Total release size: 392.7 kB

Release files / airbyte_agent_pinterest-0.1.17.tar.gz

Download URL airbyte_agent_pinterest-0.1.17.tar.gz
Size 184.8 kB
Tags Source
SHA-256 checksum
How to use checksums
829788ca0a36200035749eaae37b956542723de117f05763b58a911892ea58ce
BLAKE2b-256 checksum
How to use checksums
1dd4ef7bd4f581d6c8c4746b906118fbaa9a265842f32bd17ac9e9a028f46baa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / airbyte_agent_pinterest-0.1.17-py3-none-any.whl

Download URL airbyte_agent_pinterest-0.1.17-py3-none-any.whl
Size 207.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f9475b68433bd3563a7dd6bc7f5508bdc991d34db2ec9fcadefa108a3c1d378
BLAKE2b-256 checksum
How to use checksums
2721b267e43fe1cbfe2bd42446180535645c9f4e1dfd86ee1f8de2a836a2203e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.17 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.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