first commit

This commit is contained in:
2025-11-06 11:08:59 +01:00
commit 3c5117c2c3
85 changed files with 13275 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import axios from "axios";
import 'dotenv/config';
const API_KEY = process.env.TAVILY_API_KEY;
async function webSearch(query) {
const response = await axios.post("https://api.tavily.com/search",
{ query },
{ headers: { Authorization: `Bearer ${API_KEY}` } }
);
console.log(response.data.results);
}
webSearch("who is the current president of united states");