weeveo
  • Features
  • How it works
  • Revenue
  • Agents
  • Pricing
  • Docs
Sign in
Start free
weeveoanalytics

Understand your traffic.See what leads to sales.

See where visitors come from, what they do and which visits lead to purchases. Basic statistics without a popup. Recordings require permission.

Start freeService status

© 2026 Weeveo. All rights reserved.

Product

  • Features
  • Revenue reporting
  • Realtime
  • Funnels & journeys
  • Pricing

Developers

  • Documentation
  • Agents & MCP
  • Browser SDK
  • REST API
  • Start free
  • Sign in

Company

  • Changelog
  • Support
  • Contact
  • Privacy policy
  • Terms of service
  • Refund policy
  • Status

weeveo

Skip to content
Documentation home
Start here
Meet WeeveoYour first siteFind your way aroundCore concepts & metrics
Install & track
Install the trackerFramework & CMS recipesTracker configurationBrowser SDK referenceConsent & your CMPVisitor identity & payment matchingVerify your installationCustom tracking domains
Understand your traffic
Overview & realtimeDates, filters & comparisonsSources & campaignsPages & engagementEvents & visitor timelinesExplore, paths & saved viewsTraffic quality & anomalies
Conversions & revenue
Goals & conversionsFunnels & bottlenecksRetention cohortsRevenue reportingConnect a payment providerAttribution modelsCustomer journeysAll payment providers
Experience & performance
Session replaysClick & scroll heatmapsWeb Vitals & performance
Developers & agents
Connect ChatGPT, Claude & agentsCreate & manage API keysREST API quickstartAnalytics query referenceErrors, limits & safe retriesJavaScript & Python examplesMCP transport & tool discoveryOAuth discovery & authorizationPermissions & write consentAsk Weeveo & saved chatsApp identity & plugin metadataHTTP surface referenceAll API & MCP tools
Workspace & privacy
Workspaces & multiple sitesTeam, roles & invitationsSite preferences & notificationsPublic reports, embeds & badgesAccount & securityPrivacy & collection controlsVisitor export & erasure
Operate Weeveo
Background jobs & maintenanceTroubleshooting & common questionsQuestions & analysis recipes
Building something?Explore every API tool Download JSON reference ↗
DocsDevelopers & agents
Developers & agents

JavaScript & Python examples

Use standard HTTP clients from your own trusted server.

On this page
JavaScript / TypeScriptPython standard libraryExport a CSV

JavaScript / TypeScript#

This is a server-side fetch example, not a browser integration. Keep WEEVEO_API_KEY in a secret environment variable. Use the tool page for exact arguments and result semantics.

javascript
async function weeveo(tool, args = {}) {
  const response = await fetch(
    "https://weeveo.com/api/v1/tools/" + encodeURIComponent(tool),
    {
      method: "POST",
      headers: {
        Authorization: "Bearer " + process.env.WEEVEO_API_KEY,
        "Content-Type": "application/json"
      },
      body: JSON.stringify(args)
    }
  );
  const body = await response.json();
  if (!response.ok) throw new Error(body.error ?? "Weeveo request failed");
  return body.result;
}
const summary = await weeveo("get_traffic_summary", { range: "7d" });

Python standard library#

python
import json
import os
import urllib.request

def weeveo(tool, args=None):
    request = urllib.request.Request(
        "https://weeveo.com/api/v1/tools/" + tool,
        data=json.dumps(args or {}).encode("utf-8"),
        headers={
            "Authorization": "Bearer " + os.environ["WEEVEO_API_KEY"],
            "Content-Type": "application/json",
        },
        method="POST",
    )
    with urllib.request.urlopen(request, timeout=30) as response:
        return json.load(response)["result"]

summary = weeveo("get_traffic_summary", {"range": "7d"})

urllib raises HTTPError for non-success statuses. Catch it in production and inspect its error body without logging secrets. These examples are ordinary HTTP clients; Weeveo's installed browser SDK is documented separately.

Export a CSV#

Call export_report with kind="timeseries" and your chosen range. Save result.csv to a file using result.filename as a suggested name. Do not treat the entire JSON response as CSV.

Still looking for an answer? Try troubleshooting or get in touch.

PreviousErrors, limits & safe retriesNextMCP transport & tool discovery
ON THIS PAGE
JavaScript / TypeScriptPython standard libraryExport a CSV
Your sites. Your permission.

Start with read access. Grant changes when you need them.

Understand access

Search Weeveo documentation

Good places to start

Start hereYour first siteGo from a new workspace to your first verified visit.Install & trackInstall the trackerOne shared script, configured for your site and consent policy.Install & trackBrowser SDK referenceTrack actions, inspect consent and identify a permitted persistent visitor.Developers & agentsConnect ChatGPT, Claude & agentsUse OAuth sign-in for hosted agents, with optional API keys for other clients.Developers & agentsAnalytics query referenceExact shared date, traffic, comparison and filter parameters.Developers & agentsAll API & MCP toolsEvery tool, argument schema and permission in the shared registry.
K to open↑ ↓ to select · Enter to open · Esc to close