100 free credits. No credit card required. Get a key

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 failure
import 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

NameTypeDescription
urlsquery · requiredstringComma-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.

FieldTypeDescription
dataobject[]
Status codes
StatusMeaning
200A count per URL.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The pin, board, account or topic does not exist, is not public, or is only known by an encrypted id.
429Too many requests. Wait for Retry-After seconds.
503Pinterest 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.