Pinterest URL save count API
How many times each of up to 10 web pages was saved to Pinterest.
GET /v1/pinterest/url-stats1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/pinterest/url-stats?urls=https%3A%2F%2Fwww.allrecipes.com%2F",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": [ { "url": "https://www.allrecipes.com/", "count": 15353 } ]}Parameters
| Name | Type | Description |
|---|---|---|
urlsquery · required | string | Comma-separated absolute http(s) URLs, 1 to 10. Example: https://www.allrecipes.com/. |
Response fields
200 with a PinterestUrlStats, in Pinterest’s own pin, board and user objects.
| Field | Type | Description |
|---|---|---|
data | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | A count per URL. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The pin, board, account or topic does not exist, is not public, or is only known by an encrypted id. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Pinterest is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Do variants count together?
No. http and https, a trailing slash or a query string are different URLs.
Pinterest is a trademark of Pinterest, Inc. We are not affiliated with or endorsed by Pinterest.