Rewalto · Schema

Discovery preview

A free preview of a product search, before any paid Fetch (issue #12, D-1830 D-b).

DataIndiaCommerceRetail

Properties

Name Type Description
data array Up to 25 matches, best first (the order of searchListings without AI query understanding). There is no next page: the full list is a paid Fetch.
counts object Exact counts over every match, not only the rows shown.
fields object What is free here, and what a paid Fetch delivers.
freshness object When the matches were last read.
fetch object How to get the data at the published rates. Nothing here is charged.
allowance object Free previews left for your organisation today (IST). A preview that finds nothing does not count.
meta object Where the data comes from, and what it cost: nothing for a free preview.
View JSON Schema on GitHub

JSON Schema

rewalto-com-discover-preview-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rewalto-com/json-schema/rewalto-com-discover-preview-schema.json",
  "title": "Discovery preview",
  "description": "A free preview of a product search, before any paid Fetch (issue #12, D-1830 D-b).",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rewalto-com-openapi.json#/components/schemas/DiscoverPreview",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data",
    "counts",
    "fields",
    "freshness",
    "fetch",
    "allowance",
    "meta"
  ],
  "properties": {
    "data": {
      "type": "array",
      "title": "Preview rows",
      "description": "Up to 25 matches, best first (the order of searchListings without AI query understanding). There is no next page: the full list is a paid Fetch.",
      "items": {
        "$ref": "#/$defs/DiscoverRow"
      }
    },
    "counts": {
      "type": "object",
      "title": "Counts",
      "description": "Exact counts over every match, not only the rows shown.",
      "additionalProperties": false,
      "required": [
        "total",
        "exact",
        "matching",
        "byRetailer",
        "byBrand",
        "brandsTotal",
        "shown"
      ],
      "properties": {
        "total": {
          "type": "integer",
          "title": "Matches",
          "description": "Every listing that matches, under the same filters.",
          "minimum": 0
        },
        "exact": {
          "const": true,
          "title": "Exact",
          "description": "Always true: the counts are counted, never estimated."
        },
        "matching": {
          "type": "string",
          "enum": [
            "words",
            "words_and_near"
          ],
          "title": "Matching",
          "description": "words: every word of q starts a word of the listing. words_and_near: fewer than 10 matched by words (under the filters and, with filters, in the whole Library), so approximate matches of misspelt words of 5+ letters are included (the searchListings rule)."
        },
        "byRetailer": {
          "type": "array",
          "title": "By retailer",
          "description": "Matches per retailer, largest first; every retailer with a match.",
          "items": {
            "type": "object",
            "title": "Count",
            "description": "How many matches have this value.",
            "additionalProperties": false,
            "required": [
              "key",
              "count"
            ],
            "properties": {
              "key": {
                "type": "string",
                "title": "Value",
                "description": "The retailer key, or the brand as the retailer wrote it."
              },
              "count": {
                "type": "integer",
                "title": "Matches",
                "description": "Matching listings with this value.",
                "minimum": 1
              }
            }
          }
        },
        "byBrand": {
          "type": "array",
          "title": "By brand",
          "description": "Matches per brand as written, largest first: the 20 largest (brandsTotal says how many there are). Listings with no brand are not in it.",
          "items": {
            "type": "object",
            "title": "Count",
            "description": "How many matches have this value.",
            "additionalProperties": false,
            "required": [
              "key",
              "count"
            ],
            "properties": {
              "key": {
                "type": "string",
                "title": "Value",
                "description": "The retailer key, or the brand as the retailer wrote it."
              },
              "count": {
                "type": "integer",
                "title": "Matches",
                "description": "Matching listings with this value.",
                "minimum": 1
              }
            }
          }
        },
        "brandsTotal": {
          "type": "integer",
          "title": "Brands",
          "description": "How many distinct brands the matches have.",
          "minimum": 0
        },
        "shown": {
          "type": "integer",
          "title": "Shown",
          "description": "Rows in data.",
          "minimum": 0
        }
      }
    },
    "fields": {
      "type": "object",
      "title": "Fields",
      "description": "What is free here, and what a paid Fetch delivers.",
      "additionalProperties": false,
      "required": [
        "preview",
        "delivered"
      ],
      "properties": {
        "preview": {
          "type": "array",
          "title": "Free fields",
          "description": "The fields of each preview row.",
          "items": {
            "type": "string"
          }
        },
        "delivered": {
          "type": "array",
          "title": "Delivered by a Fetch",
          "description": "Each paid read and its fields.",
          "items": {
            "type": "object",
            "title": "Delivered by",
            "description": "One paid read and the fields it delivers.",
            "additionalProperties": false,
            "required": [
              "operationId",
              "unit",
              "fields"
            ],
            "properties": {
              "operationId": {
                "type": "string",
                "title": "Operation",
                "description": "The paid operation."
              },
              "unit": {
                "type": "string",
                "title": "Unit",
                "description": "The rate-card unit it is charged in."
              },
              "fields": {
                "type": "array",
                "title": "Fields",
                "description": "The fields of each delivered record.",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "freshness": {
      "type": "object",
      "title": "Freshness",
      "description": "When the matches were last read.",
      "additionalProperties": false,
      "required": [
        "newestSeen",
        "oldestSeen"
      ],
      "properties": {
        "newestSeen": {
          "type": [
            "null",
            "string"
          ],
          "format": "date-time",
          "title": "Newest",
          "description": "The most recent last-seen time among every match; null when none match."
        },
        "oldestSeen": {
          "type": [
            "null",
            "string"
          ],
          "format": "date-time",
          "title": "Oldest",
          "description": "The oldest last-seen time among every match; null when none match."
        }
      }
    },
    "fetch": {
      "type": "object",
      "title": "Fetch",
      "description": "How to get the data at the published rates. Nothing here is charged.",
      "additionalProperties": false,
      "required": [
        "all",
        "selection",
        "history",
        "notes"
      ],
      "properties": {
        "all": {
          "type": "object",
          "title": "Every match",
          "description": "Fetch every match through the paid search.",
          "additionalProperties": false,
          "required": [
            "operationId",
            "query",
            "records",
            "rate",
            "credits"
          ],
          "properties": {
            "operationId": {
              "const": "searchListings",
              "title": "Operation",
              "description": "The paid search."
            },
            "query": {
              "type": "object",
              "title": "Query",
              "description": "The query to send it: the same words and filters (a location filter as given here, with the same consent).",
              "additionalProperties": {
                "type": "string"
              }
            },
            "records": {
              "type": "integer",
              "title": "Records",
              "description": "Listings it would deliver: counts.total.",
              "minimum": 0
            },
            "rate": {
              "type": [
                "null",
                "object"
              ],
              "title": "Published rate",
              "description": "A published rate from the newest rate card holding the unit (C-012): credits for every perUnits records. Null when no rate is published for the unit yet; that read is then refused with not_for_sale.",
              "additionalProperties": false,
              "required": [
                "unit",
                "credits",
                "perUnits",
                "cardVersion"
              ],
              "properties": {
                "unit": {
                  "type": "string",
                  "title": "Unit",
                  "description": "The rate-card unit."
                },
                "credits": {
                  "type": "integer",
                  "title": "Credits",
                  "description": "Credits for every perUnits records.",
                  "minimum": 0
                },
                "perUnits": {
                  "type": "integer",
                  "title": "Per units",
                  "description": "Records the credits cover.",
                  "minimum": 1
                },
                "cardVersion": {
                  "type": "integer",
                  "title": "Rate card",
                  "description": "The rate card version the rate is on.",
                  "minimum": 1
                }
              }
            },
            "credits": {
              "type": [
                "null",
                "integer"
              ],
              "title": "Credits",
              "description": "What every match costs at the rate when each page is fetched once, rounded up per page of 100: the most the plain search costs (a 7-day free re-read costs less; AI query understanding may add the brand's other listings). Null when no rate is published."
            }
          }
        },
        "selection": {
          "type": "object",
          "title": "Chosen rows",
          "description": "Fetch only the rows chosen here.",
          "additionalProperties": false,
          "required": [
            "operationId",
            "parameter",
            "maxIds",
            "rate"
          ],
          "properties": {
            "operationId": {
              "const": "listListings",
              "title": "Operation",
              "description": "The paid listings read."
            },
            "parameter": {
              "const": "selection",
              "title": "Parameter",
              "description": "Comma-separated selection ids."
            },
            "maxIds": {
              "type": "integer",
              "title": "Most ids",
              "description": "Selection ids per call."
            },
            "rate": {
              "type": [
                "null",
                "object"
              ],
              "title": "Published rate",
              "description": "A published rate from the newest rate card holding the unit (C-012): credits for every perUnits records. Null when no rate is published for the unit yet; that read is then refused with not_for_sale.",
              "additionalProperties": false,
              "required": [
                "unit",
                "credits",
                "perUnits",
                "cardVersion"
              ],
              "properties": {
                "unit": {
                  "type": "string",
                  "title": "Unit",
                  "description": "The rate-card unit."
                },
                "credits": {
                  "type": "integer",
                  "title": "Credits",
                  "description": "Credits for every perUnits records.",
                  "minimum": 0
                },
                "perUnits": {
                  "type": "integer",
                  "title": "Per units",
                  "description": "Records the credits cover.",
                  "minimum": 1
                },
                "cardVersion": {
                  "type": "integer",
                  "title": "Rate card",
                  "description": "The rate card version the rate is on.",
                  "minimum": 1
                }
              }
            }
          }
        },
        "history": {
          "type": "object",
          "title": "Price history",
          "description": "A chosen listing's price and stock history: listObservations with its retailer and retailerSku.",
          "additionalProperties": false,
          "required": [
            "operationId",
            "rate"
          ],
          "properties": {
            "operationId": {
              "const": "listObservations",
              "title": "Operation",
              "description": "The paid history read."
            },
            "rate": {
              "type": [
                "null",
                "object"
              ],
              "title": "Published rate",
              "description": "A published rate from the newest rate card holding the unit (C-012): credits for every perUnits records. Null when no rate is published for the unit yet; that read is then refused with not_for_sale.",
              "additionalProperties": false,
              "required": [
                "unit",
                "credits",
                "perUnits",
                "cardVersion"
              ],
              "properties": {
                "unit": {
                  "type": "string",
                  "title": "Unit",
                  "description": "The rate-card unit."
                },
                "credits": {
                  "type": "integer",
                  "title": "Credits",
                  "description": "Credits for every perUnits records.",
                  "minimum": 0
                },
                "perUnits": {
                  "type": "integer",
                  "title": "Per units",
                  "description": "Records the credits cover.",
                  "minimum": 1
                },
                "cardVersion": {
                  "type": "integer",
                  "title": "Rate card",
                  "description": "The rate card version the rate is on.",
                  "minimum": 1
                }
              }
            }
          }
        },
        "notes": {
          "type": "string",
          "title": "Notes",
          "description": "How charging works, in one paragraph."
        }
      }
    },
    "allowance": {
      "type": "object",
      "title": "Allowance",
      "description": "Free previews left for your organisation today (IST). A preview that finds nothing does not count.",
      "additionalProperties": false,
      "required": [
        "perDay",
        "usedToday",
        "remainingToday",
        "resetsAt",
        "paid"
      ],
      "properties": {
        "perDay": {
          "type": "integer",
          "title": "Per day",
          "description": "Free previews per organisation per IST day.",
          "minimum": 0
        },
        "usedToday": {
          "type": "integer",
          "title": "Used today",
          "description": "Previews counted today, this one included.",
          "minimum": 0
        },
        "remainingToday": {
          "type": "integer",
          "title": "Left today",
          "description": "Previews left today.",
          "minimum": 0
        },
        "resetsAt": {
          "type": "string",
          "format": "date-time",
          "title": "Resets at",
          "description": "The next IST midnight."
        },
        "paid": {
          "type": "boolean",
          "title": "Paid",
          "description": "True when today's free previews were used up, so this preview was charged at the listings rate (meta.credits says what it cost). Never true under unlimited credits."
        }
      }
    },
    "meta": {
      "type": "object",
      "title": "Meta",
      "description": "Where the data comes from, and what it cost: nothing for a free preview.",
      "additionalProperties": false,
      "required": [
        "kind",
        "asOf",
        "credits"
      ],
      "properties": {
        "kind": {
          "const": "kept",
          "title": "Kind",
          "description": "kept: data Rewalto stores."
        },
        "asOf": {
          "type": [
            "null",
            "string"
          ],
          "format": "date-time",
          "title": "As of",
          "description": "The newest last-seen time among the rows shown; null when none."
        },
        "credits": {
          "$ref": "#/$defs/ReadCredits"
        }
      }
    }
  },
  "$defs": {
    "DiscoverRow": {
      "type": "object",
      "title": "Preview row",
      "description": "One matching listing, shown free: what it is, its primary image address, the Rewalto product it is matched to, and its newest kept price reading. The full listing (every image, the product page, tags, history) comes only with a paid Fetch.",
      "additionalProperties": false,
      "required": [
        "selectionId",
        "retailer",
        "retailerSku",
        "title",
        "brand",
        "packSizeRaw",
        "imageUrl",
        "productId",
        "match",
        "lastSeen",
        "latest",
        "lastPriced"
      ],
      "properties": {
        "selectionId": {
          "type": "string",
          "title": "Selection id",
          "description": "Opaque id of this match. Send it back in selection on GET /v1/data/listings to fetch exactly this listing (paid). Do not parse it.",
          "pattern": "^sel_[0-9a-f]{32}$"
        },
        "retailer": {
          "type": "string",
          "title": "Retailer",
          "description": "The retailer key."
        },
        "retailerSku": {
          "type": "string",
          "title": "Retailer product id",
          "description": "The retailer's own product id. With retailer, it selects this listing's price history in listObservations (paid)."
        },
        "title": {
          "type": [
            "null",
            "string"
          ],
          "title": "Title",
          "description": "The title as the retailer showed it."
        },
        "brand": {
          "type": [
            "null",
            "string"
          ],
          "title": "Brand",
          "description": "The brand as the retailer wrote it."
        },
        "packSizeRaw": {
          "type": [
            "null",
            "string"
          ],
          "title": "Pack size",
          "description": "The pack size as printed."
        },
        "imageUrl": {
          "type": [
            "null",
            "string"
          ],
          "title": "Image URL",
          "description": "The primary image address Rewalto holds for the listing (the address, never the image file), as the paid listing carries it (contract 0.68.0, issue #217). Null when none is held. Every image comes with the paid listing."
        },
        "productId": {
          "type": [
            "null",
            "string"
          ],
          "format": "uuid",
          "title": "Product id",
          "description": "The Rewalto product this listing is matched to, the same value the paid listing carries (contract 0.68.0, issue #217): listings of one product across retailers share it, and getSeries takes it for the product's history (paid). Null when the listing is not matched to a product."
        },
        "match": {
          "type": "string",
          "enum": [
            "exact_id",
            "phrase",
            "words",
            "near"
          ],
          "title": "Match",
          "description": "How it matched: exact_id (q is its retailer product id), phrase (the words in order in the name), words (every word starts a word of its name, brand or product id), near (an approximate match of a misspelt word of 5+ letters, only when fewer than 10 listings match by words)."
        },
        "lastSeen": {
          "type": "string",
          "format": "date-time",
          "title": "Last seen",
          "description": "When Rewalto last read the listing."
        },
        "latest": {
          "type": "object",
          "title": "Newest price reading",
          "description": "The listing's newest kept reading in the last 30 days, at the pin code asked for, else at any pin. Never a guess.",
          "additionalProperties": false,
          "required": [
            "state",
            "priceMinor",
            "mrpMinor",
            "currency",
            "inStock",
            "pincode",
            "observedAt"
          ],
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "priced",
                "no_price_shown",
                "no_recent_reading",
                "excluded_pin_day"
              ],
              "title": "State",
              "description": "priced: the reading shows a price. no_price_shown: the newest reading had none. no_recent_reading: no kept reading in the last 30 days (at the pin, when one was asked for). excluded_pin_day: the newest reading falls on a pin-day left out of the data (D-1458), so nothing is shown."
            },
            "priceMinor": {
              "type": [
                "null",
                "integer"
              ],
              "title": "Price",
              "description": "Selling price in paise; null when not shown."
            },
            "mrpMinor": {
              "type": [
                "null",
                "integer"
              ],
              "title": "MRP",
              "description": "MRP in paise; null when not shown."
            },
            "currency": {
              "const": "INR",
              "title": "Currency",
              "description": "Always INR."
            },
            "inStock": {
              "type": [
                "null",
                "boolean"
              ],
              "title": "In stock",
              "description": "In stock in that reading; null when the retailer does not say (always null for Flipkart)."
            },
            "pincode": {
              "type": [
                "null",
                "string"
              ],
              "title": "Pin code",
              "description": "Where the reading was taken."
            },
            "observedAt": {
              "type": [
                "null",
                "string"
              ],
              "format": "date-time",
              "title": "Read at",
              "description": "When the reading was taken; null when there is none."
            }
          }
        },
        "lastPriced": {
          "type": [
            "null",
            "object"
          ],
          "title": "Last price read",
          "description": "The listing's newest kept reading that shows a price, at any age (latest covers only the last 30 days), at the pin code asked for, else at any pin or national. Null when no kept reading ever showed a price, or when it falls on a pin-day left out of the data (D-1458). Free, like the rest of the preview (contract 0.102.0).",
          "additionalProperties": false,
          "required": [
            "priceMinor",
            "mrpMinor",
            "currency",
            "inStock",
            "pincode",
            "observedAt"
          ],
          "properties": {
            "priceMinor": {
              "type": "integer",
              "minimum": 0,
              "title": "Price",
              "description": "Selling price in paise."
            },
            "mrpMinor": {
              "type": [
                "null",
                "integer"
              ],
              "minimum": 0,
              "title": "MRP",
              "description": "MRP in paise; null when not shown."
            },
            "currency": {
              "type": "string",
              "enum": [
                "INR"
              ],
              "title": "Currency"
            },
            "inStock": {
              "type": [
                "null",
                "boolean"
              ],
              "title": "In stock",
              "description": "In stock in that reading; null when the retailer does not say (always null for Flipkart)."
            },
            "pincode": {
              "type": "string",
              "title": "Pin code",
              "description": "Where the reading was taken (six digits, or national)."
            },
            "observedAt": {
              "type": "string",
              "format": "date-time",
              "title": "Read at",
              "description": "When that reading was taken."
            }
          }
        }
      }
    },
    "ReadCredits": {
      "type": "object",
      "title": "Credits",
      "description": "What this response cost, at the published rate. An empty page, a free re-read of identical data and a plain list cost nothing.",
      "additionalProperties": false,
      "required": [
        "charged",
        "units",
        "freeReread",
        "rate"
      ],
      "properties": {
        "charged": {
          "type": "integer",
          "title": "Credits charged",
          "description": "Credits taken from the balance for this response.",
          "minimum": 0
        },
        "units": {
          "type": "integer",
          "title": "Records delivered",
          "description": "How many records are in data.",
          "minimum": 0
        },
        "freeReread": {
          "type": "boolean",
          "title": "Free re-read",
          "description": "True when identical data was read within 7 days and is not charged again."
        },
        "rate": {
          "type": [
            "null",
            "object"
          ],
          "title": "Published rate",
          "description": "Credits per number of records, and the rate version; null when nothing is charged for this list.",
          "additionalProperties": false,
          "required": [
            "credits",
            "perUnits",
            "version"
          ],
          "properties": {
            "credits": {
              "type": "integer",
              "title": "Credits",
              "description": "Credits charged for every perUnits records."
            },
            "perUnits": {
              "type": "integer",
              "title": "Per units",
              "description": "Number of records the credits cover."
            },
            "version": {
              "type": "string",
              "title": "Rate version",
              "description": "The rate card the price came from."
            }
          }
        },
        "receiptId": {
          "type": "string",
          "title": "Receipt",
          "pattern": "^rcp_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
          "description": "The receipt of a charged read; POST /v1/credits/refunds can refund it. Absent when nothing was charged."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/rewalto-com-discover-preview"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.