> **For coding agents and LLMs:** This is one page from the Social Fetch docs (markdown export). For curated orientation and workflow guidance, start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for the full endpoint list with links to pages like this one, use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt); use [`/llms.json`](https://www.socialfetch.dev/llms.json) when you need structured JSON for tool registration.

## This page

- **On-site (HTML):** [https://www.socialfetch.dev/docs/api/v1/pinterest/pins/get](https://www.socialfetch.dev/docs/api/v1/pinterest/pins/get)
- **Markdown (.mdx) URL:** [https://www.socialfetch.dev/docs/api/v1/pinterest/pins/get.mdx](https://www.socialfetch.dev/docs/api/v1/pinterest/pins/get.mdx)

## API base URL and authentication

- **API origin (from OpenAPI `servers`):** `https://api.socialfetch.dev`
- **Authentication:** send `x-api-key: sfk_...` on `/v1/**` routes unless the operation is explicitly anonymous (check OpenAPI `security`, the [API reference hub](https://www.socialfetch.dev/docs/api.mdx), [`/llms.txt`](https://www.socialfetch.dev/llms.txt), or [`/llms.json`](https://www.socialfetch.dev/llms.json) for each route).
- **OpenAPI JSON:** [https://www.socialfetch.dev/openapi.json](https://www.socialfetch.dev/openapi.json)

## Recommended docs entrypoints (this site)

- [Documentation overview](https://www.socialfetch.dev/docs.mdx) — top-level orientation (markdown).
- [Quickstart](https://www.socialfetch.dev/docs/quickstart.mdx) — authenticate with `x-api-key`, validate auth with `whoami`, and understand the JSON envelope.
- [SDK](https://www.socialfetch.dev/docs/sdk.mdx) — official TypeScript SDK guide, including `SocialFetchClient`, `Result`, and `unwrap()`.
- [SDK reference](https://www.socialfetch.dev/docs/sdk-reference.mdx) — exhaustive SDK method inventory and route mapping for agents, tooling, and power users.
- [Choose the right endpoint](https://www.socialfetch.dev/docs/choose-endpoint.mdx) — task-oriented route selection for smoke tests, profiles, list endpoints, and single-item lookups.
- [Capability matrix](https://www.socialfetch.dev/docs/capability-matrix.mdx) — fast comparison of identifiers, pagination, outcomes, media download, and SDK coverage.
- [Integrations](https://www.socialfetch.dev/docs/integrations.mdx) — MCP for AI clients, n8n verified node, Apify Store Actors, SDK, and REST API connection paths.
- [MCP integration](https://www.socialfetch.dev/docs/integrations/mcp.mdx) — hosted `/mcp` server, OAuth, Cursor/VS Code/Claude install snippets, 87 endpoint tools, plus docs_search/docs_read for implementation help.
- [n8n integration](https://www.socialfetch.dev/docs/integrations/n8n.mdx) — install `n8n-nodes-socialfetch`, credentials, and workflow examples.
- [Apify integration](https://www.socialfetch.dev/docs/integrations/apify.mdx) — Store Actors under @social-fetch, PPE billing, dataset export, and quick start.
- [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt) — every documented operation with a direct link to that route's agent-readable markdown page (prefer this over parsing OpenAPI).
- [`/llms.json`](https://www.socialfetch.dev/llms.json) — structured machine-readable operation inventory with parameter names, pagination, outcomes, credits, and SDK mapping.
- [API reference hub](https://www.socialfetch.dev/docs/api.mdx) — human-friendly index of operations with links into generated pages.
- [Errors](https://www.socialfetch.dev/docs/errors.mdx) — shared error envelope and HTTP status guidance.
- [Credits](https://www.socialfetch.dev/docs/credits.mdx) — metering, `402`, and planning batch jobs.
- Outcome semantics such as `found`, `not_found`, and `private` are documented in [Errors](https://www.socialfetch.dev/docs/errors.mdx) and on operation pages when present in the OpenAPI contract.

## Markdown docs convention

- Every docs page has a markdown twin: append **`.mdx`** to the docs pathname (for example `/docs/quickstart` → `/docs/quickstart.mdx`).
- Agents that send `Accept: text/markdown` on `/docs/**` HTML URLs may receive markdown directly (same URL, `Vary: Accept`).

---
# Get Pinterest pin (https://www.socialfetch.dev/docs/api/v1/pinterest/pins/get)

## Summary

Fetch a public Pinterest pin by URL.

**Tags:** `Pinterest`

## HTTP

- **Method:** GET
- **Path:** `/v1/pinterest/pins`
- **Base URL:** `https://api.socialfetch.dev`

## Capability summary

- **SDK mapping:** `client.pinterest.getPin({ url, trim? })`
- **Accepted identifiers:** `url` (query)
- **Pagination:** none
- **Business outcome field:** `data.lookupStatus` with values `found`, `not_found`
- **Trimmed response mode:** supported via `trim=true`

## Credits

- **Base:** 1 credit per successful lookup.
- **Maximum on success (200):** 1 credit.
- **Normalization failure (502):** 1 credit charged.
- **Authoritative field:** `meta.creditsCharged`.

## Authentication

- **`x-api-key`**: API key (`sfk_...`)

## Parameters

### `url` (query)

- **Required:** yes
- **Constraints:** type `string`; minLength: 1; maxLength: 4096
- **Description:** Link to the Pinterest pin.

### `trim` (query)

- **Required:** no
- **Description:** When true, returns a smaller response with fewer fields.

## Behavior notes

- **`trim`**: When true, returns a smaller response with fewer fields.

## Responses (status codes)

- **200**: Pin lookup result.
- **400**: Invalid query parameters
- **401**: Missing or invalid API key
- **402**: Insufficient credits
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed from the response (unexpected or invalid data).
- **503**: Service temporarily unavailable; safe to retry with backoff.

## Response body (200)

Pin lookup result.

### Field outline

- **data** (required) — type `object`. Endpoint-specific response payload.
  - **lookupStatus** (required) — type `string`; enum: found, not_found. Whether the pin was found.
  - **pin** (required) — type `object`; nullable. Pin details when found.
    - **id** (required) — type `string`; minLength: 1. Pinterest pin id.
    - **url** (required) — type `string`; nullable. Canonical public pin URL when available.
    - **title** (required) — type `string`; nullable. Pin title when available.
    - **description** (required) — type `string`; nullable. Pin description when available.
    - **altText** (required) — type `string`; nullable. Accessibility alt text when available.
    - **link** (required) — type `string`; nullable. Outbound destination link when available.
    - **domain** (required) — type `string`; nullable. Destination domain when available.
    - **dominantColor** (required) — type `string`; nullable. Dominant image color when available.
    - **createdAt** (required) — type `string`; nullable. When the pin was created, when available.
    - **images** (required) — type `object`; nullable. Image renditions when available.
      - **orig** (required) — type `object`; nullable. Original image when available.
        - **url** (required) — type `string`; nullable. Image URL when available.
        - **width** (required) — type `integer`; minimum: 0; nullable. Width in pixels when available.
        - **height** (required) — type `integer`; minimum: 0; nullable. Height in pixels when available.
      - **size236** (required) — type `object`; nullable. 236px-wide image when available.
        - **url** (required) — type `string`; nullable. Image URL when available.
        - **width** (required) — type `integer`; minimum: 0; nullable. Width in pixels when available.
        - **height** (required) — type `integer`; minimum: 0; nullable. Height in pixels when available.
      - **size474** (required) — type `object`; nullable. 474px-wide image when available.
        - **url** (required) — type `string`; nullable. Image URL when available.
        - **width** (required) — type `integer`; minimum: 0; nullable. Width in pixels when available.
        - **height** (required) — type `integer`; minimum: 0; nullable. Height in pixels when available.
      - **size564** (required) — type `object`; nullable. 564px-wide image when available.
        - **url** (required) — type `string`; nullable. Image URL when available.
        - **width** (required) — type `integer`; minimum: 0; nullable. Width in pixels when available.
        - **height** (required) — type `integer`; minimum: 0; nullable. Height in pixels when available.
      - **size736** (required) — type `object`; nullable. 736px-wide image when available.
        - **url** (required) — type `string`; nullable. Image URL when available.
        - **width** (required) — type `integer`; minimum: 0; nullable. Width in pixels when available.
        - **height** (required) — type `integer`; minimum: 0; nullable. Height in pixels when available.
    - **pinner** (required) — type `object`; nullable. User who pinned this item when available.
      - **id** (required) — type `string`; nullable. Pinterest user id when available.
      - **username** (required) — type `string`; nullable. Pinterest username when available.
      - **fullName** (required) — type `string`; nullable. Display name when available.
      - **avatarUrl** (required) — type `string`; nullable. Profile image URL when available.
    - **originPinner** (required) — type `object`; nullable. Original creator when available.
      - **id** (required) — type `string`; nullable. Pinterest user id when available.
      - **username** (required) — type `string`; nullable. Pinterest username when available.
      - **fullName** (required) — type `string`; nullable. Display name when available.
      - **avatarUrl** (required) — type `string`; nullable. Profile image URL when available.
    - **board** (required) — type `object`; nullable. Board this pin belongs to when available.
      - **id** (required) — type `string`; nullable. Board id when available.
      - **name** (required) — type `string`; nullable. Board name when available.
      - **url** (required) — type `string`; nullable. Canonical public board URL when available.
    - **visualAnnotations** (required) — type `array`. Visual annotation labels when available.
      - _items:_
        - type `string`
    - **metrics** (required) — type `object`. Engagement metrics when available.
      - **saves** (required) — type `integer`; minimum: 0; nullable. Save count when available.
      - **comments** (required) — type `integer`; minimum: 0; nullable. Comment count when available.
      - **reactions** (required) — type `integer`; minimum: 0; nullable. Reaction count when available.
      - **repins** (required) — type `integer`; minimum: 0; nullable. Repin count when available.
      - **shares** (required) — type `integer`; minimum: 0; nullable. Share count when available.
- **meta** (required) — type `object`. Metadata describing the request and billing outcome.
  - **requestId** (required) — type `string`; minLength: 1. Unique request identifier for tracing this API call.
  - **creditsCharged** (required) — type `integer`; minimum: 0. Credits charged for this request.
  - **version** (required) — type `string`; enum: v1. Public API version that served the response.

### Example JSON (found)

```json
{
  "data": {
    "lookupStatus": "found",
    "pin": {
      "id": "68747564459",
      "url": "https://www.pinterest.com/pin/68747564459/",
      "title": "Italian Pot Roast (Straccato)",
      "description": "Italian Pot Roast (Straccato)",
      "altText": "a white bowl filled with meat and tomato sauce on top of a wooden cutting board",
      "link": "https://www.closetcooking.com/italian-pot-roast-straccato/",
      "domain": "closetcooking.com",
      "dominantColor": "#714426",
      "createdAt": "Thu, 06 Jun 2024 02:33:19 +0000",
      "images": {
        "orig": {
          "url": "https://i.pinimg.com/originals/d9/cb/ac/d9cbac6b643a03c096f7fd0566cecaf1.jpg",
          "width": 800,
          "height": 1200
        },
        "size236": {
          "url": "https://i.pinimg.com/236x/d9/cb/ac/d9cbac6b643a03c096f7fd0566cecaf1.jpg",
          "width": 236,
          "height": 354
        },
        "size474": {
          "url": "https://i.pinimg.com/474x/d9/cb/ac/d9cbac6b643a03c096f7fd0566cecaf1.jpg",
          "width": 474,
          "height": 711
        },
        "size564": {
          "url": "https://i.pinimg.com/564x/d9/cb/ac/d9cbac6b643a03c096f7fd0566cecaf1.jpg",
          "width": 564,
          "height": 846
        },
        "size736": {
          "url": "https://i.pinimg.com/736x/d9/cb/ac/d9cbac6b643a03c096f7fd0566cecaf1.jpg",
          "width": 736,
          "height": 1104
        }
      },
      "pinner": {
        "id": "206158435152",
        "username": "fluffduckie",
        "fullName": "Adrienne James",
        "avatarUrl": "https://i.pinimg.com/75x75_RS/00/60/87/0060871118d040a1ad20ace0148923da.jpg"
      },
      "originPinner": {
        "id": "91268467356860596",
        "username": "ClosetCooking",
        "fullName": "Closet Cooking",
        "avatarUrl": "https://i.pinimg.com/75x75_RS/71/1a/ce/711ace70f2f6f846692993a7ec3da426.jpg"
      },
      "board": {
        "id": "137438999215",
        "name": "Food & Fun",
        "url": "https://www.pinterest.com/fluffduckie/food-fun/"
      },
      "visualAnnotations": [
        "Over The Top Recipes"
      ],
      "metrics": {
        "saves": 49054,
        "comments": 55,
        "reactions": 694,
        "repins": 2208,
        "shares": 162
      }
    }
  },
  "meta": {
    "requestId": "req_01example",
    "creditsCharged": 1,
    "version": "v1"
  }
}
```

### Machine-readable error codes

When an error JSON body is returned, it may include one of these `error.code` values (derived from the OpenAPI schemas for this operation; additional codes may exist at runtime):

- `bad_request`

## Error handling & retries

Interpret HTTP status codes using the descriptions below. Do not assume a JSON body unless the OpenAPI schema defines one for that status.

- **400**: Invalid query parameters **Retry:** Fix the request; retrying the same invalid payload will not help.
- **401**: Missing or invalid API key **Retry:** Fix the API key first; retrying without changes will not help.
- **402**: Insufficient credits **Retry:** Do not retry without resolving billing/credits (retrying the same request will not help).
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed from the response (unexpected or invalid data). **Retry:** May be transient; a few retries with backoff are reasonable.
- **503**: Service temporarily unavailable; safe to retry with backoff. **Retry:** Usually safe to retry with exponential backoff and jitter.

### Suggested client defaults

- Send the API key using the `x-api-key` header on every request.
- On `503` (and sometimes `502`), retry with backoff; cap retries and surface a clear error to the user.
- On `402`, surface an actionable billing message rather than blind retries.

## Examples

### TypeScript SDK

```typescript
import { SocialFetchClient } from "@socialfetch/sdk";

const client = new SocialFetchClient({
  apiKey: process.env.SOCIALFETCH_API_KEY!,
});

const result = await client.pinterest.getPin({
  url: "https://www.pinterest.com/pin/1124351863225567517/",
});

if (!result.ok) {
  console.error(result.error);
} else {
  console.log(result.value.data);
}
```

### Node.js

```javascript
const response = await fetch(
  "https://api.socialfetch.dev/v1/pinterest/pins?url=https://www.pinterest.com/pin/1124351863225567517/",
  {
    headers: {
      "x-api-key": "YOUR_API_KEY"
    }
  }
);

const data = await response.json();
console.log(data);
```

### cURL

```bash
curl "https://api.socialfetch.dev/v1/pinterest/pins?url=https://www.pinterest.com/pin/1124351863225567517/" \
  -H "x-api-key: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.get(
    "https://api.socialfetch.dev/v1/pinterest/pins?url=https://www.pinterest.com/pin/1124351863225567517/",
    headers={"x-api-key": "YOUR_API_KEY"},
)
data = response.json()
print(data)
```

### Example: optional query parameters

First request illustrating common optional query flags (adjust values to your integration):

```javascript
const url = "https://api.socialfetch.dev/v1/pinterest/pins?trim=true";
const response = await fetch(url, {
  headers: { "x-api-key": "YOUR_API_KEY" },
});
const data = await response.json();
```