QWeather Astronomy Moon And Phase

1 credits/call
ae_qweather_astronomy_moon_and_phase

Get moonrise, moonset, and hourly moon phase data for a specific location and date.

Weather
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
datestringYesSet the date, up to 60 days in the future (including today). The date format is yyyyMMdd. Example: `date=20200531`—
langstringNoLanguage setting. See [Language](https://dev.qweather.com/en/docs/resource/language/) for behavior, configuration, and data availability—
locationstringYesThe location to be queried, support [LocationID](https://dev.qweather.com/en/docs/resource/glossary/#locationid) or comma-separated [longitude and latitude](https://dev.qweather.com/en/docs/resource/glossary/#coordinate) (decimal, up to 2 decimal places), LocationID can be obtained by [GeoAPI](https://dev.qweather.com/en/docs/api/geoapi/). Example: `location=101010100` or `location=116.41,39.92`—

Invocation example

Parameter template

Generated from the parameter configuration. Replace the sample values before use.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_qweather_astronomy_moon_and_phase' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "date": "20200531",
    "location": "116.41,39.92"
  }
}'

No response example available yet.