# Pinterest API

> Pinterest returns visual search and public profile data as a workflow and API.

Pinterest’s Search pins method returns imagery, creator, board, saves, and linked website details for a required idea query. Pinterest’s Get profile method returns public profile details and visible boards for a required username, @username, or profile link.

- Page: https://fous.com/workflows/pinterest
- Handle: `@pinterest`
- Category: [Social](https://fous.com/workflows/category/social)
- Source website: https://pinterest.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Pinterest.

## Methods

### Get profile

Operation `get_profile`, version 1. 1 credit per call.

Get a public Pinterest profile and its visible boards in profile order. Monthly views are null when Pinterest does not show them.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `username` | string | yes | `"nasa"` | Pinterest username, @username, or profile link, for example nasa or https://www.pinterest.com/nasa/. |
| `max_boards` | integer | no | `25` | Maximum number of boards to return, for example 25. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "username"
  ],
  "properties": {
    "username": {
      "type": "string",
      "description": "Pinterest username, @username, or profile link, for example nasa or https://www.pinterest.com/nasa/.",
      "examples": [
        "nasa",
        "https://www.pinterest.com/pinterest/",
        "@nasa"
      ]
    },
    "max_boards": {
      "type": "integer",
      "default": 25,
      "maximum": 50,
      "minimum": 1,
      "description": "Maximum number of boards to return, for example 25.",
      "x-fous-developer": true,
      "examples": [
        25,
        50
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "username": "nasa",
      "max_boards": 25
    },
    {
      "username": "https://www.pinterest.com/pinterest/",
      "max_boards": 50
    },
    {
      "username": "@nasa"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `bio` | string or null | `"Explore the universe and discover our home planet with the official NASA boards on Pinterest. Visit us at www.nasa.gov"` |  |
| `boards` | array |  |  |
| `boards[].board_link` | string | `"https://www.pinterest.com/nasa/learn-with-nasa/"` |  |
| `boards[].board_name` | string | `"Learn With NASA"` |  |
| `boards[].number_of_pins` | integer or null | `1623` |  |
| `username` | string | `"nasa"` |  |
| `followers` | integer or null | `556449` |  |
| `following` | integer or null | `5` |  |
| `display_name` | string or null | `"NASA"` |  |
| `profile_link` | string | `"https://www.pinterest.com/nasa/"` |  |
| `website_link` | string or null | `"http://www.nasa.gov/"` |  |
| `monthly_views` | integer or null |  |  |
| `profile_picture_link` | string or null | `"https://i.pinimg.com/280x280_RS/37/a1/75/37a175e6d2431425576f0b8f81389394.jpg"` |  |

**Example input**

```json
{
  "username": "nasa",
  "max_boards": 25
}
```

**Example output**

```json
{
  "bio": "Explore the universe and discover our home planet with the official NASA boards on Pinterest. Visit us at www.nasa.gov",
  "boards": [
    {
      "board_link": "https://www.pinterest.com/nasa/learn-with-nasa/",
      "board_name": "Learn With NASA",
      "number_of_pins": 1623
    },
    {
      "board_link": "https://www.pinterest.com/nasa/first-woman/",
      "board_name": "First Woman",
      "number_of_pins": 6
    },
    {
      "board_link": "https://www.pinterest.com/nasa/humans-in-space/",
      "board_name": "Humans in Space",
      "number_of_pins": 754
    }
  ],
  "username": "nasa",
  "followers": 556449,
  "following": 5,
  "display_name": "NASA",
  "profile_link": "https://www.pinterest.com/nasa/",
  "website_link": "http://www.nasa.gov/",
  "monthly_views": null,
  "profile_picture_link": "https://i.pinimg.com/280x280_RS/37/a1/75/37a175e6d2431425576f0b8f81389394.jpg"
}
```

### Search pins

Operation `search_pins`, version 1. 1 credit per call.

Find Pinterest pins for an idea, in search order, with image, creator, board, saves, and linked website details. Limited to the first public search page before sign-up.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `query` | string | yes | `"garden path ideas"` | Idea to search for, for example small kitchen ideas. |
| `max_results` | integer | no | `3` | Most pins to return from the first page, for example 25. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Idea to search for, for example small kitchen ideas.",
      "examples": [
        "garden path ideas",
        "small kitchen ideas"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 25,
      "maximum": 50,
      "minimum": 1,
      "description": "Most pins to return from the first page, for example 25.",
      "x-fous-developer": true,
      "examples": [
        3
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "query": "garden path ideas",
      "max_results": 3
    },
    {
      "query": "small kitchen ideas"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `pins` | array |  |  |
| `pins[].saves` | integer or null | `148` |  |
| `pins[].title` | string or null | `"30 Cheap Garden Path Ideas"` |  |
| `pins[].pin_id` | string | `"281543726972356"` |  |
| `pins[].website` | string or null | `"https://addictedtoorganization.com/cheap-walkway-ideas-diy/"` |  |
| `pins[].pin_link` | string | `"https://www.pinterest.com/pin/281543726972356/"` |  |
| `pins[].board_name` | string or null |  |  |
| `pins[].image_link` | string or null | `"https://i.pinimg.com/originals/3d/82/06/3d8206564c3917da437dc45739681170.jpg"` |  |
| `pins[].description` | string or null | `"Get inspired by these 30 Clever DIY Walkway Ideas to transform your outdoor space with unique and budget-friendly pathw` |  |
| `pins[].website_domain` | string or null | `"addictedtoorganization.com"` |  |
| `pins[].pinner_username` | string or null | `"btwitselizabeth"` |  |

**Example input**

```json
{
  "query": "garden path ideas",
  "max_results": 3
}
```

**Example output**

```json
{
  "pins": [
    {
      "saves": 148,
      "title": "30 Cheap Garden Path Ideas",
      "pin_id": "281543726972356",
      "website": "https://addictedtoorganization.com/cheap-walkway-ideas-diy/",
      "pin_link": "https://www.pinterest.com/pin/281543726972356/",
      "board_name": null,
      "image_link": "https://i.pinimg.com/originals/3d/82/06/3d8206564c3917da437dc45739681170.jpg",
      "description": "Get inspired by these 30 Clever DIY Walkway Ideas to transform your outdoor space with unique and budget-friendly pathways. Find creative solutions for garden paths, stepping stones, and beautiful bac…",
      "website_domain": "addictedtoorganization.com",
      "pinner_username": "btwitselizabeth"
    },
    {
      "saves": 1,
      "title": "This Reclaimed Brick Garden Path Makes Old Bricks Look Beautiful Again",
      "pin_id": "266767977923585909",
      "website": "https://mygarbagecollection.com/eco-friendly-garden-ideas-using-recycled-materials/?utm_source=pinterest&utm_medium=social&utm_campaign=eco_friendly_garden_recycled_materials&utm_content=reclaimed_bri…",
      "pin_link": "https://www.pinterest.com/pin/266767977923585909/",
      "board_name": null,
      "image_link": "https://i.pinimg.com/originals/fe/0e/44/fe0e44ac308d239823de77621bb93f42.webp",
      "description": "Old bricks can create a garden path with more character than brand new paving. Discover how reclaimed bricks can shape flower beds, guide movement and give your outdoor space an established look. If y…",
      "website_domain": "mygarbagecollection.com",
      "pinner_username": "kretelica"
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@pinterest",
  "visibility": "public",
  "operation": "get_profile",
  "version": 1,
  "input": {
    "username": "nasa",
    "max_boards": 25
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@pinterest\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_profile\",\n  \"version\": 1,\n  \"input\": {\n    \"username\": \"nasa\",\n    \"max_boards\": 25\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@pinterest",
  "visibility": "public",
  "operation": "get_profile",
  "version": 1,
  "input": {
    "username": "nasa",
    "max_boards": 25
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@pinterest","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Research ideas using related imagery and linked websites
- Compare saves across idea search results
- Review a public profile’s visible boards and pin counts
- Find creators and profile websites related to an idea

## FAQ

### Is Fous affiliated with Pinterest?

No. Fous is not affiliated with Pinterest. This workflow reads the public pinterest.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Pinterest account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from pinterest.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What results appear for a particular idea?

Search pins returns Pinterest results for a required idea query in search order, with image, creator, board, saves, and linked website details.

### Which boards are visible on a public profile?

Get profile returns a public profile’s visible boards in profile order.

## Related

- [Instagram API](https://fous.com/workflows/instagram.md): Instagram provides public photos, videos, profiles, exact headline counts, bio links, and profile pictures, plus recent public posts and reels; some profiles or posts require login, and view counts may be unavailable.
- [TikTok API](https://fous.com/workflows/tiktok.md): TikTok returns public profiles and totals, recent pinned-first videos, and public video details and engagement; private content unavailable, and feeds may be incomplete or empty.
- [Threads API](https://fous.com/workflows/threads.md): Threads provides public profiles and posts, including recent posts, engagement and replies; private or login-only content is excluded, and replies may be limited to 10.
- [Mastodon API](https://fous.com/workflows/mastodon.md): Mastodon provides public profiles and recent public posts, including hashtag posts, but excludes private and unlisted posts and may limit visibility to accounts known to mastodon.social or a selected server.
- [X API](https://fous.com/workflows/x.md): X returns public profile details and public posts with author, media, and engagement; deleted, protected, or unavailable posts cannot be retrieved.
- [Pexels API](https://fous.com/workflows/pexels.md): Pexels offers free stock photos and videos, with searches returning up to 80 results in Pexels search order.
- [Reddit API](https://fous.com/workflows/reddit.md): Reddit returns searchable public posts, community feeds/details, user profiles and recent activity, posts with up to 200 comments; unavailable content limits results; Top defaults weekly.
- [PyPI API](https://fous.com/workflows/pypi.md): PyPI provides package metadata, links, and current/latest plus 10 recent versions; release dates reflect first file uploads, and keyword searches return up to 100 packages.
- [All Social workflows](https://fous.com/workflows/category/social)
