# Health Check

Run a Zepto liveness check across location, catalog, search, and ad surfaces.

- Platform: [Zepto](https://docs.upscrape.com/docs/platforms/zepto)
- Capability ID: `zepto.health`
- Cost: 1 credit per request
- Maximum runtime: 180 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl -X POST https://data.upscrape.com/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"latitude":12.96902,"longitude":77.75395},"capability":"zepto.health"}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `latitude` | `number` | No | Latitude for location-based health check. |
| `longitude` | `number` | No | Longitude for location-based health check. |

### Example input

```json
{
  "latitude": 12.96902,
  "longitude": 77.75395
}
```

## Response

Successful output is returned in `results[0].data`. Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This redacted fixture is an example, not a fixed response schema.

```json
{
  "ads_category_count": 1,
  "ads_category_ok": true,
  "ads_home_count": 1,
  "ads_home_ok": true,
  "categories_count": 238,
  "categories_ok": true,
  "first_error": "parse error: decode JSON: unexpected end of JSON input",
  "location_ok": true,
  "location_store_id": "b4dc8d65-ed2e-4142-81b6-373982b13500",
  "status": "degraded"
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `ads_category_count` | `integer` | 1 |
| `ads_category_ok` | `boolean` | true |
| `ads_home_count` | `integer` | 1 |
| `ads_home_ok` | `boolean` | true |
| `categories_count` | `integer` | 238 |
| `categories_ok` | `boolean` | true |
| `first_error` | `string` | parse error: decode JSON: unexpected end of JSON input |
| `location_ok` | `boolean` | true |
| `location_store_id` | `string` | b4dc8d65-ed2e-4142-81b6-373982b13500 |
| `status` | `string` | degraded |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

See [jobs and results](https://docs.upscrape.com/docs/api/jobs), [errors and retries](https://docs.upscrape.com/docs/api/errors), and [idempotency](https://docs.upscrape.com/docs/api/idempotency).

## Machine-readable contract

- [Capability OpenAPI 3.1](https://docs.upscrape.com/docs/platforms/zepto/zepto.health/openapi.json)
- [Platform OpenAPI 3.1](https://upscrape.com/scrapers/zepto/openapi.json)
- [Focused coding-agent prompt](https://upscrape.com/scrapers/zepto/capabilities/zepto.health/llm.md)
