json pinterest api 文档
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9951045/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
pinterest api documentation
提问by Dylan Valade
Update Aug 2015:Pinterest provides it here now https://dev.pinterest.com/
2015 年 8 月更新:Pinterest 现在在此处提供https://dev.pinterest.com/
Is there official or unofficial documentation on the v2 Pinterest API?
是否有关于 v2 Pinterest API 的官方或非官方文档?
Things I know:
我知道的事情:
- JSON api is in version 2. https://api.pinterest.com/v2gives you a json response
- People are programming against it because there is a mobile app and beta dev
- Pintrest authentication question on SO
- PHP wrapper for v1 with updates for v2 on Github by Kellanwith methods: upload, pin, repin, boards, activity, popular - reading Kellan's code is the best information I could find
- More infoon Kellan's work with responses from Pinterest team
- Private unofficial Facebook Pinterest Dev group
- Here are some of the stars behind Pinterest
- JSON api 是第 2 版 。https://api.pinterest.com/v2 为您提供 json 响应
- 人们正在针对它进行编程,因为有一个移动应用程序和测试版开发者
- SO上的Pintrest身份验证问题
- 用于 v1 的 PHP 包装器以及 Kellan 在 Github 上的 v2 更新方法:上传、固定、回复、板、活动、流行 - 阅读凯兰的代码是我能找到的最佳信息
- 有关Kellan 工作的更多信息以及来自 Pinterest 团队的回复
- 私人非官方 Facebook Pinterest 开发小组
- 以下是 Pinterest 背后的一些明星
Update Mar 4 2014Pinterest has unveiled a beta v3 API which you can request access to. Scroll down the page and you'll see the endpoints listed in the left column. https://developers.pinterest.com/api_docs/
2014 年 3 月 4 日更新Pinterest 推出了一个 beta v3 API,您可以请求访问。向下滚动页面,您将看到左列中列出的端点。 https://developers.pinterest.com/api_docs/
Update Jan 9 2013Since https://api.pinterest.com/v2gives a 404, it seems to have been moved to v3. https://api.pinterest.com/v3
2013年1 月 9 日更新由于https://api.pinterest.com/v2给出了 404,它似乎已移至 v3。 https://api.pinterest.com/v3
{ "status": "failure", "code": 11, "host": "053", "generated_at": "Wed, 09 Jan 2013 10:25:27 +0000", "message": "API method not found.", "data": null }
Update Nov 19, 2012The unofficial api documentation at http://tijn.bo.lt/pinterest-apiis gone, along with their entire website. I'm leaving the link in this post because it may come back online. Still no word from Pinterest to developers on their api status.
2012 年 11 月 19 日更新http://tijn.bo.lt/pinterest-api 上的非官方 api 文档及其整个网站都消失了。我将链接留在这篇文章中,因为它可能会重新上线。Pinterest 仍然没有向开发人员说明他们的 api 状态。
Update May 22, 2012Pinterest has still not provided a public api. People are connecting to the api endpoints as the iPhone user agent, which is available to the iOS app
2012 年 5 月 22 日更新Pinterest 仍未提供公共 API。人们以 iPhone 用户代理的身份连接到 api 端点,可用于 iOS 应用程序
Update Apr 17, 2012Thanks to tijn, we have unofficial version 1(now v2) Pinterest api docs, and reports that only read endpoints are currently available so RSS style feeds are possible within rate limits.
2012 年 4 月 17 日更新多亏了 tijn,我们有了非官方版本 1(现在是 v2)Pinterest api 文档,并报告目前只有读取端点可用,因此 RSS 样式提要在速率限制内是可能的。
Update Apr 3, 2012The unofficial Facebook group has some quality info on it and several people asking questions and posting fairly useful responses
2012 年 4 月 3 日更新非官方 Facebook 群组上有一些高质量的信息,有几个人提出问题并发布了相当有用的回复
采纳答案by Encore PTL
There is no Official API Docsavailable for Pinterest as of today.
有没有官方的API文档可作为Pinterest的今天。
But there is the unofficial documentation for v2 here: http://tijn.bo.lt/pinterest-api
但是这里有 v2 的非官方文档:http: //tijn.bo.lt/pinterest-api
回答by Ben Wong
I want to offer an update on the current status of the Pinterest API.
我想提供有关 Pinterest API 当前状态的更新。
There is still no public API available. Pinterest also does not seem to be approving anyone who applies for access on their site.
仍然没有可用的公共 API。Pinterest 似乎也没有批准任何申请访问其网站的人。
As of right now, the endpoints of the Pinterest v3 API are almost complete although there is no official documentation. Below is a brief list of the types of endpoints that are available:
截至目前,虽然没有官方文档,但 Pinterest v3 API 的端点几乎已经完成。以下是可用端点类型的简要列表:
https://api.pinterest.com/v3/users/
https://api.pinterest.com/v3/search/
https://api.pinterest.com/v3/domains/
https://api.pinterest.com/v3/categories/
https://api.pinterest.com/v3/oauth/
https://api.pinterest.com/v3/boards/
https://api.pinterest.com/v3/pins/
https://api.pinterest.com/v3/batch/
https://api.pinterest.com/v3/login/
You may discover many sub-endpoints to each of the endpoint above. I do have a list of many available endpoints, but since they're not public, I'm not going to post them here (Hint: Most of them are easy to guess). All of the above endpoints require an access_token parameter except for the login endpoint.
您可能会发现上述每个端点的许多子端点。我确实有许多可用端点的列表,但由于它们不是公开的,因此我不打算将它们张贴在这里(提示:它们中的大多数很容易猜到)。除了登录端点之外,上述所有端点都需要一个 access_token 参数。
To generate a valid access_token, the developer will need to be granted access to the API by Pinterest which we all know is currently almost impossible.
要生成有效的 access_token,开发人员需要获得 Pinterest 的 API 访问权限,我们都知道目前这几乎是不可能的。
Another option is to write a script to simulate a log in action to the /v3/loginendpoint with your Pinterest username and password. It will return an access_token if request is successful. I'm not going into details about how this is done, as this is never meant to be part of the public API and is meant only for users logging into Pinterest on their mobile app.
另一种选择是编写一个脚本来模拟/v3/login使用您的 Pinterest 用户名和密码登录端点的操作。如果请求成功,它将返回一个 access_token。我不会详细说明这是如何完成的,因为这绝不是公共 API 的一部分,仅适用于在其移动应用程序上登录 Pinterest 的用户。
However, you can generate access token for your Pinterest account for existing apps that have been approved by Pinterest such as the Pinterest for iPhone:
但是,您可以为 Pinterest 帐户为 Pinterest 批准的现有应用程序(例如iPhone 版Pinterest )生成访问令牌:
https://www.pinterest.com/oauth/?consumer_id=1431594&response_type=token
https://www.pinterest.com/oauth/?consumer_id=1431594&response_type=token
You will see that the access_token is returned in the hash of the URL. You can now use this access_token to play with the endpoints and it is valid for one month. Have fun discovering them!
您将看到在 URL 的哈希中返回了 access_token。您现在可以使用此 access_token 来玩端点,它的有效期为一个月。发现他们玩得开心!
Endpoints that are public and do not require access_token:
公共且不需要 access_token 的端点:
Pins with a known username and known board name:
具有已知用户名和已知图板名称的 Pin 图:
https://api.pinterest.com/v3/pidgets/boards/[username]/[board_name]/pins/
https://api.pinterest.com/v3/pidgets/boards/[用户名]/[board_name]/pins/
Pins with a known username:
具有已知用户名的 Pin 图:
Retrieving the information of (a) particular pin(s):
检索 (a) 特定引脚的信息:
http://api.pinterest.com/v3/pidgets/pins/info/?pin_ids=521150988102375972,10133167885969245
http://api.pinterest.com/v3/pidgets/pins/info/?pin_ids=521150988102375972,10133167885969245
Count the number of pins:
计算引脚数:
http://api.pinterest.com/v1/urls/count.json?url=[urlEncodedLink]
http://api.pinterest.com/v1/urls/count.json?url=[urlEncodedLink]
回答by Mike Grace
As of June 11, 2012 there is no officially released or documentation API for Pinterest. A Pinterest support pagehas a link to a form to be notified when it is officially released.
截至 2012 年 6 月 11 日,Pinterest 还没有正式发布或文档 API。一个Pinterest的支持页面有当它正式发布通知的形式链接。
回答by jmoz
Check Pinterest APIfor a scraper for the time being.
暂时检查Pinterest API以获取刮刀。
回答by Ricardo Pedroni
If anyone's still interested, apparently URLs in the format
如果有人仍然感兴趣,显然是格式中的 URL
https://widgets.pinterest.com/v3/pidgets/users/{{ USER }}/pins
will return a nice payload of information, including user info.
将返回一个很好的信息负载,包括用户信息。
回答by Dirk Groenen
The question is quite old, but if anyone is still interested in an up-to-date answer: Pinterest has finally launched an official API, including an SDK for Javascript, Android and iOS.
这个问题已经很老了,但如果有人仍然对最新答案感兴趣:Pinterest 终于推出了官方 API,包括适用于 Javascript、Android 和 iOS 的 SDK。
I've been working on a PHP wrapperfor it and noticed that not every endpoint in the documentation is working properly, but most of the things are working.
我一直在为它开发PHP 包装器,并注意到并非文档中的每个端点都正常工作,但大多数事情都在工作。
回答by Chris Ismael
There's an unofficial Pinterest API in Mashape - https://www.mashape.com/ismaelc/pinterest-1#!documentation
Mashape 中有一个非官方的 Pinterest API - https://www.mashape.com/ismaelc/pinterest-1#!documentation
Screenshot below:
截图如下:


