Windsurf · Example Payload

Windsurf Query Analytics Example

AI AgentsAI CopilotCoding StandardsDeveloper WorkflowIDEWindsurf

Windsurf Query Analytics Example is an example object payload from Windsurf, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationmethodpathsummaryrequestresponse

Example Payload

Raw ↑
{
  "operation": "get-custom-analytics",
  "method": "POST",
  "path": "/Analytics",
  "summary": "Get Custom Analytics",
  "request": {
    "service_key": "your_service_key_here",
    "start_timestamp": "2026-04-01T00:00:00Z",
    "end_timestamp": "2026-04-30T23:59:59Z",
    "query_requests": [
      {
        "data_source": "QUERY_DATA_SOURCE_USER_DATA",
        "selections": [
          { "field": "email", "name": "user_email" },
          { "field": "completions_shown", "aggregation_function": "SUM" },
          { "field": "completions_accepted", "aggregation_function": "SUM" }
        ],
        "aggregations": [
          { "field": "email", "name": "user_email" }
        ]
      }
    ]
  },
  "response": {
    "queryResults": [
      {
        "responseItems": [
          {
            "item": {
              "user_email": "alice@example.com",
              "completions_shown": "1250",
              "completions_accepted": "875"
            }
          },
          {
            "item": {
              "user_email": "bob@example.com",
              "completions_shown": "980",
              "completions_accepted": "612"
            }
          }
        ]
      }
    ]
  }
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example 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 example
curl "https://apis.io/api/v1/examples/windsurf-query-analytics-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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