AI/ML API Documentation
API KeyModelsPlaygroundGitHubGet Support
  • 📞Contact Sales
  • 🗯️Send Feedback
  • Quickstart
    • 🧭Documentation Map
    • Setting Up
    • Supported SDKs
  • API REFERENCES
    • 📒All Model IDs
    • Text Models (LLM)
      • AI21 Labs
        • jamba-1-5-mini
      • Alibaba Cloud
        • qwen-max
        • qwen-plus
        • qwen-turbo
        • Qwen2-72B-Instruct
        • Qwen2.5-7B-Instruct-Turbo
        • Qwen2.5-72B-Instruct-Turbo
        • Qwen2.5-Coder-32B-Instruct
        • Qwen-QwQ-32B
        • Qwen3-235B-A22B
      • Anthracite
        • magnum-v4
      • Anthropic
        • Claude 3 Haiku
        • Claude 3.5 Haiku
        • Claude 3 Opus
        • Claude 3 Sonnet
        • Claude 3.5 Sonnet
        • Claude 3.7 Sonnet
      • Cohere
        • command-r-plus
      • DeepSeek
        • DeepSeek V3
        • DeepSeek R1
      • Google
        • gemini-1.5-flash
        • gemini-1.5-pro
        • gemini-2.0-flash-exp
        • gemini-2.0-flash-thinking-exp-01-21
        • gemini-2.0-flash
        • gemini-2.5-flash-preview
        • gemini-2.5-pro-exp
        • gemini-2.5-pro-preview
        • gemma-2
        • gemma-3
      • Gryphe
        • MythoMax-L2-13b-Lite
      • Meta
        • Llama-3-chat-hf
        • Llama-3-8B-Instruct-Lite
        • Llama-3.1-8B-Instruct-Turbo
        • Llama-3.1-70B-Instruct-Turbo
        • Llama-3.1-405B-Instruct-Turbo
        • Llama-3.2-11B-Vision-Instruct-Turbo
        • Llama-3.2-90B-Vision-Instruct-Turbo
        • Llama-Vision-Free
        • Llama-3.2-3B-Instruct-Turbo
        • Llama-3.3-70B-Instruct-Turbo
        • Llama-4-scout
        • Llama-4-maverick
      • MiniMax
        • text-01
        • abab6.5s-chat
      • Mistral AI
        • codestral-2501
        • mistral-nemo
        • mistral-tiny
        • Mistral-7B-Instruct
        • Mixtral-8x22B-Instruct
        • Mixtral-8x7B-Instruct
      • NVIDIA
        • Llama-3.1-Nemotron-70B-Instruct-HF
        • llama-3.1-nemotron-70b
      • NeverSleep
        • llama-3.1-lumimaid
      • NousResearch
        • Nous-Hermes-2-Mixtral-8x7B-DPO
      • OpenAI
        • gpt-3.5-turbo
        • gpt-4
        • gpt-4-preview
        • gpt-4-turbo
        • gpt-4o
        • gpt-4o-mini
        • gpt-4o-audio-preview
        • gpt-4o-mini-audio-preview
        • gpt-4o-search-preview
        • gpt-4o-mini-search-preview
        • o1
        • o1-mini
        • o1-preview
        • o3-mini
        • gpt-4.5-preview
        • gpt-4.1
        • gpt-4.1-mini
        • gpt-4.1-nano
        • o4-mini
      • xAI
        • grok-beta
        • grok-3-beta
        • grok-3-mini-beta
    • Image Models
      • Flux
        • flux-pro
        • flux-pro/v1.1
        • flux-pro/v1.1-ultra
        • flux-realism
        • flux/dev
        • flux/dev/image-to-image
        • flux/schnell
      • Google
        • Imagen 3.0
      • OpenAI
        • DALL·E 2
        • DALL·E 3
      • RecraftAI
        • Recraft v3
      • Stability AI
        • Stable Diffusion v3 Medium
        • Stable Diffusion v3.5 Large
    • Video Models
      • Alibaba Cloud
        • Wan 2.1 (Text-to-Video)
      • Google
        • Veo2 (Image-to-Video)
        • Veo2 (Text-to-Video)
      • Kling AI
        • v1-standard/image-to-video
        • v1-standard/text-to-video
        • v1-pro/image-to-video
        • v1-pro/text-to-video
        • v1.6-standard/text-to-video
        • v1.6-standard/image-to-video
        • v1.6-pro/image-to-video
        • v1.6-pro/text-to-video
        • v1.6-standard/effects
        • v1.6-pro/effects
        • v2-master/image-to-video
        • v2-master/text-to-video
      • Luma AI
        • Text-to-Video v2
        • Text-to-Video v1 (legacy)
      • MiniMax
        • video-01
        • video-01-live2d
      • Runway
        • gen3a_turbo
        • gen4_turbo
    • Music Models
      • MiniMax
        • minimax-music [legacy]
        • music-01
      • Stability AI
        • stable-audio
    • Voice/Speech Models
      • Speech-to-Text
        • stt [legacy]
        • Deepgram
          • nova-2
        • OpenAI
          • whisper-base
          • whisper-large
          • whisper-medium
          • whisper-small
          • whisper-tiny
      • Text-to-Speech
        • Deepgram
          • aura
    • Content Moderation Models
      • Meta
        • Llama-Guard-3-11B-Vision-Turbo
        • LlamaGuard-2-8b
        • Meta-Llama-Guard-3-8B
    • 3D-Generating Models
      • Stability AI
        • triposr
    • Vision Models
      • Image Analysis
      • OCR: Optical Character Recognition
        • Google
          • Google OCR
        • Mistral AI
          • mistral-ocr-latest
      • OFR: Optical Feature Recognition
    • Embedding Models
      • Anthropic
        • voyage-2
        • voyage-code-2
        • voyage-finance-2
        • voyage-large-2
        • voyage-large-2-instruct
        • voyage-law-2
        • voyage-multilingual-2
      • BAAI
        • bge-base-en
        • bge-large-en
      • Google
        • textembedding-gecko
        • text-multilingual-embedding-002
      • OpenAI
        • text-embedding-3-large
        • text-embedding-3-small
        • text-embedding-ada-002
      • Together AI
        • m2-bert-80M-retrieval
  • Solutions
    • Bagoodex
      • AI Search Engine
        • Find Links
        • Find Images
        • Find Videos
        • Find the Weather
        • Find a Local Map
        • Get a Knowledge Structure
    • OpenAI
      • Assistants
        • Assistant API
        • Thread API
        • Message API
        • Run and Run Step API
        • Events
  • Use Cases
    • Create Images: Illustrate an Article
    • Animate Images: A Children’s Encyclopedia
    • Create an Assistant to Discuss a Specific Document
    • Create a 3D Model from an Image
    • Create a Looped GIF for a Web Banner
    • Read Text Aloud and Describe Images: Support People with Visual Impairments
    • Summarize Websites with AI-Powered Chrome Extension
  • Capabilities
    • Completion and Chat Completion
    • Streaming Mode
    • Code Generation
    • Thinking / Reasoning
    • Function Calling
    • Vision in Text Models (Image-To-Text)
    • Web Search
    • Features of Anthropic Models
    • Model comparison
  • FAQ
    • Can I use API in Python?
    • Can I use API in NodeJS?
    • What are the Pro Models?
    • How to use the Free Tier?
    • Are my requests cropped?
    • Can I call API in the asynchronous mode?
    • OpenAI SDK doesn't work?
  • Errors and Messages
    • General Info
    • Errors with status code 4xx
    • Errors with status code 5xx
  • Glossary
    • Concepts
  • Integrations
    • 🧩Our Integration List
    • Langflow
    • LiteLLM
