We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/BACH-AI-Tools/weatherapi_com'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
openapi.json•16.7 kB
{
"openapi": "3.0.0",
"info": {
"title": "Weatherapi Com",
"version": "1.0.0",
"description": "RapidAPI: weatherapi/weatherapi-com"
},
"servers": [
{
"url": "https://weatherapi-com.p.rapidapi.com"
}
],
"paths": {
"/alerts.json": {
"get": {
"summary": "Alerts API",
"description": "Alerts API returns alerts and warnings issued by government agencies (USA, UK, Europe and Rest of the World) as an array if available for the location provided.",
"operationId": "alerts_api",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Example value: london",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/future.json": {
"get": {
"summary": "Future Weather API",
"description": "Future weather API method returns weather in a 3 hourly interval in future for a date between 14 days and 300 days from today in the future.",
"operationId": "future_weather_api",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "lang",
"in": "query",
"required": false,
"description": "Returns 'condition:text' field in API in the desired language",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "dt",
"in": "query",
"required": true,
"description": "'dt' should be between 14 days and 300 days from today in the future in yyyy-MM-dd format (i.e. dt=2023-01-01)",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/current.json": {
"get": {
"summary": "Realtime Weather API",
"description": "Current weather or realtime weather API method allows a user to get up to date current weather information in json and xml. The data is returned as a Current Object.",
"operationId": "realtime_weather_api",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/sports.json": {
"get": {
"summary": "Sports API",
"description": "Sports API method allows a user to get listing of all upcoming sports events for football, cricket and golf in json.",
"operationId": "sports_api",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Example value: London",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/astronomy.json": {
"get": {
"summary": "Astronomy API",
"description": "Astronomy API method allows a user to get up to date information for sunrise, sunset, moonrise, moonset, moon phase and illumination in json.",
"operationId": "astronomy_api",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "dt",
"in": "query",
"required": false,
"description": "Date",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/search.json": {
"get": {
"summary": "Search/Autocomplete API",
"description": "Search or Autocomplete API returns matching cities and towns.",
"operationId": "search/autocomplete_api",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/marine.json": {
"get": {
"summary": "Marine Weather API",
"description": "Marine weather API returns upto next 7 day marine and sailing weather forecast and tide data for global marine/sea points.",
"operationId": "marine_weather_api",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "days",
"in": "query",
"required": false,
"description": "Example value: 1",
"schema": {
"type": "number",
"default": "1",
"enum": null
}
},
{
"name": "lang",
"in": "query",
"required": false,
"description": "Example value: ",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/history.json": {
"get": {
"summary": "History Weather API",
"description": "History weather API method returns historical weather for a date on or after 1st Jan, 2010 (depending upon subscription level) as json.",
"operationId": "history_weather_api",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "lang",
"in": "query",
"required": false,
"description": "Returns 'condition:text' field in API in the desired language",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "hour",
"in": "query",
"required": false,
"description": "Restricting history output to a specific hour in a given day.",
"schema": {
"type": "number",
"default": "0",
"enum": null
}
},
{
"name": "dt",
"in": "query",
"required": true,
"description": "For history API 'dt' should be on or after 1st Jan, 2010 in yyyy-MM-dd format",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "end_dt",
"in": "query",
"required": false,
"description": "Restrict date output for History API method. Should be on or after 1st Jan, 2010. Make sure end_dt is equal to or greater than 'dt'.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/forecast.json": {
"get": {
"summary": "Forecast Weather API",
"description": "Forecast weather API method returns upto next 14 day weather forecast and weather alert as json. It contains astronomy data, day weather forecast and hourly interval weather information for a given city.",
"operationId": "forecast_weather_api",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "days",
"in": "query",
"required": false,
"description": "Number of days of forecast required.",
"schema": {
"type": "number",
"default": "3",
"enum": null
}
},
{
"name": "lang",
"in": "query",
"required": false,
"description": "Returns 'condition:text' field in API in the desired language",
"schema": {
"type": "string",
"default": null,
"enum": null
}
},
{
"name": "dt",
"in": "query",
"required": false,
"description": "If passing 'dt', it should be between today and next 10 day in yyyy-MM-dd format.",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/ip.json": {
"get": {
"summary": "IP Lookup API",
"description": "IP Lookup API method allows a user to get up to date information for an IP address in json.",
"operationId": "ip_lookup_api",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/timezone.json": {
"get": {
"summary": "Time Zone API",
"description": "Time Zone API method allows a user to get up to date time zone and local time information in json.",
"operationId": "time_zone_api",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1",
"schema": {
"type": "string",
"default": null,
"enum": null
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
}
},
"components": {
"securitySchemes": {
"ApiAuth": {
"type": "apiKey",
"in": "header",
"name": "X-RapidAPI-Key"
}
}
},
"security": [
{
"ApiAuth": []
}
]
}