# Calendar islamic prayer times API

Get Calendar Prayer Times data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, and retrieve structured data including resolved location time zone, asr calculation school, calculation date, computed Fajr time, and computed Asr time for calendar context, and follow-up calculations.

Documentation: https://openany.si/market/apis/calendar/calendar-islamic-prayer-times-api/?offering=8cb5bd00-a1a8-4966-bb6f-64e989633a79
API ID: 8cb5bd00-a1a8-4966-bb6f-64e989633a79
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/calendar/v1/prayer-times
Page update time: 2026-12-03T02:45:13.647Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:45:11.984Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits used",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Calendar islamic prayer times API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "description": "Latitude. Pass with `lon`; or use `q`, `postal_code` or `geonameid`."
        },
        "lon": {
          "type": "number",
          "description": "Longitude."
        },
        "q": {
          "type": "string",
          "description": "Place name, optionally with region and country: `Cairo`, `Birmingham, GB`."
        },
        "postal_code": {
          "type": "string",
          "description": "Postal code, with `country` (default US)."
        },
        "country": {
          "type": "string",
          "description": "Country for `q` or `postal_code` (ISO code or English name)."
        },
        "geonameid": {
          "type": "integer",
          "description": "GeoNames id of a place (from /geo/v1/cities)."
        },
        "date": {
          "type": "string",
          "description": "First date (YYYY-MM-DD, default today)."
        },
        "days": {
          "type": "integer",
          "description": "Days, 1-31 (default 1)."
        },
        "method": {
          "type": "string",
          "description": "Calculation method (default by country, else MWL).",
          "enum": [
            "mwl",
            "isna",
            "egypt",
            "makkah",
            "karachi",
            "tehran",
            "jafari",
            "gulf",
            "kuwait",
            "qatar",
            "dubai",
            "singapore",
            "jakim",
            "kemenag",
            "turkey",
            "france",
            "russia",
            "tunisia",
            "algeria",
            "morocco",
            "jordan"
          ]
        },
        "school": {
          "type": "string",
          "description": "Asr: `standard` (Shafi, Maliki, Hanbali) or `hanafi` (default by country).",
          "enum": [
            "standard",
            "hanafi"
          ]
        },
        "high_latitude": {
          "type": "string",
          "description": "Rule where twilight never ends: `angle_based` (default), `night_middle`, `one_seventh`, `none`.",
          "enum": [
            "angle_based",
            "night_middle",
            "one_seventh",
            "none"
          ]
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "days": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "asr": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "dhuhr": {
            "type": "string"
          },
          "fajr": {
            "type": "string"
          },
          "hijri": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "day": {
                "type": "integer"
              },
              "month": {
                "type": "integer"
              },
              "month_name": {
                "type": "string"
              },
              "year": {
                "type": "integer"
              }
            }
          },
          "imsak": {
            "type": "string"
          },
          "isha": {
            "type": "string"
          },
          "maghrib": {
            "type": "string"
          },
          "midnight": {
            "type": "string"
          },
          "sunrise": {
            "type": "string"
          },
          "sunset": {
            "type": "string"
          }
        }
      }
    },
    "high_latitude": {
      "type": "string"
    },
    "location": {
      "type": "object",
      "properties": {
        "admin1": {
          "type": "string"
        },
        "admin1_code": {
          "type": "string"
        },
        "admin2": {
          "type": "null"
        },
        "ascii_name": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "country_code": {
          "type": "string"
        },
        "elevation_m": {
          "type": "integer"
        },
        "feature": {
          "type": "string"
        },
        "feature_code": {
          "type": "string"
        },
        "geonameid": {
          "type": "integer"
        },
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        },
        "name": {
          "type": "string"
        },
        "population": {
          "type": "integer"
        },
        "query": {
          "type": "object",
          "properties": {
            "q": {
              "type": "string"
            }
          }
        },
        "timezone": {
          "type": "string"
        }
      }
    },
    "method": {
      "type": "object",
      "properties": {
        "fajr_angle": {
          "type": "number"
        },
        "id": {
          "type": "string"
        },
        "isha": {
          "type": "number"
        },
        "maghrib_angle": {
          "type": "null"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "note": {
      "type": "string"
    },
    "school": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/calendar/v1/prayer-times?output=json&q=Cairo' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "days": [
    {
      "asr": "14:43",
      "date": "2026-11-04",
      "dhuhr": "11:39",
      "fajr": "04:43",
      "hijri": {
        "date": "1448-05-24",
        "day": 24,
        "month": 5,
        "month_name": "Jumada al-Awwal",
        "year": 1448
      },
      "imsak": "04:33",
      "isha": "18:25",
      "maghrib": "17:06",
      "midnight": "23:38",
      "sunrise": "06:10",
      "sunset": "17:06"
    }
  ],
  "high_latitude": "angle_based",
  "location": {
    "admin1": "Cairo",
    "admin1_code": "11",
    "admin2": null,
    "ascii_name": "Cairo",
    "country": "Egypt",
    "country_code": "EG",
    "elevation_m": 23,
    "feature": "capital",
    "feature_code": "PPLC",
    "geonameid": 360630,
    "lat": 30.06263,
    "lon": 31.24967,
    "name": "Cairo",
    "population": 9606916,
    "query": {
      "q": "Cairo"
    },
    "timezone": "Africa/Cairo"
  },
  "method": {
    "fajr_angle": 19.5,
    "id": "egypt",
    "isha": 17.5,
    "maghrib_angle": null,
    "name": "Egyptian General Authority of Survey"
  },
  "note": "Times are computed astronomically from the method's published angles; local mosques may add their own adjustments.",
  "school": "standard"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/calendar/calendar-islamic-prayer-times-api/?offering=8cb5bd00-a1a8-4966-bb6f-64e989633a79

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
