Pinterest user boards API
An account’s public boards with pin, follower and section counts, 25 a page.
GET /v1/pinterest/users/{username}/boards1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/pinterest/users/marthastewart/boards",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": [ { "id": "32088284784058747", "name": "#LetsCelebrate Pin Party", "url": "/marthastewart/letscelebrate-pin-party/", "description": "Repin your favorite party on this board with #LetsCelebrate in the caption for the chance …", "pin_count": 1153, "follower_count": 1507491, "section_count": 0, "created_at": "Wed, 05 Jun 2013 14:01:03 +0000", "owner": { "node_id": "VXNlcjozMjA4ODM1MzUwMzQ0NTM1Mg==", "explicitly_followed_by_me": false, "is_partner": true, "is_verified_merchant": false, "verified_identity": { "name": "marthastewart", "verified": true }, "domain_verified": true, "full_name": "Martha Stewart", "is_ads_only_profile": false, "is_private_profile": false, "username": "marthastewart", "follower_count": 1867815, "ads_only_profile_site": null, "type": "user", "is_default_image": false, "…": "2 more fields" }, "privacy": "public", "node_id": "Qm9hcmQ6MzIwODgyODQ3ODQwNTg3NDc=", "followed_by_me": false, "collaborator_count": 13, "allow_homefeed_recommendations": true, "…": "25 more fields" }, { "id": "32088284784029199", "name": "American Made", "url": "/marthastewart/american-made/", "description": "Inspire. Make. Create. The maker movement starts here: http://Martha.ms/5frS #AmericanMade…", "pin_count": 299, "follower_count": 1507242, "section_count": 0, "created_at": "Wed, 15 Aug 2012 14:44:33 +0000", "owner": { "node_id": "VXNlcjozMjA4ODM1MzUwMzQ0NTM1Mg==", "explicitly_followed_by_me": false, "is_partner": true, "is_verified_merchant": false, "verified_identity": { "name": "marthastewart", "verified": true }, "domain_verified": true, "full_name": "Martha Stewart", "is_ads_only_profile": false, "is_private_profile": false, "username": "marthastewart", "follower_count": 1867815, "ads_only_profile_site": null, "type": "user", "is_default_image": false, "…": "2 more fields" }, "privacy": "public", "node_id": "Qm9hcmQ6MzIwODgyODQ3ODQwMjkxOTk=", "followed_by_me": false, "collaborator_count": 1, "allow_homefeed_recommendations": true, "…": "25 more fields" }, "… 4 more" ], "bookmark": "LT4zMjA4ODI4NDc4NDA1MDMzMXwyNXwxNzMzNjI2ODQyNTkxMjM2KkdRTCp8MjI1ZjEzZmVlOGRlM2I0MjQ1ZmIyOD…"}Parameters
| Name | Type | Description |
|---|---|---|
usernamepath · required | string | Username (pinterest.com/<username>/) or a profile URL. Example: pinterest. |
afterquery | string | Cursor: the previous page’s bookmark. |
Response fields
200 with a PinterestBoardPage, in Pinterest’s own pin, board and user objects.
| Field | Type | Description |
|---|---|---|
data | PinterestBoard[] | |
bookmark | string | Pass it as after for the next page; absent on the last page. |
Status codes
| Status | Meaning |
|---|---|
200 | A page of boards. |
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
How do I get the next page?
Pass the response’s bookmark back as after.
Pinterest is a trademark of Pinterest, Inc. We are not affiliated with or endorsed by Pinterest.