---
title: "v2/Prayer Time by GPS"
method: GET
path: "/v2/solat/gps/{lat}/{long}"
tags: ["SOLAT V2"]
---

# v2/Prayer Time by GPS

`GET /v2/solat/gps/{lat}/{long}`

Return the prayer times in a specific month with automatic zone detection based on GPS coordinates.

## Query parameters

- `year` integer — The year. Defaults to current year.
- `month` integer — The month number. 1 => January, 2 => February etc. Defaults to current month.

## Response `200`

- object
  - `zone` string
  - `year` integer
  - `month` string
  - `month_number` integer
  - `last_updated` string, nullable
  - `prayers` object[]
    - `day` integer
    - `hijri` string
    - `imsak` integer
    - `fajr` integer
    - `syuruk` integer
    - `dhuha` integer
    - `dhuhr` integer
    - `asr` integer
    - `maghrib` integer
    - `isha` integer

## Other responses

- `404` — Data not found
- `422` — Invalid parameters.
- `500` — Internal server error.

---

[API](https://skmtc.dev/waktusolat/apis/waktu-solat-api-documentation.md) · [All operations](https://skmtc.dev/waktusolat/apis/waktu-solat-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/waktusolat/apis/waktu-solat-api-documentation/revisions/7af3267e3492?raw)
