Skip to main content
Glama
test_query_weather.py370 B
import os import requests from dotenv import load_dotenv load_dotenv() def query_weather(): url = "https://restapi.amap.com/v3/weather/weatherInfo" request_data = { "city": 110101, "key": os.getenv("AMAP_KEY") } response = requests.get(url, params=request_data) print(response.json()) if __name__ == "__main__": query_weather()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Francis235/amap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server