TekkscopeTekkscope
    QuickstartAuthenticationPricing
POSTSearchPOSTTekPOSTLensPOSTDeepLensPOSTReportLens
Docs

DeepLens API

DeepLens performs in-depth, iterative research. It explores a topic by generating follow-up questions, performing multiple rounds of searching, and synthesizing a comprehensive answer with citations.

Detailed Research

Start a deep research task. This process can take longer than standard requests due to the iterative nature.

POST/deeplens/research

Request Body

payload.json
1{ 2 "query": "string", 3 "settings": { 4 "max_results": 10, // Optional. Results per iteration. 5 "iteration_depth": 3 // Optional. How many rounds of research to perform. 6 } 7}

Example Request

curl.sh
1curl -X POST "https://api.tekkscope.com/deeplens/research" \ 2 -H "Authorization: Bearer YOUR_API_KEY" \ 3 -H "Content-Type: application/json" \ 4 -d '{ 5 "query": "impact of quantum computing on cryptography", 6 "settings": { "iteration_depth": 3 } 7 }'

Response

response.json
1{ 2 "result": { 3 "summary": "Detailed explanation of quantum threats...", 4 "findings": [...], 5 "sources": [...] 6 } 7}

Stream Deep Research

Watch the research unfold step-by-step. This is highly recommended for DeepLens due to the longer latency.

GET/deeplens/research/stream

Query Parameters

  • query (string) - Required

Example Request

stream.js
1const eventSource = new EventSource( 2 "https://api.tekkscope.com/deeplens/research/stream?query=quantum+cryptography&token=YOUR_API_KEY" 3); 4 5eventSource.onmessage = (event) => { 6 const data = JSON.parse(event.data); 7 8 if (data.type === "thinking") { 9 // Provides detailed updates: "urls_preview", "calling_detailed_research", etc. 10 console.log("Phase:", data.content.phase); 11 } else if (data.type === "response") { 12 // The final answer or citations 13 console.log("Data:", data.content); 14 } 15};