# Sample merchant coverage

Sample bounded delivery points and deduplicate observed merchant IDs, preserving point-specific locality, PIN, fulfillment and ETA. Reports sampling limits and request counts.

- Platform: [Blinkit](https://docs.upscrape.com/docs/platforms/blinkit)
- Capability ID: `blinkit.merchant.coverage`
- 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 --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "bounds": {
      "east": 77.6,
      "north": 12.872,
      "south": 12.87,
      "west": 77.598
    },
    "grid_step_km": 5,
    "sampling_limit": 1
  },
  "capability": "blinkit.merchant.coverage"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bounds` | `object` | Yes |  |
| `bounds.east` | `number` | Yes | From -180 to 180. |
| `bounds.north` | `number` | Yes | From -85 to 85. |
| `bounds.south` | `number` | Yes | From -85 to 85. |
| `bounds.west` | `number` | Yes | From -180 to 180. |
| `grid_step_km` | `number` | No | From 1.5 to 20. Default: `5`. |
| `sampling_limit` | `integer` | No | From 1 to 200. Default: `25`. |

### Example input

```json
{
  "bounds": {
    "east": 77.6,
    "north": 12.872,
    "south": 12.87,
    "west": 77.598
  },
  "grid_step_km": 5,
  "sampling_limit": 1
}
```

## 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
{
  "results": [
    {
      "merchant_id": "35940",
      "observations": [
        {
          "city": "Bengaluru",
          "fulfillment": [
            {
              "eta_minutes": 10,
              "type": "instant"
            }
          ],
          "latitude": 12.87,
          "locality": "Hulimavu",
          "longitude": 77.6,
          "observed_at": "2026-10-02T00:00:00Z",
          "pincode": "560076",
          "source": "eta_map_v2"
        }
      ]
    }
  ],
  "sampling": {
    "attempted_points": 1,
    "bounds": {
      "east": 77.6,
      "north": 12.872,
      "south": 12.87,
      "west": 77.598
    },
    "completed_points": 1,
    "coordinates_scope": "sampled_delivery_points",
    "elapsed_ms": 0,
    "grid_complete": false,
    "grid_points": 4,
    "grid_step_km": 5,
    "max_request_count": 2,
    "points": [
      {
        "latitude": 12.87,
        "longitude": 77.6,
        "observed_at": "2026-10-02T00:00:00Z",
        "status": "serviceable"
      }
    ],
    "request_count": 2,
    "selected_points": 1,
    "serviceable_points": 1,
    "stop_reason": "sampling_limit"
  }
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `results` | `array` | 1 items |
| `results` | `array` | 1 items |
| `sampling` | `object` | 14 fields |
| `sampling.attempted_points` | `integer` | 1 |
| `sampling.bounds` | `object` | 4 fields |
| `sampling.completed_points` | `integer` | 1 |
| `sampling.coordinates_scope` | `string` | sampled_delivery_points |
| `sampling.elapsed_ms` | `integer` | 0 |
| `sampling.grid_complete` | `boolean` | false |
| `sampling.grid_points` | `integer` | 4 |
| `sampling.grid_step_km` | `integer` | 5 |
| `sampling.max_request_count` | `integer` | 2 |
| `sampling.points` | `array` | 1 items |
| `sampling.request_count` | `integer` | 2 |
| `sampling.selected_points` | `integer` | 1 |
| `sampling.serviceable_points` | `integer` | 1 |
| `sampling.stop_reason` | `string` | sampling_limit |

## 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.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
