PHPackages                             shevabam/amazon-product-info - 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. [API Development](/categories/api)
4. /
5. shevabam/amazon-product-info

ActiveLibrary[API Development](/categories/api)

shevabam/amazon-product-info
============================

Get simple product information from Amazon API

2.1.0(5mo ago)439GPL-2.0-onlyPHPPHP &gt;=8.0

Since Jan 28Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/shevabam/amazon-product-info)[ Packagist](https://packagist.org/packages/shevabam/amazon-product-info)[ Docs](https://github.com/shevabam/amazon-product-info)[ RSS](/packages/shevabam-amazon-product-info/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Amazon Product Information
==========================

[](#amazon-product-information)

Amazon Product Information is a PHP library for fetching simple products information from Amazon API.

Provides simple information about a product from its ASIN number.

The information returned is:

- product name
- access URL
- main image (different dimensions)
- price

Requirements
------------

[](#requirements)

You have to set up an [Amazon Associates](https://affiliate-program.amazon.com/) account that has been reviewed and received final acceptance in to the Amazon Associates Program.

You'll need an **access key**, **secret key**, and **partner tag** *(Tools &gt; Product Advertising API)*.

More information [here](https://webservices.amazon.com/paapi5/documentation/register-for-pa-api.html).

Amazon Product Information requires PHP 8.0+.

Installation
------------

[](#installation)

With Composer, run this command:

```
composer require shevabam/amazon-product-info

```

It downloads the [Product Advertising API PHP SDK](https://github.com/thewirecutter/paapi5-php-sdk/) provided by [Amazon](https://webservices.amazon.com/paapi5/documentation/index.html).

Usage
-----

[](#usage)

First, include the library in your code using the Composer autoloader and then create an AmazonProductInfo object with your Amazon Associates credentials.

```
require 'vendor/autoload.php';

$Amz = new \AmazonProductInfo\AmazonProductInfo([
    'access_key'  => '',
    'secret_key'  => '',
    'partner_tag' => '',
    'lang'        => 'fr'
]);
```

### Locale

[](#locale)

This library supports all [Product Advertising API locales](https://webservices.amazon.com/paapi5/documentation/common-request-parameters.html#host-and-region).

Default: us.

langcountryauAustraliabrBrazilcaCanadafrFrancedeGermanyinIndiaitItalyjpJapanmxMexiconlNetherlandssgSingaporesaSouth ArabiaesSpainswSwedentrTurkeyaeUnited Arab EmiratesukUnited KingdomusUnited States### Search item(s) by ASIN

[](#search-items-by-asin)

You can search items with ASIN number (must be an array):

```
$getResults = $Amz->searchByAsin(["B084J4MZK6", "B07ZZVWB4L"]);
```

Full example
------------

[](#full-example)

```
require 'vendor/autoload.php';

$Amz = new \AmazonProductInfo\AmazonProductInfo([
    'access_key'  => '',
    'secret_key'  => '',
    'partner_tag' => '',
    'lang'        => 'fr'
]);

$getResults = $Amz->searchByAsin(["B084J4MZK6", "B07ZZVWB4L"]);
```

Result:

```
Array
(
    [error] =>
    [datas] => Array
    (
        [B084J4MZK6] => Array
        (
            [title] => Nouvel Echo Dot (4e génération), Enceinte connectée avec Alexa, Blanc
            [url] => https://www.amazon.fr/dp/B084J4MZK6?tag=¤¤&linkCode=ogi&th=1&psc=1
            [images] => Array
            (
                [primary] => Array
                (
                    [small] => Array
                    (
                        [url] => https://m.media-amazon.com/images/I/51Jb6AQdGcL._SL75_.jpg
                        [width] => 75
                        [height] => 75
                    )
                    [medium] => Array
                    (
                        [url] => https://m.media-amazon.com/images/I/51Jb6AQdGcL._SL160_.jpg
                        [width] => 160
                        [height] => 160
                    )
                    [large] => Array
                    (
                        [url] => https://m.media-amazon.com/images/I/51Jb6AQdGcL.jpg
                        [width] => 500
                        [height] => 500
                    )
                )
            )
            [price] => 29,99 €
        )
        [B07ZZVWB4L] => Array
        (
            [title] => Découvrez Fire TV Stick Lite avec télécommande vocale Alexa | Lite (sans boutons de contrôle de la TV), Streaming HD, Modèle 2020
            [url] => https://www.amazon.fr/dp/B07ZZVWB4L?tag=¤¤&linkCode=ogi&th=1&psc=1
            [images] => Array
            (
                [primary] => Array
                (
                    [small] => Array
                    (
                        [url] => https://m.media-amazon.com/images/I/318TG3aNKpL._SL75_.jpg
                        [width] => 75
                        [height] => 75
                    )
                    [medium] => Array
                    (
                        [url] => https://m.media-amazon.com/images/I/318TG3aNKpL._SL160_.jpg
                        [width] => 160
                        [height] => 160
                    )
                    [large] => Array
                    (
                        [url] => https://m.media-amazon.com/images/I/318TG3aNKpL.jpg
                        [width] => 500
                        [height] => 500
                    )
                )
            )
            [price] => 29,99 €
        )
    )
)

```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance74

Regular maintenance activity

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~885 days

Total

3

Last Release

164d ago

Major Versions

1.0.0 → 2.0.02024-02-13

PHP version history (2 changes)1.0.0PHP &gt;=5.5

2.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e0e17e3945c589234ce1ae3edb38bdb9fa8ac609f97ad0462b25dc71d3a7b2d?d=identicon)[shevabam](/maintainers/shevabam)

---

Top Contributors

[![shevabam](https://avatars.githubusercontent.com/u/1798289?v=4)](https://github.com/shevabam "shevabam (9 commits)")

---

Tags

amazonapiinformationproductapiamazonproduct

### Embed Badge

![Health badge](/badges/shevabam-amazon-product-info/health.svg)

```
[![Health](https://phpackages.com/badges/shevabam-amazon-product-info/health.svg)](https://phpackages.com/packages/shevabam-amazon-product-info)
```

###  Alternatives

[marcl/amazonproductapi

PHP library to perform product lookup and searches using the Amazon Product API.

13212.4k1](/packages/marcl-amazonproductapi)[jakiboy/apaapi

Easily integrate with the Amazon Affiliate Program using the lightweight APAAPI library for Amazon Creators API (With OAuth 2.0 &amp; Credential-less)

543.8k](/packages/jakiboy-apaapi)[thiagomarini/amazon-mws-client

PHP client for Amazon MWS API

151.4k](/packages/thiagomarini-amazon-mws-client)

PHPackages © 2026

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