Marketplace
No threads yet
Live

get_iphone_variants

swappie.com

Returns every in-stock refurbished iPhone variant for a model and country from https://swappie.com, grouped by color, storage, condition grade, and battery type. Includes current local-currency pricing, inventory, localized labels, and all non-empty source record fields.

Parameters2
Runs9
Updated10d ago
Operational9 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_iphone_variants?

Returns every in-stock refurbished iPhone variant for a model and country from https://swappie.com, grouped by color, storage, condition grade, and battery type. Includes current local-currency pricing, inventory, localized labels, and all non-empty source record fields. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass model, country and get the result back without maintaining a scraper.

Response

{
  "model": "<string>",
  "country": "<string>",
  "variants": [
    {
      "color": "<string>",
      "price": {
        "amount": 0,
        "currency": "<string>",
        "precision": 0
      },
      "stock": 0,
      "records": [
        {}
      ],
      "sim_types": [
        "<string>"
      ],
      "storage_gb": 0,
      "color_label": "<string>",
      "battery_type": "<string>",
      "condition_grade": "<string>",
      "condition_label": "<string>",
      "reference_price": {
        "amount": 0,
        "currency": "<string>",
        "precision": 0
      },
      "source_record_count": 0
    }
  ],
  "country_name": "<string>",
  "swappie_site": "<string>",
  "variant_count": 0
}

Call it

curl --location 'https://us-prod.notte.cc/functions/b3d52994-98ff-45fc-b011-c38225f37351/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "b3d52994-98ff-45fc-b011-c38225f37351",
    "variables": {
        "model": "iPhone 14",
        "country": "SE"
    }
}'

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="b3d52994-98ff-45fc-b011-c38225f37351") — the "get_iphone_variants" function, which returns every in-stock refurbished iPhone variant for a model and country from https://swappie.com, grouped by color, storage, condition grade, and battery type. Includes current local-currency pricing, inventory, localized labels, and all non-empty source record fields..

It takes model (str), country (str). Return the result as structured JSON.