# Google Maps Store Photo Monitor API (`uplifted_virtue/google-maps-store-photo-monitor`) Actor

Use case: Zincir restoranlar, bayiler ve franchise ekipleri Google Maps'teki şube fotoğraflarını düzenli izleyip eski, hatalı veya marka dışı görselleri hızlıca tespit eder. Hedef kullanıcı: Multi-location işletmeler, yerel SEO ajansları ve itibar yönetimi ekipleri. Neden para kazandırır:

- **URL**: https://apify.com/uplifted\_virtue/google-maps-store-photo-monitor.md
- **Developed by:** [Deniz Berk Polat](https://apify.com/uplifted_virtue) (community)
- **Categories:** Developer tools
- **Stats:** 0 total users, 0 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Google Maps Store Photo Monitor API

### Ne Yapar?
Her sabah aynı sayfaları açıp fiyat, yorum ya da içerik değişimini elle takip etmekten yorulduysanız, bu API tam bu işi sizin yerinize üstlenir. `Google Maps Store Photo Monitor API` canlı kaynaktan veri çeker, temizler ve tek bir cevapta size sunar. Ekipler bu çıktıyı alarm, dashboard veya otomasyon akışlarına doğrudan bağlayabilir.

### Neden Bu API?
Çoğu ekip veri toplamak için ya manuel kontrol yapar ya da kırılgan betikleri sürekli yamalar. Bu da günde saatler kaybettirir. Bu API ile aynı işi saniyeler içinde tekrarlanabilir hale getirirsiniz: geliştirici ekibi “site değişti mi?” sorusuyla uğraşmaz, ürün ve büyüme ekipleri kararını canlı veriye göre verir. Pratikte günde 2-3 saatlik takip işini birkaç saniyelik çağrıya indirirsiniz.

### Hızlı Başlangıç (Quick Start)
#### Adım 1: API Key Al
Apify hesabınızdan bir `APIFY_TOKEN` oluşturun.

#### Adım 2: İlk İstek
```bash
curl -X POST "https://api.apify.com/v2/acts/ACTOR_ID/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/"}'
````

#### Adım 3: Yanıtı Yorumla

Dönüşte gelen `request_id` izleme için kullanılır. `items` alanı canlı kaynaktan çıkarılmış satırları içerir.

### Endpoint Referansı

| Endpoint | Method | Ne Alır | Ne Döndürür | Ne Zaman Kullanılır |
| --- | --- | --- | --- | --- |
| `/v1/health` | GET | Parametre gerekmez | Servis canlılık bilgisi | Uptime kontrolü |
| `/v1/metrics` | GET | Parametre gerekmez | Çağrı/metrik özeti | Operasyon izleme |
| `/v1/query` | POST | `query` veya `url` | Temizlenmiş veri listesi | Canlı veri çekme |

### Örnek İstek ve Yanıt

```json
// İstek
{"url":"https://example.com/","limit":10}
// Yanıt
{
  "request_id": "req-20260504-001",
  "items": [
    {"title": "Example Domain", "url": "https://example.com/", "source": "html:h1"}
  ],
  "source_timestamp": "2026-05-04T12:00:00+00:00",
  "errors": []
}
```

### Hata Kodları

| Kod | Ne Anlama Gelir | Ne Yapmalısınız |
| --- | --- | --- |
| `INVALID_INPUT` | URL veya query geçersiz | Girdi formatını kontrol edin, `http/https` kullanın |
| `RATE_LIMITED` | Çok hızlı istek atıldı | 1 saniye bekleyip tekrar deneyin; toplu çağrıda batch kullanın |
| `UPSTREAM_FAILURE` | Kaynak site/API geçici hata verdi | Retry uygulayın, 2-3 deneme yapın |
| `INTERNAL_ERROR` | Beklenmeyen servis hatası | `request_id` ile log kaydı açın |

### Fiyatlandırma

Ücretsiz planda ayda 100 istekle ürünü rahatça denersiniz. Düzenli kullanım için $9.99/ay seviyesi çoğu orta ölçekli proje için yeterli olur. Trafik büyürse istek başı veya daha yüksek planlara geçebilirsiniz.

### Destek ve Sınırlar

Rate limit: 60/dk, burst 20. Cache TTL: 900 saniye. Retry: max\_attempts=3, backoff\_ms=\[200, 500, 1200].

### Çalıştırma

```bash
python3 src/main.py
```

### Test

```bash
python3 -m unittest discover -s tests -p "test_*.py" -v
```

# Actor input Schema

## `query` (type: `string`):

Primary search parameter.

## `region` (type: `string`):

Target region (e.g. global, us, tr).

## `limit` (type: `integer`):

Max results to return.

## Actor input object example

```json
{
  "region": "global",
  "limit": 25
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("uplifted_virtue/google-maps-store-photo-monitor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("uplifted_virtue/google-maps-store-photo-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call uplifted_virtue/google-maps-store-photo-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=uplifted_virtue/google-maps-store-photo-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Store Photo Monitor API",
        "description": "Use case: Zincir restoranlar, bayiler ve franchise ekipleri Google Maps'teki şube fotoğraflarını düzenli izleyip eski, hatalı veya marka dışı görselleri hızlıca tespit eder. Hedef kullanıcı: Multi-location işletmeler, yerel SEO ajansları ve itibar yönetimi ekipleri. Neden para kazandırır: ",
        "version": "0.0",
        "x-build-id": "M1TBaU3Ahb3WXyapu"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/uplifted_virtue~google-maps-store-photo-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-uplifted_virtue-google-maps-store-photo-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/uplifted_virtue~google-maps-store-photo-monitor/runs": {
            "post": {
                "operationId": "runs-sync-uplifted_virtue-google-maps-store-photo-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/uplifted_virtue~google-maps-store-photo-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-uplifted_virtue-google-maps-store-photo-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "query"
                ],
                "properties": {
                    "query": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Primary search parameter."
                    },
                    "region": {
                        "title": "Region",
                        "type": "string",
                        "description": "Target region (e.g. global, us, tr).",
                        "default": "global"
                    },
                    "limit": {
                        "title": "Result Limit",
                        "type": "integer",
                        "description": "Max results to return.",
                        "default": 25
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
