Overview
This guide demonstrates how to use Olostep’s Batches endpoint to fetch data from popular AI search tools including Google AI Mode, Gemini, Microsoft Copilot, ChatGPT, Perplexity, and Google AI Overview. By leveraging specialized parsers for each platform, you can extract structured search results at scale, making it ideal for:- Competitive intelligence gathering
- Multi-platform search result comparison
- AI search engine monitoring
Request Formulation
Step 1: Prepare Your Queries
Create an array of queries you want to search. For this demo, we’ll query news across different cities:Copy
const axios = require('axios');
// Configuration
const CONFIG = {
url: 'https://api.olostep.com/v1/batches',
token: 'YOUR_API_KEY_HERE'
};
// Demo: Generate queries for different cities
const BASE_QUERY = 'what is the news today in';
const CITIES = [
'New York', 'Los Angeles', 'Chicago', 'Houston', 'Phoenix',
'Philadelphia', 'San Antonio', 'San Diego', 'Dallas', 'San Jose'
];
Step 2: Generate Items for Each AI Tool
Each AI search tool requires a specific parser ID and URL structure. Below are the item generation functions for each platform:- Google AI Mode
- ChatGPT
- Perplexity
- Google AI Overview
- Gemini
- Microsoft Copilot
- Grok
Parser ID:
@olostep/google-aimode-resultsCopy
const generateAIModeItems = () => {
return CITIES.map((city, index) => {
const query = `${BASE_QUERY} ${city}`;
const encodedQuery = encodeURIComponent(query);
return {
url: `https://google.com/aimode?q=${encodedQuery}`,
custom_id: (index + 1).toString()
};
});
};
Parser ID:
@olostep/chatgpt-resultsCopy
const generateChatGPTItems = () => {
return CITIES.map((city, index) => {
const query = `${BASE_QUERY} ${city}`;
const encodedQuery = encodeURIComponent(query);
return {
url: `https://chatgpt.com/?q=${encodedQuery}`,
custom_id: (index + 1).toString()
};
});
};
Parser ID:
@olostep/perplexity-resultsCopy
const generatePerplexityItems = () => {
return CITIES.map((city, index) => {
const query = `${BASE_QUERY} ${city}`;
const encodedQuery = encodeURIComponent(query);
return {
url: `https://www.perplexity.ai/?q=${encodedQuery}`,
custom_id: (index + 1).toString()
};
});
};
Parser ID:
@olostep/google-ai-overview-resultsCopy
const generateGoogleAIOverviewItems = () => {
return CITIES.map((city, index) => {
const query = `${BASE_QUERY} ${city}`;
const encodedQuery = encodeURIComponent(query);
return {
url: `https://www.google.com/search?q=${encodedQuery}`,
custom_id: (index + 1).toString()
};
});
};
Parser ID:
@olostep/gemini-resultsCopy
const generateGeminiItems = () => {
return CITIES.map((city, index) => {
const query = `${BASE_QUERY} ${city}`;
const encodedQuery = encodeURIComponent(query);
return {
url: `https://gemini.google.com/?q=${encodedQuery}`,
custom_id: (index + 1).toString()
};
});
};
Parser ID:
@olostep/microsoft-copilot-resultsCopy
const generateCopilotItems = () => {
return CITIES.map((city, index) => {
const query = `${BASE_QUERY} ${city}`;
const encodedQuery = encodeURIComponent(query);
return {
url: `https://copilot.microsoft.com/chats?q=${encodedQuery}`,
custom_id: (index + 1).toString()
};
});
};
Parser ID:
@olostep/grok-resultsCopy
const generateGrokItems = () => {
return CITIES.map((city, index) => {
const query = `${BASE_QUERY} ${city}`;
const encodedQuery = encodeURIComponent(query);
return {
url: `https://grok.com/?q=${encodedQuery}`,
custom_id: (index + 1).toString()
};
});
};
Step 3: Submit the Batch Request
Submit your batch request with the generated items:Copy
const response = await axios.post(CONFIG.url, {
parser: { id: '@olostep/gemini-results' },
items: generateGeminiItems()
}, {
headers: {
'Authorization': `Bearer ${CONFIG.token}`,
'Content-Type': 'application/json'
}
});
const batchId = response.data.id;
Response Format
After submitting a batch request and polling for completion, you’ll receive responses in the following format:- Google AI Mode
- ChatGPT
- Perplexity
- Google AI Overview
- Gemini
- Microsoft Copilot
- Grok
Copy
{
"url": "https://www.google.com//search?q=what+is+the+news+today+in+Austin&hl=en&udm=50&aep=11&newwindow=1&sei=mt_oaPvDBrKh5NoPy9W1sQE&mstk=AUtExfANCngr4KIDEH7t1EJsJ3xHfdsjka647_hz7r0UJWh1VM4FhWV9j1f2QOy0ylJU2l9-zWCxfORo5WzWeAN52_oVMM7nGAgEIRdyzsjtT7h1qhBn8Qj2RiN8HFQke6uYjmqnTeR4O1opgHbiLdAe5ZNfkzDyE_9O2zE&csuir=1",
"prompt": "what is the news today in Austin",
"answer_markdown": "In Austin news, officials announced that progress has been made on the city's homelessness response \n\n. \n\n**Top story: Homelessness** \n\n* Austin officials and local advocates reported \"real, measurable progress\" in addressing the needs of the city's homeless population.\n* The announcement came ahead of a report from the Ending Community Homelessness Coalition (ECHO)... ",
"sources": [
{
"url": "https://www.kxan.com/video/austin-mayor-citys-decreased-homelessness-is-a-big-deal/11151402/#:~:text=Elected%20city%20and%20county%20officials%2C%20along%20with,experiencing%20homelessness%20in%20Austin.%20Read%20More:%20https://www.kxan.com/news/local/austin/echo%2Dto%2Dpresent%2Dreport%2Don%2Dstate%2Dof%2Daustins%2Dhomelessness%2Dresponse%2Dsystem/",
"title": "KXAN\n·",
"description": "Austin mayor: City's decreased homelessness is 'a big deal'",
"icon": null,
"domain": "https://www.kxan.com",
"cited": true
},
{
"url": "https://www.fox7austin.com/tag/us/tx/travis-county/austin/east-austin#:~:text=Austin%20pd%20arrests%20man%20in%20deadly%20east%20austin%20double%20shooting",
"title": "FOX 7 Austin",
"description": "East Austin",
"icon": null,
"domain": "https://www.fox7austin.com",
"cited": true
},
...
],
"country": null
}
Copy
{
"url": "https://chatgpt.com/?model=gpt-4&q=what%20are%20some%20good%20restraunts%20to%20eat%20today%20in%20Los%20Angeles",
"prompt": "what are some good restraunts to eat today in Los Angeles",
"answer_markdown": "That depends a little on what part of Los Angeles you’re in and what kind of food you’re craving (sushi, Mexican, fine dining, casual, etc.), but here are some standout options across different styles:\n\n---\n\n## 🍽️ Top Restaurant Picks in LA (2025)\n\n### Fine Dining / Special Occasion\n\n* **Somni** (West Hollywood) — recently awarded **three Michelin stars**. Creative, high-end tasting menus..."
"web_searched": true,
"sources": [
{
"url": "https://www.latimes.com/food/story/2025-05-14/michelin-adds-3-los-angeles-restaurants-to-its-2025-california-guide-reveals-announcement-date?utm_source=chatgpt.com",
"title": "Michelin adds 3 Los Angeles restaurants to its 2025 California guide - Los Angeles Times",
"snippet": "MICHELIN ADDS 15 RESTAURANTS TO ITS CALIFORNIA GUIDE. NEARLY HALF ARE IN LOS ANGELES Here are the 15 new restaurants that will appear in Michelin’s 2025 California Guide, including seven found in Los...",
"rank": 0,
"date_published": null
},
{
"url": "https://www.latimes.com/00000193-b340-dcae-aff3-fb5cfd260000-123?utm_source=chatgpt.com",
"title": "LA Times Today: These are some of the 101 best restaurants in Los Angeles - Los Angeles Times",
"snippet": "Copyright © 2025, Los Angeles Times | Terms of Service | Privacy Policy | CA Notice of Collection | Do Not Sell or Share My Personal Information VIDEO | 06:47 LA Times Today: These are some of the 1...",
"rank": 13,
"date_published": null
},
...
],
"web_search_query": [
"good restaurants Los Angeles today",
"top restaurants Los Angeles 2025"
]
}
Copy
{
"url": "https://www.perplexity.ai/search/what-is-the-news-today-in-aust-_3zTmnq8QGiB7f2f.ESHgw?0=r",
"prompt": "what is the news today in Austin",
"answer_markdown": "Today's news in Austin includes both local and statewide developments. Major headlines cover school closures, law enforcement actions, and political decisions..."
"web_searched": true,
"web_search_query": [
"what is the news today in Austin"
],
"sources": [
{
"title": "KUT Homepage | KUT Radio, Austin's NPR Station",
"url": "https://www.kut.org/",
"description": "News stories for Austin and Central Texas from the local KUT newsroom, National Public Radio NPR, the BBC and public radio. K-U-T 90.5 FM",
"position": 1
},
{
"title": "Austin News, Weather, Sports, Breaking News",
"url": "https://cbsaustin.com/",
"description": "KEYE TV CBS Austin is the news, sports and weather leader for the Texas Capitol Region, covering events in the surrounding area including Round Rock Pflugerville, Georgetown, Belton, Killeen, Taylor, Lakeway, Buda, Kyle, San Marcos, Wyldwood, Bastrop, Elgin, Bartlett, Jarrell, Bertram, Burnet and Salado.",
"position": 2
},
...
],
"citations": [
{
"url": "https://www.kut.org/",
"title": "KUT Homepage | KUT Radio, Austin's NPR Station",
"domain": "https://www.kut.org/",
"position": "1"
},
{
"url": "https://cbsaustin.com/",
"title": "Austin News, Weather, Sports, Breaking News",
"domain": "https://cbsaustin.com/",
"position": "2"
},
...
],
"is_shopping_data": false,
"shopping_data": null,
"related_prompts": [
"Show top local headlines in Austin right now"
]
}
Copy
{
"url": "https://www.google.com/search?q=what%20is%20the%20news%20today%20in%20Austin&gl=IN&hl=en",
"prompt": "what is the news today in Austin",
"answer_markdown": "Today's top news in Austin includes the Texas House failing to meet a quorum due to a Democratic standoff, a suspect being arrested for a North Austin homicide, and a suspicious package found at the Austin airport that has since been cleared. Other local headlines involve community protests against proposed Austin ISD school closures, the City Council's effort to simplify opening neighborhood coffee shops, and a man's 80-year prison sentence for his fifth DWI...",
"sources": [
{
"title": "Austin News, Weather, Sports, Breaking News",
"url": "https://cbsaustin.com/#:~:text=%22I%20feel%20sad%2C%22%20Austin,Roberson%20in%20shaken%20baby%20case",
"snippet": "\"I feel sad,\" Austin ISD faces backlash over plan to close 13 schools. Federal judge temporarily blocks Texas National Guard deplo...",
"source": "KEYE",
"index": 0
},
{
"title": "News - FOX 7 Austin",
"url": "https://www.fox7austin.com/news#:~:text=Concerned%20community%20members%20protest%20proposed,multiple%20break%2Dins%20in%20custody",
"snippet": "Concerned community members protest proposed Austin ISD school closures. October 9, 2025 10:15pm CDT. 2 teens arrested after found...",
"source": "FOX 7 Austin",
"index": 1
},
...
],
"text_blocks": [
{
"type": "paragraph",
"snippet": "Today's top news in Austin includes the Texas House failing to meet a quorum due to a Democratic standoff, a suspect being arrested for a North Austin homicide, and a suspicious package found at the Austin airport that has since been cleared. Other local headlines involve community protests against proposed Austin ISD school closures, the City Council's effort to simplify opening neighborhood coffee shops, and a man's 80-year prison sentence for his fifth DWI conviction.",
"snippet_highlighted_words": "the Texas House failing to meet a quorum due to a Democratic standoff, a suspect being arrested for a North Austin homicide, and a suspicious package found at the Austin airport that has since been cleared"
},
{
"type": "list",
"list": [
{
"type": "paragraph",
"snippet": "Democratic Standoff: The Texas House is unable to meet a quorum because Texas Democrats are continuing their boycott of the legislative session."
},
{
"type": "paragraph",
"snippet": "Proposed ISD Closures: Community members are protesting the Austin Independent School District's plan to close 13 schools, with a possible TEA takeover looming."
},
{
"type": "paragraph",
"snippet": "Coffee Shops: The Austin City Council is working to make it easier to open walkable neighborhood coffee shops."
},
{
"type": "paragraph",
"snippet": "Homeless Navigation Center: The city council has approved the purchase of a new property for a homeless navigation center."
}
],
"title": "Austin Politics & Governance"
},
...
]
}
Copy
{
"url": "https://gemini.google.com/app/08383c6592b48ec3",
"prompt": "what is the news today in Austin",
"answer_markdown": "As of today, Friday, October 10, 2025, here are some of the top local news headlines in Austin, Texas:\n\n**Local Government and Community** \n\n* **New Homeless Navigation Center Approved:** The Austin City Council approved the purchase of a ...",
"sources": [
{
"url": "https://austinmonitor.com/stories/2025/10/council-oks-purchase-of-site-for-new-homeless-navigation-center/",
"title": "Council OKs purchase of site for new homeless navigation center - Austin Monitor",
"description": "City Council voted 8–3 on Thursday to purchase a commercial property on South Interstate 35 to serve as the city's first housing navigation center for people ...",
"icon": "https://encrypted-tbn2.gstatic.com/favicon-tbn?q=tbn:ANd9GcTvzUggudhKAFP21uoN6vQ1_hmo45uUEPVPyiPOp8I8q0_84o3TX7lffvJzfJ2HH5nDFyhXjX9H2WrPjt9Qb8iBwsjRUTWI95tIV8k",
"domain": "austinmonitor.com",
"cited": true,
"position": 374
},
{
"url": "https://www.kvue.com/",
"title": "Austin's Leading Local News: Weather, Traffic, Sports and more | Austin, Texas | kvue.com",
"description": "- 'My kids are coming home crying' | Families rally at Austin ISD headquarters to oppose consolidation plan. Parents are urging Austin ISD leaders to ...",
"icon": "https://encrypted-tbn2.gstatic.com/favicon-tbn?q=tbn:ANd9GcTr7k3t2Txwv0jrnijg0HjGl_JvWzyEQiSFbeNQ31lZNJ5tWchaHI6JKb71b0M_dubvwFywV5q1uGdCLHAoCBAOFn3pUEMN",
"domain": "www.kvue.com",
"cited": true,
"position": 547
},
...
],
"links_attached": [],
"model": "2.5 Flash"
}
Copy
{
"url": "https://copilot.microsoft.com/chats/G7TZeFAA3dMces2Cb5J3N",
"prompt": "what is the news today in Austin",
"answer_markdown": "Here’s a roundup of today’s top stories from Austin: 🕵️♀️ \\*\\*Homicide Investigation in North Austin\\*\\* Police have identified 43-year-old Mary Gonzales as the woman found dead behind a business on Research Boulevard. A suspect, 21-year-old ...",
"sources": [
{
"url": "https://www.msn.com/en-us/news/crime/woman-found-dead-behind-north-austin-business-identified-suspect-arrested/ar-AA1ObaMU",
"title": "Woman found dead behind North Austin business identified; suspect arrested",
"position": 319,
"icon_url": "https://bing.com/th?id=ODF.OqKj0UXQrBuruO-UTVHpog&pid=news"
},
{
"url": "https://www.msn.com/en-us/news/crime/police-investigating-after-suspicious-package-found-at-austins-airport/ar-AA1Ob39x",
"title": "Police investigating after suspicious package found at Austin's airport",
"position": 555,
"icon_url": "https://bing.com/th?id=ODF.gqIzXwnbG1WCLoQ1tpisag&pid=news"
},
...
]
}
Copy
{
"url": "https://grok.com/",
"prompt": "what is the news today in Austin",
"answer_markdown": "### \n\nlatest news in Austin TX today Searched for \"latest news in Austin TX today\" \n\n10 posts \n\n### \n\nAustin since:2025-10-10 until:2025-10-11 filter:news Searched for \"Austin since:2025-10-10 until:2025-10-11 filter:news\" \n\n10 posts \n\n### \n\nAustin Texas news October 10 2025 Searched for \"Austin Texas news October 10 2025\" \n\n15 results \n\n### Top News Stories in Austin, TX – October 10, 2025\n\nHere's a roundup of the latest developments from local sources, focusing on key events, weather...",
"sources": [
{
"url": "https://www.austinchronicle.com/issues/october-10-2025/",
"title": "October 10 • 2025 - The Austin Chronicle",
"description": "To be clear, by “a good deal,” I don’t mean “rock-bottom prices.” I’m talking about a meal that’s completely worth the cash, both in terms of quality and quantity. And at Le Calamar, a new South First spot that specializes in Texan… ... Proposition Quit Dear Editor, Regarding the recent article in The Austin Chronicle [“Higher Taxes Are on the Ballot. City Leaders Explain What They’ll Get Us,” News, Sept.",
"icon": "https://imgs.search.brave.com/IIGvOiGOT-2BIUALAC8jt1l2gfEyH5C1RNDmZTaKBM8/rs:fit:32:32:1:0/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvMDQ5NWE3OTli/MzYxZmI5MTBmMTA4/MzNlOTI1NTY3M2Nm/ZTYyMWYyYWI5OTEz/MTJlYzAwNWJjNjg3/ZTZhOWQ4OC93d3cu/YXVzdGluY2hyb25p/Y2xlLmNvbS8",
"domain": "https://www.austinchronicle.com/",
"cited": true
},
{
"url": "https://www.austinchronicle.com/",
"title": "Home - The Austin Chronicle",
"description": "Current Issue October 10 • 2025 Vol. 45 • No. 6 Special Issues Best of Austin Austin Music Awards SXSW The 420 Issue The Burger Issue The Drinks Issue Newsletters Photo Galleries SUPPORT FREE PRESS.SUPPORT THE AUSTIN CHRONICLE. For over 40 years, The Austin Chronicle has been the progressive voice of Austin.",
"icon": "https://imgs.search.brave.com/IIGvOiGOT-2BIUALAC8jt1l2gfEyH5C1RNDmZTaKBM8/rs:fit:32:32:1:0/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvMDQ5NWE3OTli/MzYxZmI5MTBmMTA4/MzNlOTI1NTY3M2Nm/ZTYyMWYyYWI5OTEz/MTJlYzAwNWJjNjg3/ZTZhOWQ4OC93d3cu/YXVzdGluY2hyb25p/Y2xlLmNvbS8",
"domain": "https://www.austinchronicle.com/",
"cited": true
},
],
"xposts": [
{
"post_url": "https://x.com/EugeneAustin/status/1976621075090878962",
"username": "EugeneAustin",
"name": "Eugene Sepulveda",
"text": "👏🏽👏🏽👏🏽 Nobel Peace Prize 2025 live updates: Venezuelan opposition leader María Corina Machado wins [She is standing up for the people of her country as opposed to Donald Trump who’s deploying troops against his own] https://t.co/tVQ2jxH41J",
"create_time": "2025-10-10T12:09:22Z",
"profile_image_url": "https://pbs.twimg.com/profile_images/1908632830118068224/xO8hj6PK_normal.jpg",
"post_id": "1976621075090878962",
"view_count": 25
},
{
"post_url": "https://x.com/TheSteelersWire/status/1976608836657029234",
"username": "TheSteelersWire",
"name": "Steelers Wire",
"text": "Steelers injury update: Will Calvin Austin III play vs the Browns? https://t.co/1eGS7g2xYz https://t.co/17krn8un1N",
"create_time": "2025-10-10T11:20:44Z",
"profile_image_url": "https://pbs.twimg.com/profile_images/1607062294046941191/UBv9QEQW_normal.jpg",
"post_id": "1976608836657029234",
"view_count": 462
},
],
"model": "grok-4-auto"
}
Pricing and Geolocation Matrix
The following table outlines the support for country-specific search and the credits consumed by each parser.| Feature | Google AI Mode | ChatGPT | Perplexity | Google AI Overview | Gemini | Microsoft Copilot | Grok |
|---|---|---|---|---|---|---|---|
| Country Supported | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
| Batch Size Limit | 2500 | 2500 | 2500 | 2500 | 2500 | 1000 | 1000 |
| Credits | 3 | 5 | 3 | 3 | 3 | 3 | 3 |
| Price per 1k requests | $1.17 | $1.95 | $1.17 | $1.17 | $1.17 | $1.17 | $1.17 |
[email protected] for support or custom implementation assistance.