urlstringआवश्यक
The Pinterest pin URL to fetch details for.
https://api.sandbase.ai/v1/api/pinterest/pinReturns detailed information for a single Pinterest pin using its page URL. Supports an optional setting to return a trimmed response payload.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns details for one Pinterest pin, including its title, description, creation date, source attribution, the board it sits on and save and comment counts. It needs the pin page URL in url. Set trim to true to get a smaller response.
curl -X POST "https://api.sandbase.ai/v1/api/pinterest/pin" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.pinterest.com/pin/99360735500167749/"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The Pinterest pin URL to fetch details for. |
trim | boolean | No | Set to true for a trimmed down version of the response. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"__typename": "Pin",
"adData": null,
"adMatchReason": 0,
"adTargetingAttribution": null,
"adTargetingAttributionReasons": null,
"advertiserId": null,
"affiliateDisclosure": null,
"affiliateLink": null,
"aggregatedPinData": {
"aggregatedStats": {
"saves": 101674
},
"commentCount": 30,
"didItData": {
"imagesCount": 142
},
"entityId": "4793404135709870511",
"id": "QWdncmVnYXRlZFBpbkRhdGE6NDc5MzQwNDEzNTcwOTg3MDUxMQ==",
"isShopTheLook": false
},
"attribution": {
"__typename": "Attribution",
"authorName": "kentbrew",
"authorUrl": "http://www.flickr.com/photos/kentbrew/",
"ccUrl": null,
"embed": null,
"providerName": "flickr",
"url": "http://www.flickr.com/photos/kentbrew/6851755809/"
},
"board": {
"boardOrderModifiedAt": "Sun, 14 Mar 2021 17:38:05 +0000",
"collaboratedByMe": false,
"collaboratorPermissions": null,
"coverImageSpec_216x146": {
"url": "https://i.pinimg.com/216x146/e4/e1/fc/e4e1fc7076e459ff87604d5a0b392f77.jpg"
},
"coverImageSpec_236x": {
"url": "https://i.pinimg.com/236x/e4/e1/fc/e4e1fc7076e459ff87604d5a0b392f77.jpg"
},
"coverImageSpec_400x300": {
"url": "https://i.pinimg.com/400x300/e4/e1/fc/e4e1fc7076e459ff87604d5a0b392f77.jpg"
},
"entityId": "99360804217844427",
"followedByMe": false,
"id": "Qm9hcmQ6OTkzNjA4MDQyMTc4NDQ0Mjc=",
"imageCoverHdUrl": "https://i.pinimg.com/474x/e4/e1/fc/e4e1fc7076e459ff87604d5a0b392f77.jpg",
"imageCoverUrl": "https://i.pinimg.com/200x150/e4/e1/fc/e4e1fc7076e459ff87604d5a0b392f77.jpg",
"imageThumbnailUrl": "https://i.pinimg.com/upload/99360804217844427_board_thumbnail_2021-03-14-17-38-0…"
},
"boostAdsData": null
}
| Field | Meaning |
|---|---|
closeupUnifiedTitle / closeupUnifiedDescription | Title and description shown on the pin's closeup page. gridTitle and gridDescription hold the versions shown in the grid. |
createdAt | Date and time the pin was created, as an RFC 2822 style string such as Thu, 04 Oct 2012 21:50:37 +0000. |
entityId | Numeric ID of the pin. It matches the number in the pin URL. |
domain | Domain of the site the pin links to, such as flickr.com. |
attribution.authorName / attribution.authorUrl / attribution.url | Name of the original author, their profile link, and the link to the original source item. |
aggregatedPinData.aggregatedStats.saves | Number of times the pin has been saved. |
aggregatedPinData.commentCount | Number of comments on the pin. |
board.name / board.url / board.pinCount | Name of the board holding the pin, its relative URL path, and the number of pins on it. |
board.owner.entityId | ID of the user who owns the board. |
closeupUnifiedAttribution.username / closeupUnifiedAttribution.followerCount | Username and follower count of the account the pin is credited to. |
https://www.pinterest.com/pin/<id>/.adData and affiliateLink, come back as null when the pin has no such data.$0.018 per successful call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/pinterest/pin" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.pinterest.com/pin/99360735500167749/"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
urlstringआवश्यकThe Pinterest pin URL to fetch details for.
trimbooleanSet to true for a trimmed down version of the response.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Pinterest Pin Detailsयह API Pinterest | $0.018 प्रति कॉल | JSON |
Pinterest | $0.018 प्रति कॉल | JSON |
Pinterest | $0.018 प्रति कॉल | JSON |
Pinterest | $0.018 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/pinterest/pin पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.018 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: url (string)। वैकल्पिक: trim (boolean)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Pinterest Pin Details SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Pinterest API access के लिए आवेदन करने की आवश्यकता नहीं है।