TekkscopeTekkscope
    QuickstartAuthenticationPricing
POSTSearchPOSTTekPOSTLensPOSTDeepLensPOSTReportLens
Docs

Lens API

Lens is designed for quick, surface-level research. It performs a search, aggregates results, and provides a concise summary with citations. Ideal for "What is..." or "Who is..." style questions.

Quick Research

Get a quick summary and citations for a topic.

POST/lens/research

Request Body

payload.json
1{ 2 "query": "string", 3 "settings": { 4 "max_results": 5 // Optional. Number of search results to analyze. 5 } 6}

Example Request

curl.sh
1curl -X POST "https://api.tekkscope.com/lens/research" \ 2 -H "Authorization: Bearer YOUR_API_KEY" \ 3 -H "Content-Type: application/json" \ 4 -d '{ 5 "query": "summary of the latest spacex launch", 6 "settings": { "max_results": 5 } 7 }'

Response

response.json
1{ 2 "result": { 3 "summary": "SpaceX successfully launched...", 4 "sources": [ 5 { "title": "SpaceX Launch", "url": "https://..." }, 6 ... 7 ] 8 } 9}

Stream Quick Research

Stream the research process and results in real-time.

GET/lens/research/stream

Query Parameters

  • query (string) - Required

Example Request

stream.js
1const eventSource = new EventSource( 2 "https://api.tekkscope.com/lens/research/stream?query=spacex+launch&token=YOUR_API_KEY" 3); 4 5eventSource.onmessage = (event) => { 6 const data = JSON.parse(event.data); 7 8 if (data.type === "thinking") { 9 // Updates on search progress 10 console.log("Thinking:", data.content); 11 } else if (data.type === "response") { 12 // Streamed content chunks or citations 13 if (data.content.citations) { 14 console.log("Sources:", data.content.citations); 15 } else { 16 process.stdout.write(data.content); 17 } 18 } 19};