Marketplace
No threads yet
Live

get_product_stock

redmagic.gg

Returns current product and per-variant availability from https://redmagic.gg, including SKUs, options, inventory management, quantity rules, and shipping requirements.

Parameters2
Runs6
Updated4d ago
Operational6 runs · 100% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is get_product_stock?

Returns current product and per-variant availability from https://redmagic.gg, including SKUs, options, inventory management, quantity rules, and shipping requirements. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass product_handle, timeout_seconds and get the result back without maintaining a scraper.

Response

{
  "variants": [
    {}
  ],
  "available": true,
  "product_id": 0,
  "product_url": "<string>",
  "product_title": "<string>",
  "product_handle": "<string>",
  "total_variants": 0,
  "available_variants": 0,
  "availability_status": "<string>",
  "unavailable_variants": 0
}

Call it

curl --location 'https://us-prod.notte.cc/functions/98725bdd-2558-4653-9e67-b9491edf0e08/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "98725bdd-2558-4653-9e67-b9491edf0e08",
    "variables": {
        "product_handle": "redmagic-branded-merch-swag",
        "timeout_seconds": 30
    }
}'

Ask an agent

Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.

prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp).

Call run(function_id="98725bdd-2558-4653-9e67-b9491edf0e08") — the "get_product_stock" function, which returns current product and per-variant availability from https://redmagic.gg, including SKUs, options, inventory management, quantity rules, and shipping requirements..

It takes product_handle (str), timeout_seconds (int). Return the result as structured JSON.