# Pinterest Resolve pin API (pinterest.resolve_pin)

- Canonical page: [https://everyinfra.com/en/pinterest-api/resolve_pin](https://everyinfra.com/en/pinterest-api/resolve_pin?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "resolve_pin", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=pinterest&action=resolve_pin

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | An `e1_` ID from a list row (the `id` in search, board_pins, section_pins, product_search or similar_pins results), or the /pin/e1_.../ link built from it. |
| image_url | not declared | yes | not declared | Required: the first entry of that row's `image_urls` (for a video Pin, its `thumbnail_url`). |
| username | not declared | yes | not declared | Required: that row's `author_username`. |
| board_url | not declared | no | not declared | That row's `board_url`; optional. When given, the Pin is looked for on that board first, which is faster. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| pin_id | Numeric Pin ID. In `resolve_pin`, the ID the `e1_` ID maps to, which works with `pin` and `comments`; in `comments`, the Pin the comment is on, present only when the request passed `url`. |
| encrypted_id | The `e1_` ID that was resolved. |
| url | Link to the record on the platform. |
| collected_at | Time this record was collected (ISO 8601, UTC). |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "pinterest",
  "action": "resolve_pin",
  "params": {
    "url": "<E1_ID>",
    "image_url": "<IMAGE_URL>",
    "username": "<AUTHOR_USERNAME>"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "pinterest",
        "action": "resolve_pin",
        "params": {
            "url": "<E1_ID>",
            "image_url": "<IMAGE_URL>",
            "username": "<AUTHOR_USERNAME>",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "pinterest",
  "action": "resolve_pin",
  "results": {
    "pin_id": …,
    "encrypted_id": …,
    "url": …,
    "collected_at": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=pinterest
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
