Glim AI Shopping API

Stored AI Shopping results

GitHub OpenAPI

Operations 7

GET /v1/projects/{projectId}/shopping/summary Read Shopping state and metrics #
GET /v1/projects/{projectId}/shopping/catalog Read tracked products and categories #
GET /v1/projects/{projectId}/shopping/competitors Read competitor, merchant, or alternative product results #
GET /v1/projects/{projectId}/shopping/claims Read shopping claims and review verdicts #
GET /v1/projects/{projectId}/shopping/improvements Read findings from Shopping evidence #
GET /v1/projects/{projectId}/shopping/observations Read Shopping questions and observation references #
GET /v1/projects/{projectId}/shopping/observations/{observationId} Read answer, sources, and card evidence #

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/seoforgpt-io:seoforgpt-io-shopping-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

seoforgpt-io-shopping-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Glim AI Public Shopping API
  version: 1.0.0
  description: 'HTTP API for scripts, CI, and backends used by the Glim AI MCP server. Hosted remote MCP and local stdio clients both call this surface. Authenticate with `Authorization: Bearer` using a Supabase session JWT, a user API key (`sgpt_...`), or an OAuth-managed connector key issued by hosted MCP (same header; those keys are hidden from the Settings UI). API key management (`/v1/keys`) requires a JWT. Base path is `/v1` under the deployed host. Versioning and deprecation policy: https://tryglim.ai/api-versioning-policy.md'
  contact:
    email: miguel@tryglim.ai
servers:
- url: https://tryglim.ai/api
  description: Production (Netlify rewrite to Supabase Edge Function)
tags:
- name: Shopping
  description: Stored AI Shopping results
paths:
  /v1/projects/{projectId}/shopping/summary:
    get:
      operationId: getShoppingSummary
      summary: Read Shopping state and metrics
      tags:
      - Shopping
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: days
        in: query
        required: false
        schema:
          type: integer
          enum:
          - 7
          - 30
          - 90
          default: 30
      - name: surface
        in: query
        required: false
        schema:
          type: string
          enum:
          - all
          - chatgpt
          - ai_mode
          default: all
      - name: category_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShoppingSummaryResponse'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/shopping/catalog:
    get:
      operationId: listShoppingCatalog
      summary: Read tracked products and categories
      tags:
      - Shopping
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: days
        in: query
        required: false
        schema:
          type: integer
          enum:
          - 7
          - 30
          - 90
          default: 30
      - name: surface
        in: query
        required: false
        schema:
          type: string
          enum:
          - all
          - chatgpt
          - ai_mode
          default: all
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
      - name: category_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      - name: product_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      - name: kind
        in: query
        required: false
        schema:
          type: string
          enum:
          - all
          - product
          - category
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShoppingCatalogResponse'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/shopping/competitors:
    get:
      operationId: listShoppingCompetitors
      summary: Read competitor, merchant, or alternative product results
      tags:
      - Shopping
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: days
        in: query
        required: false
        schema:
          type: integer
          enum:
          - 7
          - 30
          - 90
          default: 30
      - name: surface
        in: query
        required: false
        schema:
          type: string
          enum:
          - all
          - chatgpt
          - ai_mode
          default: all
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
      - name: category_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      - name: product_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      - name: view
        in: query
        required: false
        schema:
          type: string
          enum:
          - companies
          - merchants
          - alternatives
      - name: competitor_key
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShoppingCompetitorsResponse'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/shopping/claims:
    get:
      operationId: listShoppingClaims
      summary: Read shopping claims and review verdicts
      tags:
      - Shopping
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: days
        in: query
        required: false
        schema:
          type: integer
          enum:
          - 7
          - 30
          - 90
          default: 30
      - name: surface
        in: query
        required: false
        schema:
          type: string
          enum:
          - all
          - chatgpt
          - ai_mode
          default: all
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
      - name: category_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      - name: product_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShoppingClaimsResponse'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/shopping/improvements:
    get:
      operationId: listShoppingImprovements
      summary: Read findings from Shopping evidence
      tags:
      - Shopping
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: days
        in: query
        required: false
        schema:
          type: integer
          enum:
          - 7
          - 30
          - 90
          default: 30
      - name: surface
        in: query
        required: false
        schema:
          type: string
          enum:
          - all
          - chatgpt
          - ai_mode
          default: all
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
      - name: category_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      - name: product_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShoppingImprovementsResponse'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/shopping/observations:
    get:
      operationId: listShoppingObservations
      summary: Read Shopping questions and observation references
      tags:
      - Shopping
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: days
        in: query
        required: false
        schema:
          type: integer
          enum:
          - 7
          - 30
          - 90
          default: 30
      - name: surface
        in: query
        required: false
        schema:
          type: string
          enum:
          - all
          - chatgpt
          - ai_mode
          default: all
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
      - name: category_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      - name: product_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      - name: kind
        in: query
        required: false
        schema:
          type: string
          enum:
          - all
          - discovery
          - diagnostic
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShoppingObservationsResponse'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/shopping/observations/{observationId}:
    get:
      operationId: getShoppingObservation
      summary: Read answer, sources, and card evidence
      tags:
      - Shopping
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: observationId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShoppingObservationResponse'
        default:
          $ref: '#/components/responses/UnexpectedError'
