Official Node.js wrapper for API Serpent – fast, reliable, and cost-effective search engine results API.
- SERP API: Fetch real-time search engine results from Google, Bing, Yahoo, DuckDuckGo, and Brave in clean JSON format.
- Rank Tracking API: Monitor search rankings for your keywords programmatically across locations and devices.
- Pixel Position API: Get exact pixel-level placement metrics to calculate true above-the-fold visibility.
- AI Search Monitoring: Track visibility across generative engines including ChatGPT, Claude, Gemini, and Perplexity.
npm install axiosconst axios = require('axios');
const apiKey = 'YOUR_API_SERPENT_KEY';
const endpoint = 'https://api.apiserpent.com/v1/search';
axios.get(endpoint, {
params: {
api_key: apiKey,
q: 'node serp api',
engine: 'google',
location: 'United States'
}
})
.then(response => {
console.log(response.data);
});
.catch(error => {
console.error(error);This project is licensed under the MIT License - see the LICENSE file for details.