TekkscopeTekkscope
    QuickstartAuthenticationPricing
POSTSearchPOSTTekPOSTLensPOSTDeepLensPOSTReportLens
Docs

Search API

The Search API allows you to programmatically retrieve search results from the web. It supports retrieving direct links or full content extraction via streaming.

Get Search Links

Retrieve a list of search results (links and titles) for a given query.

POST/links

Request Body

payload.json
1{ 2 "query": "string", // Required. The search query. 3 "num_results": 10, // Optional. Default: 10. 4 "n_queries": 3, // Optional. Number of sub-queries for enhanced search. 5 "enhanced_search": false // Optional. Use LLM to generate better queries. 6}

Example Request

curl.sh
1curl -X POST "https://api.tekkscope.com/links" \ 2 -H "Authorization: Bearer YOUR_API_KEY" \ 3 -H "Content-Type: application/json" \ 4 -d '{ 5 "query": "latest advancements in nuclear fusion", 6 "num_results": 5, 7 "enhanced_search": true 8 }'

Response

response.json
1{ 2 "results": [ 3 { 4 "title": "Nuclear Fusion Breakthrough...", 5 "url": "https://example.com/fusion-news" 6 }, 7 ... 8 ] 9}

Stream Content Extraction

Perform a search and stream back extracted text content from the visited pages. Useful for RAG pipelines or deep analysis.

GET/content/stream

Query Parameters

  • query (string) - Required
  • num_results (int) - Default: 8
  • enhanced_search (bool) - Default: false

Example Request

stream.js
1const eventSource = new EventSource( 2 "https://api.tekkscope.com/content/stream?query=ai+news&token=YOUR_API_KEY" 3); 4 5eventSource.onmessage = (event) => { 6 const data = JSON.parse(event.data); 7 if (data.content === "[END_OF_STREAM]") { 8 eventSource.close(); 9 return; 10 } 11 12 if (data.type === "thinking") { 13 console.log("Status:", data.content.phase); 14 } else if (data.type === "response") { 15 // Contains extracted content or final results 16 console.log("Data:", data.content); 17 } 18};