Powered by GitBook
On this page

Was this helpful?

  1. Solutions
  2. Bagoodex
  3. AI Search Engine

Find the Weather

PreviousFind VideosNextFind a Local Map

Last updated 2 months ago

Was this helpful?

Overview

This is a description of one of the six use cases for the AI Search Engine—retrieving a weather forecast for the requested location based on information from the internet.

Provides only an 8-day weather forecast (daily and hourly).

An output example (a fragment)
{
  "type": "weather_result",
  "temperature": "77",
  "unit": "Fahrenheit",
  "precipitation": "10%",
  "humidity": "61%",
  "wind": "6 mph",
  "location": "Delhi, India",
  "date": "Friday",
  "weather": "Partly cloudy",
  "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdc545ed9c61f19c827f0c61fdfb6829e6.png",
  "forecast": [
    {
      "day": "Thursday",
      "temperature": {
        "high": "79",
        "low": "53"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea29a6d5d11c931cb1c6b8961c5a701ac4a.png",
      "weather": "Light rain",
      "humidity": "94%",
      "precipitation": "45%",
      "wind": "8 mph"
    },
    {
      "day": "Friday",
      "temperature": {
        "high": "77",
        "low": "53"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea2db13b12386fa4894bed175a78b1a73d4.png",
      "weather": "Partly cloudy",
      "humidity": "61%",
      "precipitation": "10%",
      "wind": "6 mph"
    },
    {
      "day": "Saturday",
      "temperature": {
        "high": "75",
        "low": "52"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea237f4cdb1738823c11db9661a9008b26b.png",
      "weather": "Partly cloudy",
      "humidity": "61%",
      "precipitation": "10%",
      "wind": "8 mph"
    },
    {
      "day": "Sunday",
      "temperature": {
        "high": "78",
        "low": "51"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea231f7bed0f82344fc6f02aff2997c4fbf.png",
      "weather": "Sunny",
      "humidity": "57%",
      "precipitation": "0%",
      "wind": "7 mph"
    },
    {
      "day": "Monday",
      "temperature": {
        "high": "81",
        "low": "54"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea2487fa0071c8c05c5d8cab80602121baf.png",
      "weather": "Mostly sunny",
      "humidity": "53%",
      "precipitation": "0%",
      "wind": "6 mph"
    },
    {
      "day": "Tuesday",
      "temperature": {
        "high": "83",
        "low": "58"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea2672ffbd0b88fdead232eb139fe4be010.png",
      "weather": "Partly cloudy",
      "humidity": "52%",
      "precipitation": "10%",
      "wind": "7 mph"
    },
    {
      "day": "Wednesday",
      "temperature": {
        "high": "89",
        "low": "64"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea24e9a609cde5258c4721caaca9f044f2b.png",
      "weather": "Mostly cloudy",
      "humidity": "40%",
      "precipitation": "10%",
      "wind": "5 mph"
    },
    {
      "day": "Thursday",
      "temperature": {
        "high": "87",
        "low": "65"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea2bf3a11e7710bbb1110889fa0b00f8ffd.png",
      "weather": "Cloudy",
      "humidity": "46%",
      "precipitation": "10%",
      "wind": "7 mph"
    }
  ],
  "hourly_forecast": [
    {
      "time": "Thursday 9:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "62",
      "precipitation": "5%",
      "humidity": "94%",
      "wind": "8 mph"
    },
    {
      "time": "Thursday 10:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "61",
      "precipitation": "15%",
      "humidity": "96%",
      "wind": "8 mph"
    },
    {
      "time": "Thursday 11:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny_s_cloudy.png",
      "weather": "Clear with periodic clouds",
      "temperature": "60",
      "precipitation": "15%",
      "humidity": "95%",
      "wind": "8 mph"
    },
    {
      "time": "Friday 12:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny_s_cloudy.png",
      "weather": "Clear with periodic clouds",
      "temperature": "59",
      "precipitation": "0%",
      "humidity": "95%",
      "wind": "7 mph"
    },
    {
      "time": "Friday 1:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny_s_cloudy.png",
      "weather": "Clear with periodic clouds",
      "temperature": "58",
      "precipitation": "0%",
      "humidity": "96%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 2:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Clear",
      "temperature": "57",
      "precipitation": "0%",
      "humidity": "98%",
      "wind": "5 mph"
    },
    {
      "time": "Friday 3:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Clear",
      "temperature": "56",
      "precipitation": "0%",
      "humidity": "97%",
      "wind": "5 mph"
    },
    {
      "time": "Friday 4:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Clear",
      "temperature": "55",
      "precipitation": "0%",
      "humidity": "96%",
      "wind": "4 mph"
    },
    {
      "time": "Friday 5:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Clear",
      "temperature": "54",
      "precipitation": "0%",
      "humidity": "96%",
      "wind": "4 mph"
    },
    {
      "time": "Friday 6:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Clear",
      "temperature": "53",
      "precipitation": "0%",
      "humidity": "100%",
      "wind": "4 mph"
    },
    {
      "time": "Friday 7:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Sunny",
      "temperature": "54",
      "precipitation": "0%",
      "humidity": "99%",
      "wind": "3 mph"
    },
    {
      "time": "Friday 8:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Sunny",
      "temperature": "56",
      "precipitation": "0%",
      "humidity": "99%",
      "wind": "2 mph"
    },
    {
      "time": "Friday 9:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Sunny",
      "temperature": "61",
      "precipitation": "0%",
      "humidity": "86%",
      "wind": "2 mph"
    },
    {
      "time": "Friday 10:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Sunny",
      "temperature": "67",
      "precipitation": "0%",
      "humidity": "71%",
      "wind": "2 mph"
    },
    {
      "time": "Friday 11:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Sunny",
      "temperature": "73",
      "precipitation": "0%",
      "humidity": "57%",
      "wind": "2 mph"
    },
    {
      "time": "Friday 12:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "76",
      "precipitation": "0%",
      "humidity": "47%",
      "wind": "3 mph"
    },
    {
      "time": "Friday 1:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "77",
      "precipitation": "5%",
      "humidity": "46%",
      "wind": "3 mph"
    },
    {
      "time": "Friday 2:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Mostly cloudy",
      "temperature": "77",
      "precipitation": "10%",
      "humidity": "46%",
      "wind": "4 mph"
    },
    {
      "time": "Friday 3:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "77",
      "precipitation": "5%",
      "humidity": "46%",
      "wind": "5 mph"
    },
    {
      "time": "Friday 4:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "76",
      "precipitation": "5%",
      "humidity": "47%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 5:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Mostly sunny",
      "temperature": "75",
      "precipitation": "0%",
      "humidity": "52%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 6:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "71",
      "precipitation": "5%",
      "humidity": "60%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 7:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Mostly cloudy",
      "temperature": "67",
      "precipitation": "10%",
      "humidity": "72%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 8:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/cloudy.png",
      "weather": "Cloudy",
      "temperature": "63",
      "precipitation": "10%",
      "humidity": "84%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 9:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/cloudy.png",
      "weather": "Cloudy",
      "temperature": "61",
      "precipitation": "10%",
      "humidity": "91%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 10:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/cloudy.png",
      "weather": "Cloudy",
      "temperature": "60",
      "precipitation": "10%",
      "humidity": "95%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 11:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/cloudy.png",
      "weather": "Cloudy",
      "temperature": "59",
      "precipitation": "10%",
      "humidity": "96%",
      "wind": "6 mph"
    },

The output will be the requested information retrieved from the internet—or empty brackets {} if nothing was found or if the entered query does not match the selected search type (for example, querying 'How to get to Mars?' instead of requesting a weather forecast for a specific location).

How to make a call

Check how this call is made in the below.

Note that queries can include advanced search syntax:

  • Search for an exact match: Enter a word or phrase using \" before and after it. For example, \"tallest building\".

  • Search for a specific site: Enter site: in front of a site or domain. For example, site:youtube.com cat videos.

  • Exclude words from your search: Enter - in front of a word that you want to leave out. For example, jaguar speed -car.

API Schema

Example

First, the standard chat completion endpoint with your query is called. It returns an ID, which must then be passed as the sole input parameter followup_id to the specific second endpoint:

import requests
from openai import OpenAI

# Insert your AIML API Key instead of <YOUR_API_KEY>:
API_KEY = '<YOUR_API_KEY>'
API_URL = 'https://api.aimlapi.com'

# Call the standart chat completion endpoint to get an ID
def complete_chat():
    client = OpenAI(
        base_url=API_URL,
        api_key=API_KEY,
    )    

    response = client.chat.completions.create(
        model="bagoodex/bagoodex-search-v1",
        messages=[
            {
                "role": "user",
                "content": "Weather in Delhi tomorrow",
            },
        ],
    )
    
    # Extract the ID from the response
    gen_id = response.id  
    print(f"Generated ID: {gen_id}")
    
    # Call the second endpoint with the generated ID
    get_weather(gen_id)

def get_weather(gen_id):
    params = {'followup_id': gen_id}
    headers = {'Authorization': f'Bearer {API_KEY}'}
    response = requests.get(f'{API_URL}/v1/bagoodex/weather', headers=headers, params=params)
    
    print(response.json())

# Run the function
complete_chat()

Model Response:

An output fragment
{
  "type": "weather_result",
  "temperature": "77",
  "unit": "Fahrenheit",
  "precipitation": "10%",
  "humidity": "61%",
  "wind": "6 mph",
  "location": "Delhi, India",
  "date": "Friday",
  "weather": "Partly cloudy",
  "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdc545ed9c61f19c827f0c61fdfb6829e6.png",
  "forecast": [
    {
      "day": "Thursday",
      "temperature": {
        "high": "79",
        "low": "53"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea29a6d5d11c931cb1c6b8961c5a701ac4a.png",
      "weather": "Light rain",
      "humidity": "94%",
      "precipitation": "45%",
      "wind": "8 mph"
    },
    {
      "day": "Friday",
      "temperature": {
        "high": "77",
        "low": "53"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea2db13b12386fa4894bed175a78b1a73d4.png",
      "weather": "Partly cloudy",
      "humidity": "61%",
      "precipitation": "10%",
      "wind": "6 mph"
    },
    {
      "day": "Saturday",
      "temperature": {
        "high": "75",
        "low": "52"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea237f4cdb1738823c11db9661a9008b26b.png",
      "weather": "Partly cloudy",
      "humidity": "61%",
      "precipitation": "10%",
      "wind": "8 mph"
    },
    {
      "day": "Sunday",
      "temperature": {
        "high": "78",
        "low": "51"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea231f7bed0f82344fc6f02aff2997c4fbf.png",
      "weather": "Sunny",
      "humidity": "57%",
      "precipitation": "0%",
      "wind": "7 mph"
    },
    {
      "day": "Monday",
      "temperature": {
        "high": "81",
        "low": "54"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea2487fa0071c8c05c5d8cab80602121baf.png",
      "weather": "Mostly sunny",
      "humidity": "53%",
      "precipitation": "0%",
      "wind": "6 mph"
    },
    {
      "day": "Tuesday",
      "temperature": {
        "high": "83",
        "low": "58"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea2672ffbd0b88fdead232eb139fe4be010.png",
      "weather": "Partly cloudy",
      "humidity": "52%",
      "precipitation": "10%",
      "wind": "7 mph"
    },
    {
      "day": "Wednesday",
      "temperature": {
        "high": "89",
        "low": "64"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea24e9a609cde5258c4721caaca9f044f2b.png",
      "weather": "Mostly cloudy",
      "humidity": "40%",
      "precipitation": "10%",
      "wind": "5 mph"
    },
    {
      "day": "Thursday",
      "temperature": {
        "high": "87",
        "low": "65"
      },
      "thumbnail": "https://serpapi.com/searches/67b753af5f068c54e9730a02/images/bfaadf278c5af1fdfcd2f19c8fed7ea2bf3a11e7710bbb1110889fa0b00f8ffd.png",
      "weather": "Cloudy",
      "humidity": "46%",
      "precipitation": "10%",
      "wind": "7 mph"
    }
  ],
  "hourly_forecast": [
    {
      "time": "Thursday 9:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "62",
      "precipitation": "5%",
      "humidity": "94%",
      "wind": "8 mph"
    },
    {
      "time": "Thursday 10:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "61",
      "precipitation": "15%",
      "humidity": "96%",
      "wind": "8 mph"
    },
    {
      "time": "Thursday 11:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny_s_cloudy.png",
      "weather": "Clear with periodic clouds",
      "temperature": "60",
      "precipitation": "15%",
      "humidity": "95%",
      "wind": "8 mph"
    },
    {
      "time": "Friday 12:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny_s_cloudy.png",
      "weather": "Clear with periodic clouds",
      "temperature": "59",
      "precipitation": "0%",
      "humidity": "95%",
      "wind": "7 mph"
    },
    {
      "time": "Friday 1:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny_s_cloudy.png",
      "weather": "Clear with periodic clouds",
      "temperature": "58",
      "precipitation": "0%",
      "humidity": "96%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 2:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Clear",
      "temperature": "57",
      "precipitation": "0%",
      "humidity": "98%",
      "wind": "5 mph"
    },
    {
      "time": "Friday 3:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Clear",
      "temperature": "56",
      "precipitation": "0%",
      "humidity": "97%",
      "wind": "5 mph"
    },
    {
      "time": "Friday 4:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Clear",
      "temperature": "55",
      "precipitation": "0%",
      "humidity": "96%",
      "wind": "4 mph"
    },
    {
      "time": "Friday 5:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Clear",
      "temperature": "54",
      "precipitation": "0%",
      "humidity": "96%",
      "wind": "4 mph"
    },
    {
      "time": "Friday 6:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Clear",
      "temperature": "53",
      "precipitation": "0%",
      "humidity": "100%",
      "wind": "4 mph"
    },
    {
      "time": "Friday 7:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Sunny",
      "temperature": "54",
      "precipitation": "0%",
      "humidity": "99%",
      "wind": "3 mph"
    },
    {
      "time": "Friday 8:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Sunny",
      "temperature": "56",
      "precipitation": "0%",
      "humidity": "99%",
      "wind": "2 mph"
    },
    {
      "time": "Friday 9:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Sunny",
      "temperature": "61",
      "precipitation": "0%",
      "humidity": "86%",
      "wind": "2 mph"
    },
    {
      "time": "Friday 10:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Sunny",
      "temperature": "67",
      "precipitation": "0%",
      "humidity": "71%",
      "wind": "2 mph"
    },
    {
      "time": "Friday 11:00 AM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/sunny.png",
      "weather": "Sunny",
      "temperature": "73",
      "precipitation": "0%",
      "humidity": "57%",
      "wind": "2 mph"
    },
    {
      "time": "Friday 12:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "76",
      "precipitation": "0%",
      "humidity": "47%",
      "wind": "3 mph"
    },
    {
      "time": "Friday 1:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "77",
      "precipitation": "5%",
      "humidity": "46%",
      "wind": "3 mph"
    },
    {
      "time": "Friday 2:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Mostly cloudy",
      "temperature": "77",
      "precipitation": "10%",
      "humidity": "46%",
      "wind": "4 mph"
    },
    {
      "time": "Friday 3:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "77",
      "precipitation": "5%",
      "humidity": "46%",
      "wind": "5 mph"
    },
    {
      "time": "Friday 4:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "76",
      "precipitation": "5%",
      "humidity": "47%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 5:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Mostly sunny",
      "temperature": "75",
      "precipitation": "0%",
      "humidity": "52%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 6:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Partly cloudy",
      "temperature": "71",
      "precipitation": "5%",
      "humidity": "60%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 7:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png",
      "weather": "Mostly cloudy",
      "temperature": "67",
      "precipitation": "10%",
      "humidity": "72%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 8:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/cloudy.png",
      "weather": "Cloudy",
      "temperature": "63",
      "precipitation": "10%",
      "humidity": "84%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 9:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/cloudy.png",
      "weather": "Cloudy",
      "temperature": "61",
      "precipitation": "10%",
      "humidity": "91%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 10:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/cloudy.png",
      "weather": "Cloudy",
      "temperature": "60",
      "precipitation": "10%",
      "humidity": "95%",
      "wind": "6 mph"
    },
    {
      "time": "Friday 11:00 PM",
      "thumbnail": "https://ssl.gstatic.com/onebox/weather/64/cloudy.png",
      "weather": "Cloudy",
      "temperature": "59",
      "precipitation": "10%",
      "humidity": "96%",
      "wind": "6 mph"
    },
example
get
Authorizations
Query parameters
followup_idstringRequired
Responses
default
application/json
get
GET /v1/bagoodex/weather HTTP/1.1
Host: api.aimlapi.com
Authorization: Bearer <YOUR_AIMLAPI_KEY>
Accept: */*
default
{
  "type": "text",
  "temperature": "text",
  "unit": "text",
  "precipitation": "text",
  "humidity": "text",
  "wind": "text",
  "location": "text",
  "date": "text",
  "weather": "text",
  "thumbnail": "https://example.com",
  "forecast": [
    {
      "day": "text",
      "temperature": {
        "high": "text",
        "low": "text"
      },
      "thumbnail": "https://example.com",
      "weather": "text",
      "humidity": "text",
      "precipitation": "text",
      "wind": "text"
    }
  ],
  "hourly_forecast": [
    {
      "time": "text",
      "thumbnail": "https://example.com",
      "weather": "text",
      "temperature": "text",
      "precipitation": "text",
      "humidity": "text",
      "wind": "text"
    }
  ],
  "precipitation_forecast": [
    {
      "precipitation": "text",
      "day": "text",
      "time": "text"
    }
  ],
  "wind_forecast": [
    {
      "angle": 1,
      "direction": "text",
      "speed": "text",
      "time": "text"
    }
  ],
  "sources": [
    {
      "title": "text",
      "link": "https://example.com"
    }
  ]
}
  • Overview
  • How to make a call
  • API Schema
  • GET/v1/bagoodex/weather
  • Example