And here's another one that might be worth looking at (uses PhantomJSCloud API) - https://www.mashape.com/novaleaf/pinterest-to-json#!documentation
这是另一个可能值得一看的(使用 PhantomJSCloud API) - https://www.mashape.com/novaleaf/pinterest-to-json#!documentation
Sample response looks like this:
示例响应如下所示:
{
"pinterest_parser": {
"boards": [
{
"boardCover": {
"alt": "Stuff We Love / by Etsy",
"src": "http://media-cache-ak0.pinimg.com/custom_covers/216x146/155303955839058075_1385935738.jpg"
},
"boardThumbs": [
{
"alt": "",
"src": "http://media-cache-ec0.pinimg.com/45x45/eb/90/3d/eb903ddac82981f34f2071753ec2d9ac.jpg"
},
{
"alt": "",
"src": "http://media-cache-ec0.pinimg.com/45x45/01/54/79/015479f7d193838cab29334953416cf2.jpg"
},
{
"alt": "",
"src": "http://media-cache-ec0.pinimg.com/45x45/79/11/36/7911362bd2fb73a2b2edf8427e944c69.jpg"
},
{
"alt": "",
"src": "http://media-cache-ak0.pinimg.com/45x45/1b/a8/66/1ba866bdc7a4e4ee0d99fc838be1b2bb.jpg"
}
],
"href": "/etsy/products-i-love/",
"pins": "690",
"title": "Stuff We Love\n Etsy"
},
...
回答by JP Hellemons
It seems that https://api.pinterest.com/v3/pins/jphellemons/
似乎 https://api.pinterest.com/v3/pins/jphellemons/
gives this message:
给出这个消息:
{
"status": "failure",
"code": 2,
"host": "ngapi-10430284",
"generated_at": "Wed, 26 Jun 2013 14:56:44 +0000",
"message": "Authentication failed.",
"data": null
}
and url https://api.pinterest.com/v3/pins/gives
和网址https://api.pinterest.com/v3/pins/给出
{
"status": "failure",
"code": 5,
"host": "ngapi-70bcb1cc",
"generated_at": "Wed, 26 Jun 2013 15:01:07 +0000",
"message": "Method not allowed",
"data": "405 Method Not Allowed"
}
So the upcoming API will be at that url I guess. Just authenticate with oAuth I guess. Because they hired John Yi recently
所以我猜即将到来的 API 将在那个 url 上。我想只需使用 oAuth 进行身份验证。因为他们最近聘请了易约翰
- http://allthingsd.com/20130612/the-pinterest-api-is-coming-head-of-marketing-developer-partnerships-joins-up/
- http://www.businessinsider.com/pinterest-hires-john-yi-to-launch-api-2013-6
- http://allthingsd.com/20130612/the-pinterest-api-is-coming-head-of-marketing-developer-partnerships-joins-up/
- http://www.businessinsider.com/pinterest-hires-john-yi-to-launch-api-2013-6
if you cannot wait for the official api: http://pinterestapi.co.uk/
如果你等不及官方api:http: //pinterestapi.co.uk/
update 18 junehttp://readwrite.com/2013/06/18/the-disappointing-tale-of-pinterests-long-awaited-api#awesm=~oeF8IxscKLvPhN
update 31 julyhttp://allthingsd.com/20130731/about-that-pinterest-api-its-not-ready-yet/
7 月 31 日更新http://allthingsd.com/20130731/about-that-pinterest-api-its-not-ready-yet/
回答by Matthew Fitzgerald
iv got a simple and quick way to post to Pinterest but unfortunately at this time it will only post a pin to a board and give the user the option to view their profile.
iv 有一种简单快捷的发布到 Pinterest 的方法,但不幸的是,目前它只会将图钉发布到板上,并为用户提供查看其个人资料的选项。
Im a iOS developer using Titanium Studio, build: 3.0.1.20.
我是使用 Titanium Studio 的 iOS 开发人员,版本:3.0.1.20。
var webView = Ti.UI.createWebView({
url : 'http://pinterest.com/pin/create/button/?url='ADD WEBSITE URL HERE '&media='ADD PICTURE URL HERE'&description=ADD DESCRIPTION HERE',
top : offset,
right : offset,
bottom : offset,
left : offset,
autoDetect : [Ti.UI.iOS.AUTODETECT_NONE]
});
回答by Amitesh Kumar
This is the official documentation for pinterest i found, And it helps may i hope it will help u also Official documentation
这是我找到的 pinterest 的官方文档,它有帮助,我希望它也能帮助你 官方文档
https://api.pinterest.com/v1/pins/431430839282408407/?access_token=aaa
https://api.pinterest.com/v1/boards/lorihiney/quotes/pins/?access_token=aa&limit=20&fields=id,link,counts
https://api.pinterest.com/v1/boards/mother1086/test-title/pins/?access_token=aaa&limit=2&fields=id,link,counts

