Ask AI Gpt API

The Gpt API from Ask AI — 30 operation(s) for gpt.

Operations 30

POST /api/gpt/ask_question Ask any business question in natural language #
POST /api/gpt/get_data_sources Check which data sources are connected and have data #
POST /api/gpt/get_complete_dashboard Get unified dashboard with key metrics from all connected sources #
POST /api/gpt/get_metrics_comparison Get core metrics with period-over-period comparison #
POST /api/gpt/get_customer_insights Get customer behavior and retention insights #
POST /api/gpt/get_refunds Get refund/return analytics #
POST /api/gpt/get_discounts Get discount code analytics #
POST /api/gpt/get_inventory_velocity Get inventory velocity analytics #
POST /api/gpt/get_marketing_performance Get marketing performance dashboard with channel breakdown #
POST /api/gpt/get_store_summary Get overall store metrics (revenue, orders, AOV) #
POST /api/gpt/query_orders Query and filter orders with various criteria #
POST /api/gpt/get_orders Get order analytics by dimension #
POST /api/gpt/get_top_products Get top selling products by revenue or quantity #
POST /api/gpt/get_customers Get customer analytics by dimension #
POST /api/gpt/get_inventory Get inventory analytics #
POST /api/gpt/get_daily_revenue Get daily revenue and order trends #
POST /api/gpt/get_weekly_trends Get weekly revenue, orders, and items sold trends #
POST /api/gpt/get_triple_whale Get Triple Whale marketing analytics #
POST /api/gpt/get_klaviyo Get Klaviyo email marketing analytics #
POST /api/gpt/get_gorgias Get Gorgias customer support analytics #
POST /api/gpt/get_recharge Get Recharge subscription analytics #
POST /api/gpt/get_search_console Get Google Search Console SEO analytics #
POST /api/gpt/get_clarity Get Microsoft Clarity UX analytics #
POST /api/gpt/get_youtube Get YouTube analytics and transcripts #
POST /api/gpt/get_reviews Get product review analytics #
POST /api/gpt/get_loyalty Get Smile.io loyalty program analytics #
POST /api/gpt/get_wishlist Get Swish wishlist analytics #
POST /api/gpt/get_daily_stats Get pre-computed daily analytics #
POST /api/gpt/get_abandoned_checkouts Get cart abandonment analytics #
POST /api/gpt/get_analytics Get Google Analytics website traffic data #

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/ask-ai-data-connector-com:ask-ai-data-connector-com-gpt-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

ask-ai-data-connector-com-gpt-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ask AI - Data Connector Gpt API
  description: 'E-commerce analytics API for Shopify stores. All tools are called via

    POST /api/gpt/{tool_name} with a JSON body. Many tools accept a `report`

    parameter to select sub-reports (e.g. get_customers with report: segments).'
  version: 2.0.0
  contact:
    name: Ask AI - Data Connector Support
servers:
- url: https://ask-ai-data-connector.com
  description: Production server
