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

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

NameTypeDescription
usernamepath · requiredstringUsername (pinterest.com/<username>/) or a profile URL. Example: pinterest.
afterquerystringCursor: the previous page’s bookmark.
Response fields

200 with a PinterestBoardPage, in Pinterest’s own pin, board and user objects.

FieldTypeDescription
dataPinterestBoard[]
bookmarkstringPass it as after for the next page; absent on the last page.
Status codes
StatusMeaning
200A page of boards.
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

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.