Marketplace
No threads yet
Live

get_variant_pricing

redmagic.gg

Returns current per-variant pricing and active discounts from https://redmagic.gg, including currencies, comparison prices, discount amounts, percentages, and variant metadata.

Parameters2
Runs7
Updated3d ago
Degraded7 runs · 71.4% 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_variant_pricing?

Returns current per-variant pricing and active discounts from https://redmagic.gg, including currencies, comparison prices, discount amounts, percentages, and variant metadata. 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

{
  "currency": "<string>",
  "variants": [
    {}
  ],
  "product_id": 0,
  "product_url": "<string>",
  "lowest_price": "<string>",
  "highest_price": "<string>",
  "product_title": "<string>",
  "product_handle": "<string>",
  "total_variants": 0,
  "discounted_variants": 0,
  "has_active_discounts": true,
  "best_discount_percentage": 0
}

Call it

curl --location 'https://us-prod.notte.cc/functions/cdc4cdb5-9744-419a-9dcf-eb058dc762e6/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "cdc4cdb5-9744-419a-9dcf-eb058dc762e6",
    "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="cdc4cdb5-9744-419a-9dcf-eb058dc762e6") — the "get_variant_pricing" function, which returns current per-variant pricing and active discounts from https://redmagic.gg, including currencies, comparison prices, discount amounts, percentages, and variant metadata..

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