stats_service

Estimate query

post/api/v1/services/stats/query/estimate

Query parameters

chain'mainnet' | 'testnet'

chain

Request body

project_idinteger required
namestring
querystring
gpt_messagestring
repeat_intervalinteger

cyclic execution of requests

Example request

{
  "project_id": 1647024163,
  "name": "test query",
  "query": "select id from test",
  "gpt_message": "give me random id from accounts table",
  "repeat_interval": 10
}

Response

Estimate query

approximate_timeinteger required
approximate_usd_costnumber required
explainstring

Changes

Changed in 7 of the 50 revisions of this API.111

  • 356252841f5011See the full diff
    • removed the required property from the response with the status

      response-required-property-removed

    • added the required property to the response with the status

      response-required-property-added

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional request property

      new-optional-request-property

    • added the new optional query request parameter chain

      new-optional-request-parameter

    • api tag stats_service added

      api-tag-added

    • api tag db removed

      api-tag-removed

    • added the optional property to the response with the status

      response-optional-property-added

    • added the new optional request property

      new-optional-request-property

    • the request property became optional

      request-property-became-optional

    • api operation id estimateStatsSqlQuery removed and replaced with estimateStatsQuery

      api-operation-id-removed

    • added the new optional request property

      new-optional-request-property

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added