Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Pinterest Pin Details

Tài liệu API
https://api.sandbase.ai/v1/api/pinterest/pin

Returns detailed information for a single Pinterest pin using its page URL. Supports an optional setting to return a trimmed response payload.

Giá
$0.018USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 1 tùy chọn

Phòng thử nghiệm

Đầu vào
The Pinterest pin URL to fetch details for.
Set to true for a trimmed down version of the response.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Pinterest Pin Details API

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.

Use cases

  • Pull the title, description and source link of a saved pin to build a content catalog.
  • Track the save and comment counts of a pin over repeated calls.
  • Find which board and which user attribution a pin belongs to.
  • Read the source domain and original author of an image to check where it came from.

Request

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.

Parameters

NameTypeRequiredDescription
urlstringYesThe Pinterest pin URL to fetch details for.
trimbooleanNoSet to true for a trimmed down version of the response.

Example 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
}

Response fields

FieldMeaning
closeupUnifiedTitle / closeupUnifiedDescriptionTitle and description shown on the pin's closeup page. gridTitle and gridDescription hold the versions shown in the grid.
createdAtDate and time the pin was created, as an RFC 2822 style string such as Thu, 04 Oct 2012 21:50:37 +0000.
entityIdNumeric ID of the pin. It matches the number in the pin URL.
domainDomain of the site the pin links to, such as flickr.com.
attribution.authorName / attribution.authorUrl / attribution.urlName of the original author, their profile link, and the link to the original source item.
aggregatedPinData.aggregatedStats.savesNumber of times the pin has been saved.
aggregatedPinData.commentCountNumber of comments on the pin.
board.name / board.url / board.pinCountName of the board holding the pin, its relative URL path, and the number of pins on it.
board.owner.entityIdID of the user who owns the board.
closeupUnifiedAttribution.username / closeupUnifiedAttribution.followerCountUsername and follower count of the account the pin is credited to.

Notes

  • Copy the pin URL from the browser address bar. It has the form https://www.pinterest.com/pin/<id>/.
  • Many fields, such as adData and affiliateLink, come back as null when the pin has no such data.
  • To see more pins from the same board, use Pinterest Board Pins. To find pins by keyword, use Pinterest Search.

Pricing

$0.018 per successful call. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Pinterest$0.018 mỗi lần gọiJSON
Pinterest$0.018 mỗi lần gọiJSON
Pinterest$0.018 mỗi lần gọiJSON
Pinterest$0.018 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Pinterest Pin Details?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/pinterest/pin với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Pinterest Pin Details có giá bao nhiêu?

$0.018 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Pinterest Pin Details chấp nhận những tham số nào?

Bắt buộc: url (string). Tùy chọn: trim (boolean). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Pinterest Pin Details trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Pinterest không?

Không. Pinterest Pin Details chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Pinterest.