0

Search Strale Capabilities

by
Published Apr 14, 2026

Search Strale's 290+ quality-tested data capabilities using natural language. Returns matching capabilities with descriptions, pricing, and quality scores (SQS). Example queries: - "verify a Swedish company" - "validate a VAT number" - "screen for sanctions" - "extract data from an invoice" Strale is the data layer for AI agents. Every data source is independently quality-tested, scored, and audit-logged. https://strale.dev

Script strale Verified

The script

Submitted by hugo989 Typescript (fetch-only)
Verified 6 days ago
1
//native
2

3
// Search Strale's 290+ quality-tested data capabilities.
4
// Returns matching capabilities with descriptions, pricing, and quality scores.
5
//
6
// Strale is the data layer for AI agents — every data source independently
7
// quality-tested, scored, and audit-logged. https://strale.dev
8

9
type Strale = {
10
  api_key: string;
11
  base_url?: string;
12
};
13

14
export async function main(
15
  strale: Strale,
16
  query: string,
17
  limit: number = 5,
18
) {
19
  const baseUrl = strale.base_url ?? "https://api.strale.io";
20

21
  const response = await fetch(`${baseUrl}/v1/suggest`, {
22
    method: "POST",
23
    headers: {
24
      "Authorization": `Bearer ${strale.api_key}`,
25
      "Content-Type": "application/json",
26
    },
27
    body: JSON.stringify({ task: query, limit }),
28
  });
29

30
  if (!response.ok) {
31
    const error = await response.json().catch(() => ({ message: response.statusText }));
32
    throw new Error(
33
      `Strale API error (${response.status}): ${(error as any).error?.message ?? (error as any).message ?? "Unknown error"}`
34
    );
35
  }
36

37
  const data = await response.json() as {
38
    suggestions: Array<{
39
      slug: string;
40
      name: string;
41
      description: string;
42
      category: string;
43
      price_cents: number;
44
      quality_score?: number;
45
      relevance_score?: number;
46
    }>;
47
  };
48

49
  return {
50
    query,
51
    matches: data.suggestions.map((s) => ({
52
      slug: s.slug,
53
      name: s.name,
54
      description: s.description,
55
      category: s.category,
56
      price: `€${(s.price_cents / 100).toFixed(2)}`,
57
      price_cents: s.price_cents,
58
      quality_score: s.quality_score,
59
      relevance_score: s.relevance_score,
60
    })),
61
    count: data.suggestions.length,
62
  };
63
}
Other submissions
  • Submitted by petter133 Deno
    Created 56 days ago
    1
    // Search Strale's 290+ quality-tested data capabilities.
    2
    // Returns matching capabilities with descriptions, pricing, and quality scores.
    3
    //
    4
    // Strale is the data layer for AI agents — every data source independently
    5
    // quality-tested, scored, and audit-logged. https://strale.dev
    6
    
    
    7
    type Strale = {
    8
      api_key: string;
    9
      base_url?: string;
    10
    };
    11
    
    
    12
    export async function main(
    13
      strale: Strale,
    14
      query: string,
    15
      limit: number = 5,
    16
    ) {
    17
      const baseUrl = strale.base_url ?? "https://api.strale.io";
    18
    
    
    19
      const response = await fetch(`${baseUrl}/v1/suggest`, {
    20
        method: "POST",
    21
        headers: {
    22
          "Authorization": `Bearer ${strale.api_key}`,
    23
          "Content-Type": "application/json",
    24
        },
    25
        body: JSON.stringify({ task: query, limit }),
    26
      });
    27
    
    
    28
      if (!response.ok) {
    29
        const error = await response.json().catch(() => ({ message: response.statusText }));
    30
        throw new Error(
    31
          `Strale API error (${response.status}): ${(error as any).error?.message ?? (error as any).message ?? "Unknown error"}`
    32
        );
    33
      }
    34
    
    
    35
      const data = await response.json() as {
    36
        suggestions: Array<{
    37
          slug: string;
    38
          name: string;
    39
          description: string;
    40
          category: string;
    41
          price_cents: number;
    42
          quality_score?: number;
    43
          relevance_score?: number;
    44
        }>;
    45
      };
    46
    
    
    47
      return {
    48
        query,
    49
        matches: data.suggestions.map((s) => ({
    50
          slug: s.slug,
    51
          name: s.name,
    52
          description: s.description,
    53
          category: s.category,
    54
          price: `€${(s.price_cents / 100).toFixed(2)}`,
    55
          price_cents: s.price_cents,
    56
          quality_score: s.quality_score,
    57
          relevance_score: s.relevance_score,
    58
        })),
    59
        count: data.suggestions.length,
    60
      };
    61
    }