Skip to main content

Airbyte Pinterest Connector for AI platforms

Project description

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.15
  • Connector version: 0.1.3
  • Generated with Connector SDK commit SHA: 3cecc817f060335c13c5d88bc9ad34a4dace961f
  • Changelog: View changelog

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airbyte_agent_pinterest-0.1.15.tar.gz (183.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airbyte_agent_pinterest-0.1.15-py3-none-any.whl (206.8 kB view details)

Uploaded Python 3

File details

Details for the file airbyte_agent_pinterest-0.1.15.tar.gz.

File metadata

  • Download URL: airbyte_agent_pinterest-0.1.15.tar.gz
  • Upload date:
  • Size: 183.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for airbyte_agent_pinterest-0.1.15.tar.gz
Algorithm Hash digest
SHA256 afc22fa1b1286eac8aed40abf3a21d3925ec0eaa7f295035ca3516dac7a89436
MD5 56947396171ec68947189c811691575c
BLAKE2b-256 4069f7eda581c38c12884278ac7630a577223eb0eae037749292fd8af72dadb9

See more details on using hashes here.

File details

Details for the file airbyte_agent_pinterest-0.1.15-py3-none-any.whl.

File metadata

File hashes

Hashes for airbyte_agent_pinterest-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 222cc02a06b095c2b0bd7167c04ca0fddc2faee13c5850cf36c87b78c072cf9c
MD5 7451968289f643fa57186a7b994bdfe3
BLAKE2b-256 05e19940ac83ff3ca0f4bb92c9b8cd7a482544e0cf14834e876350e903ca1985

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page