PHPackages                             ivdet/pinterest-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ivdet/pinterest-api

ActiveLibrary

ivdet/pinterest-api
===================

Simply connect to the Pinterest API v3 using PHP and cURL. Fork from kellan/pinterest.api.php \[https://github.com/kellan/pinterest.api.php\]

3961PHP

Since Oct 24Pushed 11y ago2 watchersCompare

[ Source](https://github.com/ivdet/pinterest.api.php)[ Packagist](https://packagist.org/packages/ivdet/pinterest-api)[ RSS](/packages/ivdet-pinterest-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

basic bindings for Pinterest API v3.

*This is an unofficial API, and likely to change and break at any moment.*

==

You'll need an access token to make API calls. This is accomplished with an XAuth-like call using HTTP Basic Auth over SSL.

```
$p = new PinterestAPI();
$p->fetch_access_token($client_id, $client_secret, $username, $password);
$resp = $p->some_api_call($args);

```

See the demo example/index.php to try.

Alternately if you already have an access token

```
$p = new Pinterest_API($access_token);
$p->some_api_call($args);

```

==

The only methods I know about are:

- `upload_pin`
- `repin`
- `boards`
- `activity`
- `popular`

Notably missing is a `pin` method that simulates the pinmarklet. (that said I haven't looked very hard, so if you find one, let me know)

==

At the moment the `upload_pin` method only takes the funny curl style file descriptors. It would be straightforward to make it smarter, but I haven't need it for my script. Call it like so

```
$resp = $p->upload_pin(array(
    'board' => $board_id,
    'details' => 'another test',
    'image' => "@".realpath('../img/37.jpg')
 ));

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/31d71b4a09da7981c3646c5a60b14bb0ac097b067e6c2355a834e15cd5edf3ec?d=identicon)[ivdet](/maintainers/ivdet)

---

Top Contributors

[![kellan](https://avatars.githubusercontent.com/u/2179?v=4)](https://github.com/kellan "kellan (7 commits)")

### Embed Badge

![Health badge](/badges/ivdet-pinterest-api/health.svg)

```
[![Health](https://phpackages.com/badges/ivdet-pinterest-api/health.svg)](https://phpackages.com/packages/ivdet-pinterest-api)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
