Marketplace
No threads yet
Live

get_collection_products

redmagic.gg

Retrieve a page of products from a specified collection on https://redmagic.gg. Returns up to 30 products with complete variant stock, pricing, discount, image, and option data.

Parameters3
Runs10
Updated10d ago
Operational10 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_collection_products?

Retrieve a page of products from a specified collection on https://redmagic.gg. Returns up to 30 products with complete variant stock, pricing, discount, image, and option data. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass collection_handle, page, limit and get the result back without maintaining a scraper.

Response

{
  "page": 0,
  "limit": 0,
  "products": [
    {
      "id": 0,
      "tags": [
        "<string>"
      ],
      "title": "<string>",
      "handle": "<string>",
      "images": [
        {
          "id": 0,
          "src": "<string>",
          "width": 0,
          "height": 0,
          "position": 0,
          "created_at": "<string>",
          "product_id": 0,
          "updated_at": "<string>",
          "variant_ids": [
            0
          ]
        }
      ],
      "vendor": "<string>",
      "options": [
        {
          "name": "<string>",
          "values": [
            "<string>"
          ],
          "position": 0
        }
      ],
      "variants": [
        {
          "id": 0,
          "sku": "<string>",
          "grams": 0,
          "price": "<string>",
          "title": "<string>",
          "option1": "<string>",
          "option2": "<string>",
          "option3": "<string>",
          "taxable": true,
          "position": 0,
          "available": true,
          "created_at": "<string>",
          "product_id": 0,
          "updated_at": "<string>",
          "featured_image": {
            "id": 0,
            "alt": "<string>",
            "src": "<string>",
            "width": 0,
            "height": 0,
            "position": 0,
            "created_at": "<string>",
            "product_id": 0,
            "updated_at": "<string>",
            "variant_ids": [
              0
            ]
          },
          "compare_at_price": "<string>",
          "requires_shipping": true
        }
      ],
      "body_html": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "product_type": "<string>",
      "published_at": "<string>"
    }
  ],
  "collection_handle": "<string>"
}

Call it

curl --location 'https://us-prod.notte.cc/functions/2288cd28-427c-4bd3-9a29-bb379714ecf3/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "2288cd28-427c-4bd3-9a29-bb379714ecf3",
    "variables": {
        "collection_handle": "redmagic-phones",
        "page": 1,
        "limit": 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="2288cd28-427c-4bd3-9a29-bb379714ecf3") — the "get_collection_products" function, which retrieve a page of products from a specified collection on https://redmagic.gg. Returns up to 30 products with complete variant stock, pricing, discount, image, and option data..

It takes collection_handle (str), page (int), limit (int). Return the result as structured JSON.