LemMeBuyIt Changes API

Immutable, replayable retail-events feed (Enterprise only).

GitHub OpenAPI

Operations 2

GET /changes Retail Events Feed (Cursor Paginated, Enterprise Only) #
GET /changes/head Current Head Cursor for the Retail Events Feed (Enterprise Only) #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/lemmebuyit-com:lemmebuyit-com-changes-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

lemmebuyit-com-changes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lemmebuyit Com Changes API
  version: 1.0.0
  contact:
    name: LemMeBuyIt API Support
    url: https://www.lemmebuyit.com/developer
    email: support@lemmebuyit.com
  description: 'Operations tagged Changes across 2 of this provider''s published API definitions: lemmebuyit-com-openapi.yaml, openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.lemmebuyit.com/v1
  description: Production server
tags:
- name: Changes
  description: Immutable, replayable retail-events feed (Enterprise only).
paths:
  /changes:
    get:
      tags:
      - Changes
      summary: Retail Events Feed (Cursor Paginated, Enterprise Only)
      description: 'Returns an append-only, replayable feed of retail events (price changes,

        stock transitions, seller changes, promotions, marketplace-match changes)

        from the `retail_events` ledger.


        **Enterprise plan only.** Keys without Enterprise access receive `403`.

        Results are scoped to the retailer allowlist of the authenticated key.


        Sort is fixed and non-configurable: ascending `(ingest_seq_ms, event_id)`.

        The feed applies a fixed visibility Delta so only settled events are

        returned; there is no client-tunable delta parameter. Paginate forward by

        passing the previous `page_info.next_cursor` as `after`; the cursor is a

        strict, replay-safe boundary (reconnecting at a cursor returns each later

        event exactly once). Poll `/changes/head` for a start-from-now cursor.'
      operationId: listChanges
      security:
      - ApiKeyAuth: []
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          default: 100
          minimum: 1
          maximum: 1000
        description: Page size (bounded to 1000).
      - name: after
        in: query
        schema:
          type: string
        description: Opaque cursor from a previous page_info.next_cursor. Invalid cursors return 400 invalid_cursor.
      - name: cursor
        in: query
        schema:
          type: string
        description: Alias for `after` (the response field is page_info.next_cursor, so `cursor=` is accepted). `after` takes precedence if both are supplied.
      - name: event_type
        in: query
        schema:
          type: string
        description: Comma-separated event types (price_changed, restock, out_of_stock, seller_changed, promotion_started, promotion_ended, clearance, clearance_ended, match_added, match_removed, match_changed). Unknown values return 400.
      - name: retailer_id
        in: query
        schema:
          type: string
        description: Comma-separated retailer IDs. Intersected with the key's allowlist.
      - name: source
        in: query
        schema:
          type: string
          enum:
          - refresh
          - ext_sighting
          - live_lookup
          - feed
        description: Emitting lane filter (refresh, ext_sighting, live_lookup, feed). Any other value returns 400.
      - name: sold_by
        in: query
        schema:
          type: string
      - name: seller_type
        in: query
        schema:
          type: string
      - name: category
        in: query
        schema:
          type: string
      - name: match_type
        in: query
        schema:
          type: string
      - name: match_confidence
        in: query
        schema:
          type: string
          enum:
          - exact
          - fuzzy
        description: Only 'exact' or 'fuzzy'; other values return 400.
      - name: in_stock
        in: query
        schema:
          type: boolean
        description: true maps to stock_state=in_stock, false to out_of_stock.
      - name: has_marketplace_match
        in: query
        schema:
          type: boolean
      - name: clearance
        in: query
        schema:
          type: boolean
      - name: min_drop_percent
        in: query
        schema:
          type: number
        description: Lower bound on drop_percent (the refresh-to-refresh price delta). For deal-quality (markdown off list), use min_discount_percent instead.
      - name: min_drop_amount
        in: query
        schema:
          type: number
        description: Lower bound on drop_amount.
      - name: min_discount_percent
        in: query
        schema:
          type: number
          minimum: 0
        description: Lower bound on computed_discount_percent (% off the list/original price, computed at read time from the live product doc). This is the deal-quality filter FlipAlert-style consumers want (e.g. min_discount_percent=20 for >=20% off). Applied AFTER read-time enrichment, so a page may return fewer than `limit` events while page_info.next_cursor is still set — keep paging on the cursor; replay stays exactly-once. Events with no computed discount (product doc absent or not a markdown) are excluded. Negative values return 400.
      - name: format
        in: query
        schema:
          type: string
          enum:
          - full
          - lean
          default: full
        description: 'Response shape. ''full'' (default) returns every event field. ''lean'' returns a compact subset for high-throughput consumers: event_id, event, retailer_id, sku, source, ingest_seq_ms, changed_at, current_price, previous_price, drop_percent, computed_discount_percent, in_stock, deal_type (event_id and ingest_seq_ms are always present so the cursor still works). Any other value returns 400.'
      responses:
        '200':
          description: A paginated page of retail events.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Change'
                  page_info:
                    $ref: '#/components/schemas/CursorPageInfo'
                  total_hits:
                    type: integer
                    example: 4210
                  total_hits_relation:
                    type: string
                    example: gte
                  took_ms:
                    type: integer
                    example: 8
                  timed_out:
                    type: boolean
                    example: false
                required:
                - data
                - page_info
        '400':
          description: Invalid parameter or cursor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: invalid_cursor
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          description: Forbidden (requires an Enterprise plan).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: /v1/changes requires an Enterprise plan
        '500':
          $ref: '#/components/responses/InternalServerError'
    servers:
    - url: https://api.lemmebuyit.com/v1
      description: Production server
  /changes/head:
    get:
      tags:
      - Changes
      summary: Current Head Cursor for the Retail Events Feed (Enterprise Only)
      description: 'Returns a start-from-now cursor pointing at the tail of the currently

        visible ledger. Pass the returned `next_cursor` as the `after` parameter

        of `/changes` to receive only events that occur after this moment.


        **Enterprise plan only.** Keys without Enterprise access receive `403`.'
      operationId: getChangesHead
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: The current head cursor.
          content:
            application/json:
              schema:
                type: object
                properties:
                  next_cursor:
                    type: string
                    description: Opaque cursor to pass as /changes ?after.
                    example: WzE3MjMzNjMyMDAxMjMsImtvaGxzfDEyMzQ1NjcifV0=
                required:
                - next_cursor
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          description: Forbidden (requires an Enterprise plan).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: /v1/changes requires an Enterprise plan
        '500':
          $ref: '#/components/responses/InternalServerError'
    servers:
    - url: https://api.lemmebuyit.com/v1
      description: Production server
