Skip to content

Latest commit

 

History

History

basic_ts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Deno basic TypeScript example

Usage

  1. Setup environment variables
  • Duplicate .env.example and name it .env.
  • Replace YOUR_API_KEY with your SerpApi API key.
  1. Run the example
deno run example.ts

Notes

  • Imports rely on mod.ts found in the root folder.
  • To import the published module from deno.land, update the import to the following:
    import {
      config,
      getJson,
      GoogleParameters,
    } from "https://deno.land/x/serpapi/mod.ts";