Pinterest profile API
A public Pinterest profile: name, bio, followers, following, pins, boards, monthly views, website and verification.
GET /v1/pinterest/users/{username}1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/pinterest/users/pinterest",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": { "id": "424605208526455283", "username": "pinterest", "full_name": "Pinterest", "about": "Find your reason to go offline. 📌", "follower_count": 6272053, "following_count": 394, "pin_count": 99150, "board_count": 157, "profile_views": 10000001, "website_url": "http://www.pinterest.com", "created_at": "Thu, 16 Aug 2012 06:25:03 +0000", "node_id": "VXNlcjo0MjQ2MDUyMDg1MjY0NTUyODM=", "is_ads_only_profile": false, "show_creator_profile": true, "third_party_ingestion_data": null, "show_impressum": false, "is_primary_website_verified": true, "avatar_color_index": 6, "video_pin_count": 0, "is_default_image": false, "is_inspirational_merchant": false, "is_verified_merchant": false, "seo_noindex_reason": null, "seo_title": "Pinterest (pinterest) - Profile | Pinterest", "…": "50 more fields" }}Parameters
| Name | Type | Description |
|---|---|---|
usernamepath · required | string | Username (pinterest.com/<username>/) or a profile URL. Example: pinterest. |
Response fields
200 with a PinterestUserResponse, in Pinterest’s own pin, board and user objects.
| Field | Type | Description |
|---|---|---|
data | PinterestUser |
Status codes
| Status | Meaning |
|---|---|
200 | The profile. |
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
Pinterest is a trademark of Pinterest, Inc. We are not affiliated with or endorsed by Pinterest.