components:
  schemas:
    ApiError:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - request_id
          properties:
            code:
              type: string
              example: RATE_LIMITED
            message:
              type: string
            details: {}
            request_id:
              type: string
              format: uuid
    ShoppingObservationResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            project_id:
              type: string
              format: uuid
            status:
              type: string
            eligibility:
              type: string
              enum:
              - eligible
              - not_ecommerce
              - unknown
            id:
              type: string
              format: uuid
            run_id:
              type: string
              format: uuid
            surface:
              type: string
              enum:
              - chatgpt
              - ai_mode
            question:
              type: object
              additionalProperties: true
            captured_at:
              type:
              - string
              - 'null'
            outcome:
              type: string
            evidence_state:
              type: string
              enum:
              - measured
              - incomplete
              - no_capture
            answer:
              type:
              - string
              - 'null'
            sources:
              type: array
              items:
                type: string
            links:
              type: array
              items:
                type: string
            cards:
              type: array
              items:
                type: object
                properties:
                  title:
                    type: string
                  url:
                    type:
                    - string
                    - 'null'
                  seller:
                    type:
                    - string
                    - 'null'
                  offers:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
            card_evidence_complete:
              type:
              - boolean
              - 'null'
        meta:
          type: object
          additionalProperties: true
    ShoppingObservationsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            project_id:
              type: string
              format: uuid
            status:
              type: string
              enum:
              - configured
              - unconfigured
              - ineligible
            eligibility:
              type: string
              enum:
              - eligible
              - not_ecommerce
              - unknown
            items:
              type: array
              items:
                type: object
                properties:
                  question:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      text:
                        type: string
                      category_id:
                        type: string
                        format: uuid
                      product_ids:
                        type: array
                        items:
                          type: string
                          format: uuid
                      kind:
                        type: string
                  platforms:
                    type: object
                    additionalProperties:
                      type: object
                      properties:
                        evidence_state:
                          type: string
                          enum:
                          - measured
                          - incomplete
                          - no_capture
                        latest:
                          type:
                          - object
                          - 'null'
                        prior:
                          type:
                          - object
                          - 'null'
                        historical:
                          type:
                          - object
                          - 'null'
            total:
              type: integer
            page:
              type: integer
            page_size:
              type: integer
        meta:
          type: object
          additionalProperties: true
    ShoppingImprovementsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            project_id:
              type: string
              format: uuid
            status:
              type: string
              enum:
              - configured
              - unconfigured
              - ineligible
            eligibility:
              type: string
              enum:
              - eligible
              - not_ecommerce
              - unknown
            items:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  title:
                    type: string
                  severity:
                    type: string
                  priority:
                    type: integer
                  affected_count:
                    type: integer
                  action_summary:
                    type: string
                  entities:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
                  task_id:
                    type: string
                    format: uuid
            total:
              type: integer
            page:
              type: integer
            page_size:
              type: integer
        meta:
          type: object
          additionalProperties: true
    ShoppingCompetitorsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            project_id:
              type: string
              format: uuid
            status:
              type: string
              enum:
              - configured
              - unconfigured
              - ineligible
            eligibility:
              type: string
              enum:
              - eligible
              - not_ecommerce
              - unknown
            items:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                  name:
                    type: string
                  platforms:
                    type: object
                    additionalProperties: true
                  evidence:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
                  card:
                    type: object
                    additionalProperties: true
            total:
              type: integer
            page:
              type: integer
            page_size:
              type: integer
            competitor:
              type: object
              properties:
                key:
                  type: string
                name:
                  type: string
                platforms:
                  type: object
                  additionalProperties: true
            evidence:
              type: object
              properties:
                items:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      question:
                        type: string
                total:
                  type: integer
                page:
                  type: integer
                page_size:
                  type: integer
        meta:
          type: object
          additionalProperties: true
    ShoppingSummaryResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            project_id:
              type: string
              format: uuid
            status:
              type: string
              enum:
              - configured
              - unconfigured
              - ineligible
            eligibility:
              type: string
              enum:
              - eligible
              - not_ecommerce
              - unknown
            days:
              type: integer
            market:
              type: object
              additionalProperties: true
            monitoring:
              type: object
              additionalProperties: true
            latest_run:
              type:
              - object
              - 'null'
            metrics:
              type: object
              additionalProperties: true
            coverage:
              type: array
              items:
                type: object
                additionalProperties: true
        meta:
          type: object
          additionalProperties: true
    ShoppingCatalogResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            project_id:
              type: string
              format: uuid
            status:
              type: string
              enum:
              - configured
              - unconfigured
              - ineligible
            eligibility:
              type: string
              enum:
              - eligible
              - not_ecommerce
              - unknown
            items:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  kind:
                    type: string
                    enum:
                    - product
                    - category
                  name:
                    type: string
                  url:
                    type: string
                  category_ids:
                    type: array
                    items:
                      type: string
                      format: uuid
                  platforms:
                    type: object
                    additionalProperties: true
            total:
              type: integer
            page:
              type: integer
            page_size:
              type: integer
        meta:
          type: object
          additionalProperties: true
    ShoppingClaimsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            project_id:
              type: string
              format: uuid
            status:
              type: string
              enum:
              - configured
              - unconfigured
              - ineligible
            eligibility:
              type: string
              enum:
              - eligible
              - not_ecommerce
              - unknown
            items:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                  product_id:
                    type: string
                    format: uuid
                  product_name:
                    type: string
                  attribute:
                    type: string
                  quote:
                    type: string
                  status:
                    type: string
                  evidence:
                    type: array
                    items:
                      type: string
                      format: uuid
                  review:
                    type:
                    - object
                    - 'null'
                    properties:
                      verdict:
                        type: string
                      corrected_value:
                        type:
                        - string
                        - 'null'
                      reviewed_at:
                        type: string
                        format: date-time
                  page_reference:
                    type:
                    - object
                    - 'null'
                  current_page_reference:
                    type:
                    - object
                    - 'null'
                  association:
                    type: object
            total:
              type: integer
            page:
              type: integer
            page_size:
              type: integer
        meta:
          type: object
          additionalProperties: true
  responses:
    UnexpectedError:
      description: Any documented or unexpected 4xx or 5xx response uses the same typed error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API key
      description: 'Send `Authorization: Bearer <token>`. Use a Supabase access token, a user API key (`sgpt_...`), or an expiring workspace-scoped agency partner key (`sgpt_partner_...`). Key management routes require a user session JWT; partner-key management also requires agency ownership.'
externalDocs:
  description: API versioning and deprecation policy
  url: https://tryglim.ai/api-versioning-policy.md
x-versioning-policy:
  strategy: URL major version
  current: v1
  deprecation: RFC 9745 Deprecation and deprecation Link headers
  sunset: RFC 8594 Sunset header when retirement is scheduled
  notice: 12 months targeted
  url: https://tryglim.ai/api-versioning-policy.md