security:
- BearerAuth: []
tags:
- name: Gpt
paths:
  /api/gpt/ask_question:
    post:
      operationId: askQuestion
      summary: Ask any business question in natural language
      description: 'BEST FIRST CHOICE: Ask any business question and get a direct answer.

        Handles revenue, products, channels, inventory, customers, orders, and more.

        Examples: "How''s revenue?", "What''s selling well?", "Any stock issues?"'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - question
              properties:
                question:
                  type: string
                  description: The question to answer in natural language
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
      responses:
        '200':
          description: Answer to the question
      tags:
      - Gpt
  /api/gpt/get_data_sources:
    post:
      operationId: getDataSources
      summary: Check which data sources are connected and have data
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties: {}
      responses:
        '200':
          description: Connection status for all data sources
      tags:
      - Gpt
  /api/gpt/get_complete_dashboard:
    post:
      operationId: getCompleteDashboard
      summary: Get unified dashboard with key metrics from all connected sources
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DateRange'
      responses:
        '200':
          description: Complete dashboard data
      tags:
      - Gpt
  /api/gpt/get_metrics_comparison:
    post:
      operationId: getMetricsComparison
      summary: Get core metrics with period-over-period comparison
      description: Revenue, Sessions, CVR, AOV with WoW, MoM, YoY, or custom comparisons.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - startDate
              - endDate
              properties:
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                comparison:
                  type: string
                  enum:
                  - wow
                  - mom
                  - yoy
                  - previous
                compareStartDate:
                  type: string
                  format: date
                compareEndDate:
                  type: string
                  format: date
                compareLabel:
                  type: string
      responses:
        '200':
          description: Metrics with comparison
      tags:
      - Gpt
  /api/gpt/get_customer_insights:
    post:
      operationId: getCustomerInsights
      summary: Get customer behavior and retention insights
      description: 'Reports: new_vs_returning, repeat_metrics, cohorts,

        by_category, cohorts_by_first_purchase.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - new_vs_returning
                  - repeat_metrics
                  - cohorts
                  - by_category
                  - cohorts_by_first_purchase
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                months:
                  type: integer
      responses:
        '200':
          description: Customer insight data
      tags:
      - Gpt
  /api/gpt/get_refunds:
    post:
      operationId: getRefunds
      summary: Get refund/return analytics
      description: 'Reports: summary, top_products.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - top_products
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                limit:
                  type: integer
                sortBy:
                  type: string
                  enum:
                  - amount
                  - rate
      responses:
        '200':
          description: Refund analytics
      tags:
      - Gpt
  /api/gpt/get_discounts:
    post:
      operationId: getDiscounts
      summary: Get discount code analytics
      description: 'Reports: summary, top_codes, code_details (requires code param).'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - top_codes
                  - code_details
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                code:
                  type: string
                  description: For code_details - the discount code
                limit:
                  type: integer
                sortBy:
                  type: string
                  enum:
                  - revenue
                  - usage
                  - discount
      responses:
        '200':
          description: Discount analytics
      tags:
      - Gpt
  /api/gpt/get_inventory_velocity:
    post:
      operationId: getInventoryVelocity
      summary: Get inventory velocity analytics
      description: 'Reports: summary, by_product, restock.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - by_product
                  - restock
                days:
                  type: integer
                limit:
                  type: integer
                sortBy:
                  type: string
                  enum:
                  - velocity
                  - daysOfStock
                  - risk
                filter:
                  type: string
                  enum:
                  - all
                  - atRisk
                  - overstocked
                  - outOfStock
                leadTimeDays:
                  type: integer
                safetyStockDays:
                  type: integer
      responses:
        '200':
          description: Inventory velocity data
      tags:
      - Gpt
  /api/gpt/get_marketing_performance:
    post:
      operationId: getMarketingPerformance
      summary: Get marketing performance dashboard with channel breakdown
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DateRange'
      responses:
        '200':
          description: Marketing performance data
      tags:
      - Gpt
  /api/gpt/get_store_summary:
    post:
      operationId: getStoreSummary
      summary: Get overall store metrics (revenue, orders, AOV)
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DateRange'
      responses:
        '200':
          description: Store summary
      tags:
      - Gpt
  /api/gpt/query_orders:
    post:
      operationId: queryOrders
      summary: Query and filter orders with various criteria
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                status:
                  type: string
                  enum:
                  - paid
                  - pending
                  - refunded
                  - partially_refunded
                minTotal:
                  type: number
                maxTotal:
                  type: number
                limit:
                  type: integer
                offset:
                  type: integer
                sortBy:
                  type: string
                  enum:
                  - processedAt
                  - totalPrice
                sortOrder:
                  type: string
                  enum:
                  - asc
                  - desc
      responses:
        '200':
          description: Order list
      tags:
      - Gpt
  /api/gpt/get_orders:
    post:
      operationId: getOrders
      summary: Get order analytics by dimension
      description: 'Reports: by_status, by_country.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - by_status
                  - by_country
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                limit:
                  type: integer
      responses:
        '200':
          description: Order analytics
      tags:
      - Gpt
  /api/gpt/get_top_products:
    post:
      operationId: getTopProducts
      summary: Get top selling products by revenue or quantity
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                metric:
                  type: string
                  enum:
                  - revenue
                  - quantity
                limit:
                  type: integer
      responses:
        '200':
          description: Top products
      tags:
      - Gpt
  /api/gpt/get_customers:
    post:
      operationId: getCustomers
      summary: Get customer analytics by dimension
      description: 'Reports: segments, top, by_country.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - segments
                  - top
                  - by_country
                sortBy:
                  type: string
                  description: 'For top: totalSpent or orders'
                limit:
                  type: integer
      responses:
        '200':
          description: Customer analytics
      tags:
      - Gpt
  /api/gpt/get_inventory:
    post:
      operationId: getInventory
      summary: Get inventory analytics
      description: 'Reports: summary, low_stock, out_of_stock, by_location.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - low_stock
                  - out_of_stock
                  - by_location
                threshold:
                  type: integer
                limit:
                  type: integer
      responses:
        '200':
          description: Inventory data
      tags:
      - Gpt
  /api/gpt/get_daily_revenue:
    post:
      operationId: getDailyRevenue
      summary: Get daily revenue and order trends
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DateRange'
      responses:
        '200':
          description: Daily revenue data
      tags:
      - Gpt
  /api/gpt/get_weekly_trends:
    post:
      operationId: getWeeklyTrends
      summary: Get weekly revenue, orders, and items sold trends
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                weeks:
                  type: integer
      responses:
        '200':
          description: Weekly trends
      tags:
      - Gpt
  /api/gpt/get_triple_whale:
    post:
      operationId: getTripleWhale
      summary: Get Triple Whale marketing analytics
      description: 'Reports: summary, attributions, by_channel.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - attributions
                  - by_channel
                periodType:
                  type: string
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                channel:
                  type: string
                limit:
                  type: integer
      responses:
        '200':
          description: Triple Whale analytics
      tags:
      - Gpt
  /api/gpt/get_klaviyo:
    post:
      operationId: getKlaviyo
      summary: Get Klaviyo email marketing analytics
      description: 'Reports: campaign_summary, campaigns, top_campaigns, flow_summary,

        flows, top_flows, list_summary, lists, signup_trends, available_metrics.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - campaign_summary
                  - campaigns
                  - top_campaigns
                  - flow_summary
                  - flows
                  - top_flows
                  - list_summary
                  - lists
                  - signup_trends
                  - available_metrics
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                status:
                  type: string
                metric:
                  type: string
                limit:
                  type: integer
                interval:
                  type: string
                  enum:
                  - day
                  - week
                  - month
      responses:
        '200':
          description: Klaviyo analytics
      tags:
      - Gpt
  /api/gpt/get_gorgias:
    post:
      operationId: getGorgias
      summary: Get Gorgias customer support analytics
      description: 'Reports: summary, tickets, by_channel, satisfaction, top_tags.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - tickets
                  - by_channel
                  - satisfaction
                  - top_tags
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                status:
                  type: string
                channel:
                  type: string
                limit:
                  type: integer
      responses:
        '200':
          description: Gorgias analytics
      tags:
      - Gpt
  /api/gpt/get_recharge:
    post:
      operationId: getRecharge
      summary: Get Recharge subscription analytics
      description: 'Reports: summary, metrics, cancellation_reasons, upcoming_charges.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - metrics
                  - cancellation_reasons
                  - upcoming_charges
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                limit:
                  type: integer
                days:
                  type: integer
      responses:
        '200':
          description: Recharge analytics
      tags:
      - Gpt
  /api/gpt/get_search_console:
    post:
      operationId: getSearchConsole
      summary: Get Google Search Console SEO analytics
      description: 'Reports: summary, top_queries, top_pages, trends, by_country, by_device,

        keyword_movers, new_keywords, page_ranking_changes, anomalies,

        zero_traffic, branded_split, cannibalization.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - top_queries
                  - top_pages
                  - trends
                  - by_country
                  - by_device
                  - keyword_movers
                  - new_keywords
                  - page_ranking_changes
                  - anomalies
                  - zero_traffic
                  - branded_split
                  - cannibalization
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                limit:
                  type: integer
                sortBy:
                  type: string
                  enum:
                  - clicks
                  - impressions
                direction:
                  type: string
                  enum:
                  - all
                  - improved
                  - declined
                brandTerms:
                  type: string
                minImpressions:
                  type: integer
      responses:
        '200':
          description: Search Console analytics
      tags:
      - Gpt
  /api/gpt/get_clarity:
    post:
      operationId: getClarity
      summary: Get Microsoft Clarity UX analytics
      description: 'Reports: summary, ux_issues, by_dimension (requires dimension param), trends.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - ux_issues
                  - by_dimension
                  - trends
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                dimension:
                  type: string
                  enum:
                  - browser
                  - device
                  - os
                  - country
                  - source
      responses:
        '200':
          description: Clarity analytics
      tags:
      - Gpt
  /api/gpt/get_youtube:
    post:
      operationId: getYoutube
      summary: Get YouTube analytics and transcripts
      description: 'Reports: summary, videos, top_videos, video_details (requires videoId), search_transcripts (requires query).'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - videos
                  - top_videos
                  - video_details
                  - search_transcripts
                videoId:
                  type: string
                query:
                  type: string
                limit:
                  type: integer
                orderBy:
                  type: string
                  enum:
                  - publishedAt
                  - viewCount
                  - likeCount
                days:
                  type: integer
      responses:
        '200':
          description: YouTube analytics
      tags:
      - Gpt
  /api/gpt/get_reviews:
    post:
      operationId: getReviews
      summary: Get product review analytics
      description: 'Reports: summary, trends, top_rated, lowest_rated, recent, search, timing, sales_impact.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - trends
                  - top_rated
                  - lowest_rated
                  - recent
                  - search
                  - timing
                  - sales_impact
                provider:
                  type: string
                  enum:
                  - yotpo
                  - reviewsio
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                limit:
                  type: integer
                minReviews:
                  type: integer
                minScore:
                  type: integer
                maxScore:
                  type: integer
                keyword:
                  type: string
                sku:
                  type: string
      responses:
        '200':
          description: Review analytics
      tags:
      - Gpt
  /api/gpt/get_loyalty:
    post:
      operationId: getLoyalty
      summary: Get Smile.io loyalty program analytics
      description: 'Reports: summary, points_activity, top_members, vip_tiers, redemption_patterns, engagement.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - points_activity
                  - top_members
                  - vip_tiers
                  - redemption_patterns
                  - engagement
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                limit:
                  type: integer
                sortBy:
                  type: string
                  enum:
                  - pointsBalance
                  - totalEarned
                  - totalSpent
                granularity:
                  type: string
                  enum:
                  - day
                  - week
                  - month
      responses:
        '200':
          description: Loyalty analytics
      tags:
      - Gpt
  /api/gpt/get_wishlist:
    post:
      operationId: getWishlist
      summary: Get Swish wishlist analytics
      description: 'Reports: summary, top_products, demand_trends, metrics.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - top_products
                  - demand_trends
                  - metrics
                limit:
                  type: integer
                days:
                  type: integer
      responses:
        '200':
          description: Wishlist analytics
      tags:
      - Gpt
  /api/gpt/get_daily_stats:
    post:
      operationId: getDailyStats
      summary: Get pre-computed daily analytics
      description: 'Reports: daily, summary.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - daily
                  - summary
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                limit:
                  type: integer
      responses:
        '200':
          description: Daily stats
      tags:
      - Gpt
  /api/gpt/get_abandoned_checkouts:
    post:
      operationId: getAbandonedCheckouts
      summary: Get cart abandonment analytics
      description: 'Reports: stats, top_products.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - stats
                  - top_products
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                limit:
                  type: integer
      responses:
        '200':
          description: Abandoned checkout analytics
      tags:
      - Gpt
  /api/gpt/get_analytics:
    post:
      operationId: getAnalytics
      summary: Get Google Analytics website traffic data
      description: 'Reports: summary, trend, by_channel, by_device, by_country.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - report
              properties:
                report:
                  type: string
                  enum:
                  - summary
                  - trend
                  - by_channel
                  - by_device
                  - by_country
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                limit:
                  type: integer
      responses:
        '200':
          description: Google Analytics data
      tags:
      - Gpt
components:
  schemas:
    DateRange:
      type: object
      properties:
        startDate:
          type: string
          format: date
          description: Start date (YYYY-MM-DD). Defaults to 30 days ago.
        endDate:
          type: string
          format: date
          description: End date (YYYY-MM-DD). Defaults to today.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key provided by Ask AI - Data Connector