# Amazon Stock Quantity Scraper (`axesso_data/amazon-stock-quantity-scraper`) Actor

Our Amazon Stock Quantity Scraper retrieves real-time available stock quantity for a product's Buy Box or a specific seller, including exact quantity, price, item condition, fulfillment type, and estimated delivery date, perfect for inventory and demand monitoring.

- **URL**: https://apify.com/axesso\_data/amazon-stock-quantity-scraper.md
- **Developed by:** [AxCrawler](https://apify.com/axesso_data) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### How does Amazon Stock Quantity Scraper work?

Our Actor retrieves the real-time available stock quantity for an Amazon product offer. You can use this Actor by providing the respective ASIN and domain code for which you would like to check the stock quantity. Optionally, a sellerId can be provided to check the stock quantity for a specific seller's offer instead of the current featured offer (Buy Box). There is no limitation on the provided input items, our Actor will fetch the stock quantity for every single item you provide.

The Actor queries Amazon live for every request, no cached or historical data is returned. This ensures the returned availableQuantity, price, and offer details always reflect the current state of the product page at the time of the run.

Besides the available quantity, the response also includes an exactQuantity indicator, showing whether the returned value is the exact stock count or a lower bound, as well as additional offer details such as seller name and rating, item condition, price, fulfillment type, and estimated delivery date. If the queried seller does not currently hold an offer for the given product, the response status reflects OFFER\_NOT\_FOUND\_RESPONSE.

### Input data

The input for this Actor is a JSON object containing one mandatory array field, "input". Each entry in the array refers to one request to be executed, so multiple items can be processed within a single run. The following parameters are available for each entry:

- **asin** (required): The ASIN of the product to check.
- **domainCode** (required): The Amazon marketplace to query, e.g. com for Amazon.com, de for Amazon.de, or co.uk for Amazon.co.uk. All common domain codes are supported.
- **sellerId** (optional): The seller ID (merchant ID) whose offer should be checked, e.g. `A1ZY1TL381H960`. If omitted, the current featured offer (Buy Box) is checked. If the specified seller does not have an offer for the product, the response status is OFFER\_NOT\_FOUND\_RESPONSE.

#### Example input

```
{
"input": [
    {
      "asin": "B0DT63VW3J",
      "domainCode": "com"
    },
    {
      "asin": "B0DT63VW3J",
      "domainCode": "com",
      "sellerId": "A1ZY1TL381H960"
    }
    ]
}
```

### Output data

```json
[
  {
    "statusCode": 200,
    "statusMessage": "FOUND",
    "responseStatus": "PRODUCT_FOUND_RESPONSE",
    "responseMessage": "Product successfully found!",
    "asin": "B0DT63VW3J",
    "domainCode": "com",
    "productTitle": "Mars power Straight Leg Jeans for Women High Waisted Wide Leg Denim Pants | Baggy,Trendy,Boyfriend Fit,Cofortable,Relaxed,Casual Wear,High Rise,Five Pockets,Regular,Loose Stretchy,Fashion",
    "productRating": "4",
    "countReview": 1394,
    "otherOffersCount": 0,
    "sellerId": "A1ZY1TL381H960",
    "sellerName": "Gengyao US",
    "sellerStarRating": "5",
    "sellerRatingCount": 76,
    "sellerRatingPercentage": 95,
    "pinnedOffer": true,
    "condition": "New",
    "shipsFrom": "Amazon.com",
    "fulfilledByAmazon": true,
    "prime": false,
    "price": "$34.98",
    "deliveryPrice": "FREE",
    "deliveryTime": "Tuesday, August 25",
    "cartQuantity": 961,
    "availableQuantity": 961,
    "exactQuantity": true,
    "amazonMessage": "You've requested more of Mars power Jeans for Women Wide Leg Baggy Denim Pants(Light Blue, M), than the 961 available from the seller you've selected."
  }
]
```

### How much does Amazon Stock Quantity Scraper cost?

Estimating the resources required for data scraping can be difficult due to the diverse nature of use cases. Therefore, it is advisable to conduct a test scrape using a small sample of input data and generate a limited amount of output. This will allow you to determine the cost per scrape, which can then be multiplied by the total number of scrapes you plan to perform.

### What to consider when using this Actor?

We have been performing web crawling activities for over a decade. All our expertise is included in this Actor, this means the user of this Actor is not required to deal with any inconveniences of web scraping.

In details it means we cover the whole lifecycle including

1. **Proxy Rotation:** We Use our own Proxy Pool including several Millions of Proxies in all countries worldwide avoiding that our Scraper can be blocked.

2. **Geo Targeting:** We determine the correct location based on the provided domainCode. If you would like to fetch results for the amazon.com domain, we only use Proxies from USA for the corresponding request. Thus, we support all Amazon domains available while using always the right Proxy location.

3. **Captchas and 503 Status Code:** Captchas and temporary are completly handled by this Actor under the hood ensuring the user to get always the required data.

4. **Further rotation** As already mentioned, our Actor is covering all required activities to ensure a smooth user experience at any point in time.

### More Amazon Actors

Looking for a different slice of Amazon data? We offer a full suite of real-time Amazon Actors - each one dedicated to a specific purpose:

| Actor | What it does |
|---|---|
| [Amazon Deals Scraper](https://apify.com/axesso_data/amazon-deals-scraper) | Our Amazon Deals Dataset contains all active deals from Amazon. |
| [Amazon Product Details Scraper](https://apify.com/axesso_data/amazon-product-details-scraper) | With our Amazon Product Details Scraper you can retrieve product details data from Amazon website. |
| [Amazon Product Offers Scraper](https://apify.com/axesso_data/amazon-product-offers-scraper) | Our Amazon Product Offers Scraper provides real-time offer prices from various sellers for specified Amazon products. |
| [Amazon Reviews Scraper US](https://apify.com/axesso_data/amazon-reviews-scraper-us) | Fast Amazon review scraper for the Amazon.com (US) marketplace. |
| [Amazon Reviews with Media Scraper](https://apify.com/axesso_data/amazon-reviews-with-media-scraper) | This actor extracts customer reviews for a given Amazon product that include media attachments like images or videos. |
| [Amazon Search Scraper](https://apify.com/axesso_data/amazon-search-scraper) | Our Amazon Search Results Scraper extracts real-time search results from Amazon, including product titles, prices, ratings and other key ... |
| [Amazon Seller Scraper](https://apify.com/axesso_data/amazon-seller-scraper) | Our Amazon Seller Scraper retrieves real-time seller details from Amazon, including seller name, total reviews, product listings, ... |

All our Actors are built and maintained to the same standards: real-time data without caching, high availability and active maintenance, consistent input patterns, and responsive support when you need help. If you are missing a specific actor, reach out - the portfolio is continuously growing.

### Where else you can find us?

Our solutions are available and distributed via different channels. You can find our full API selection either on own [API Portal](https://axesso.developer.azure-api.net/apis)  or on [Rapid API](https://rapidapi.com/search?term=axesso\&sortBy=ByRelevance).

On RapidAPI our solutions are already available since 5 years given by track record which in sum is reflected by over 3000 subscriber split up over all our APIs. Check it out, to gain trust in our experience!

### Use cases for our Actors

1. **Market Research:** Businesses can utilize this Actor to gather product information, pricing data, customer reviews, and seller details from Amazon. This information can help in understanding market trends, competitor analysis, and identifying gaps in the market.

2. **Price Monitoring:** E-commerce retailers can track prices of their own products as well as competitor products on Amazon using this Actor. This enables them to adjust their pricing strategies in real-time to stay competitive and maximize profits.

3. **Inventory Management:** Sellers can automate inventory management by leveraging this Actor to monitor stock levels, product availability, and any changes in product attributes on Amazon. This ensures timely restocking and prevents stockouts or overstocking.

4. **Product Catalog Management:** Retailers with large product catalogs can efficiently update their product listings on Amazon using this Actor. This includes extracting product titles, descriptions, images, and specifications from their database and synchronizing them with Amazon listings.

5. **Review Monitoring and Sentiment Analysis:** Brands can monitor customer reviews of their products on Amazon using this Actor. By analyzing sentiment and identifying common issues or positive feedback, brands can improve their products and customer satisfaction.

6. **Lead Generation:** Businesses can leverage this Actor to scrape Amazon for contact information of sellers or manufacturers to identify potential suppliers, distributors, or partners. This data can be used for targeted outreach and business development efforts.

7. **Content Aggregation and Curation:** Content creators, bloggers, and publishers can use this Actor to aggregate product information, images, and customer reviews from Amazon to create curated content such as product reviews, comparison articles, or buying guides.

8. **Price Comparison Websites:** Price comparison websites can utilize this Actor to collect pricing data from Amazon and other e-commerce platforms. This enables consumers to compare prices across different retailers and make informed purchasing decisions.

9. **Ad Campaign Optimization:** Advertisers can scrape Amazon using this Actor to gather insights into popular products, keywords, and advertising strategies. This data can be used to optimize Amazon PPC (pay-per-click) campaigns and maximize return on ad spend (ROAS).

### Disclaimer

This Actor is not affiliated or partnered with the vendors used in the Actor; only publicly available data is extracted. Users are responsible for ensuring that their use of the Actor and the returned data complies with applicable laws and the requirements of their individual use case.

# Actor input Schema

## `input` (type: `array`):

List of inputs, each entry refers to one request to be executed. Full list of valid parameters can be found in the README tab.

## Actor input object example

```json
{
  "input": [
    {
      "asin": "B0DT63VW3J",
      "domainCode": "com"
    },
    {
      "asin": "B0DT63VW3J",
      "domainCode": "com",
      "sellerId": "A1ZY1TL381H960"
    }
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "input": [
        {
            "asin": "B0DT63VW3J",
            "domainCode": "com"
        },
        {
            "asin": "B0DT63VW3J",
            "domainCode": "com",
            "sellerId": "A1ZY1TL381H960"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("axesso_data/amazon-stock-quantity-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "input": [
        {
            "asin": "B0DT63VW3J",
            "domainCode": "com",
        },
        {
            "asin": "B0DT63VW3J",
            "domainCode": "com",
            "sellerId": "A1ZY1TL381H960",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("axesso_data/amazon-stock-quantity-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "input": [
    {
      "asin": "B0DT63VW3J",
      "domainCode": "com"
    },
    {
      "asin": "B0DT63VW3J",
      "domainCode": "com",
      "sellerId": "A1ZY1TL381H960"
    }
  ]
}' |
apify call axesso_data/amazon-stock-quantity-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,axesso_data/amazon-stock-quantity-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vr1VkyUK4qIV21sDR/builds/TfHI7IJfsKmnaJcbd/openapi.json
