Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

wikiSearch

import { wikiSearch } from "https://raw.githubusercontent.com/el3um4s/DenoWiki/master/mod.ts";

Search for a term on Wikipedia and return the corresponding pages (max 500) Options can be used to customize parameters: language (default "en") srsearch: term to search (default "Hello World") srlimit: how many total pages to return (default 500) srprop: which pieces of information to get (default "size|wordcount|timestamp|snippet")

const wikiJSON = await wiki.wikiSearch( { language: en, srsearch: "hello world", srlimit: 5 } );
async function wikiSearch(options?): Promise<WikiSearch_Query>;
§
wikiSearch(options?): Promise<WikiSearch_Query>
[src]

§Parameters

§
options? optional
[src]

§Return Type