using gemini batch api to fill in a database of app links (ios and android) for number of banks in europe. when i use web interface, i get very good result.
when i curl api or do batch requests, i mostly get outdated links. my request is below. i tried both
(1) just using google search as a tool
(2) using url context and feeding specific url
curl “https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent”
-H “x-goog-api-key: $API_KEY”
-H “Content-Type: application/json”
-d ‘{
“contents”: [
{
“parts”: [
{
“text”: “Find the official iOS and Android app links on the following website: Search for keywords like “app store”, “Google Play”. Provide direct links to the store listings.”
}
]
}
],
“tools”: [
{
“url_context”: {}
},
{
“google_search”: {}
}
],
“generationConfig”: {
“temperature”: 0.1
}
}’