Skip to content
Search Lab
Jobs · United States · English · Austin, Texas Change
Country
Language
Jobs · JavaScript
const params = new URLSearchParams({
  "engine": "google_jobs",
  "gl": "us",
  "hl": "en",
  "location": "Austin, Texas",
  "q": "rails developer",
});
const response = await fetch(`https://www.searchapi.io/api/v1/search?${params}`, {
  headers: { Authorization: `Bearer ${process.env.SEARCHAPI_API_KEY}` },
});
console.log(await response.json());

The key is read from SEARCHAPI_API_KEY and sent as a Bearer token.