components:
  responses:
    UnauthorizedError:
      description: Unauthorized (Invalid or missing API Key).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Invalid API key
    InternalServerError:
      description: Internal Server Error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Failed to retrieve data
  schemas:
    Change:
      type: object
      description: 'A single immutable event from the retail-events ledger. Mirrors the

        `retail_events` document read at `/v1/changes`. Enrichment fields

        (marketplace matches, computed discounts, resolved category/seller) are

        `nullable: true` because they are populated only when the underlying

        product/match data is available at read time. Internal sourcing and

        tracking fields are never serialized into this feed.

        '
      properties:
        event_id:
          type: string
          description: Stable immutable identity (ES _id).
          example: kohls|1234567|price_changed|9f2c
        event:
          type: string
          description: Event type.
          example: price_changed
          enum:
          - price_changed
          - restock
          - out_of_stock
          - seller_changed
          - promotion_started
          - promotion_ended
          - clearance
          - clearance_ended
          - match_added
          - match_removed
          - match_changed
        retailer_id:
          type: string
          example: kohls
        sku:
          type: string
          example: '1234567'
        source:
          type: string
          enum:
          - refresh
          - ext_sighting
          - live_lookup
          - feed
          description: Emitting lane (refresh, ext_sighting, live_lookup, feed).
          example: refresh
        ingest_seq_ms:
          type: integer
          format: int64
          description: Pipeline-stamped monotonic sort key (ms).
          example: 1723363200123
        observed_at:
          type:
          - string
          - 'null'
          format: date-time
          example: '2026-08-11T06:00:00Z'
        changed_at:
          type:
          - string
          - 'null'
          format: date-time
          example: '2026-08-11T06:00:00Z'
        current_price:
          type:
          - number
          - 'null'
          example: 3.49
        previous_price:
          type:
          - number
          - 'null'
          example: 9.99
        original_price:
          type:
          - number
          - 'null'
          example: 9.99
        drop_amount:
          type:
          - number
          - 'null'
          example: 6.5
        drop_percent:
          type:
          - number
          - 'null'
          example: 65.07
        computed_discount_amount:
          type:
          - number
          - 'null'
          example: 6.5
        computed_discount_percent:
          type:
          - number
          - 'null'
          description: 'Read-time markdown OFF THE LIST PRICE (original_price - current effective price, as a %), computed from the live product doc. This is the deal-quality signal (distinct from drop_percent, which is the refresh-to-refresh delta): filter it with min_discount_percent. The list and current-effective prices are coalesced per retailer from (original_price | compare_at_price | price) and (sale_price | final_price | current_price | price). null when the product doc is absent or is not a markdown.'
          example: 65.07
        retailer_discount_percent:
          type:
          - number
          - 'null'
          example: 65
        on_sale:
          type:
          - boolean
          - 'null'
          example: true
        in_stock:
          type:
          - boolean
          - 'null'
          example: true
        stock_state:
          type:
          - string
          - 'null'
          example: in_stock
        clearance:
          type:
          - boolean
          - 'null'
          example: false
        deal_type:
          type:
          - string
          - 'null'
          description: Walmart clearance deal type on clearance events / Walmart price events.
          enum:
          - clearance
          - rollback
          - reduced
          - null
          example: clearance
        sold_by:
          type:
          - string
          - 'null'
          example: Kohl's
        seller_type:
          type:
          - string
          - 'null'
          example: first_party
        category:
          type:
          - string
          - 'null'
          example: Apparel
        upc:
          type:
          - string
          - 'null'
          example: 08004608232285
        gtin:
          type:
          - string
          - 'null'
          example: 00008004608232285
        has_marketplace_match:
          type:
          - boolean
          - 'null'
          example: true
        match_type:
          type:
          - string
          - 'null'
          example: gtin
        match_confidence:
          type:
          - string
          - 'null'
          description: Empty, 'exact', or 'fuzzy' only.
          enum:
          - ''
          - exact
          - fuzzy
          - null
          example: exact
        matches:
          type: array
          description: Read-time-enriched marketplace matches. Always an array (never null).
          items:
            type: object
            properties:
              asin:
                type: string
                example: B0ABCDEF12
              source:
                type:
                - string
                - 'null'
                example: gtin_map
              confidence:
                type:
                - string
                - 'null'
                example: keyword
              url:
                type:
                - string
                - 'null'
                example: https://www.amazon.com/dp/B0ABCDEF12
              sales_rank:
                type:
                - integer
                - 'null'
                description: Amazon sales rank for online-arbitrage scoring. Omitted when unknown (Amazon's -1 sentinel).
                example: 12450
              package_quantity:
                type:
                - integer
                - 'null'
                description: Units per Amazon pack, for per-unit profit math.
                example: 2
              buy_box_price:
                type:
                - number
                - 'null'
                format: float
                description: Amazon buy-box price (joined from the resolved UPC/ASIN mapping). Omitted when the mapping is unresolved.
                example: 59.99
              amazon_fees:
                type:
                - number
                - 'null'
                format: float
                description: Estimated Amazon per-unit fee total. Omitted when not yet computed.
                example: 12.34
            required:
            - asin
        promotion_id:
          type:
          - string
          - 'null'
          description: Promotion identity. Present only on promotion_started / promotion_ended events.
          example: promo-92310
        promotion_title:
          type:
          - string
          - 'null'
          description: Human-readable promotion title.
          example: 20% Off Sitewide
        coupon_code:
          type:
          - string
          - 'null'
          description: Coupon code, if the promotion requires one.
          example: SAVE20
        promotion_type:
          type:
          - string
          - 'null'
          description: Single primary promotion type (first of the full list on /v1/promotions).
          example: percent_off
        promotion_ends_at:
          type:
          - string
          - 'null'
          format: date-time
          description: Promotion end date/time.
          example: '2026-08-31T23:59:59Z'
      required:
      - event_id
      - event
      - retailer_id
      - sku
      - source
      - ingest_seq_ms
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: A human-readable error message.
      required:
      - error
      example:
        error: Invalid API key
    CursorPageInfo:
      type: object
      properties:
        limit_applied:
          type: integer
          description: The actual number of items requested (limit parameter value).
          example: 20
        next_cursor:
          type:
          - string
          - 'null'
          description: Base64-encoded cursor string containing sort values for search_after pagination. Null if there are no more results. Uses Elasticsearch search_after for efficient cursor-based pagination.
          example: WzEyMzQ1LDE2OTkwNjIwMDBd
      required:
      - limit_applied
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authenticating direct REST API requests.
x-refined-from:
- lemmebuyit-com-openapi.yaml
- openapi.yaml