# Real Time Data API
Source: https://docs.dappier.com/real-time-data-api



#### About

Dappier’s Real Time Data model can help you access real-time google web search results including the latest news, weather, travel, deals and more.

You first need the API key to access this API. Please visit [Dappier Platform](https://platform.dappier.com) to sign up and create an API key under Settings > Profile > API Keys.

#### Using Real Time Data API

<CodeGroup>
  ```python Python theme={null}
  import requests
  import json

  url = "https://api.dappier.com/app/aimodel/am_01j06ytn18ejftedz6dyhz2b15"

  payload = json.dumps({
    "query": "What is the weather in Austin today?"
  })
  headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer <YOUR_DAPPIER_API_KEY>'
  }

  response = requests.request("POST", url, headers=headers, data=payload)

  print(response.text)
  ```

  ```bash Go theme={null}
  package main

  import (
  "fmt"
  "io"
  "net/http"
  "strings"
  )

  func main() {
      url := "https://api.dappier.com/app/aimodel/am_01j06ytn18ejftedz6dyhz2b15"
      apiKey := "<YOUR_DAPPIER_API_KEY>"
      query := `{"query": "What is the weather in Austin today?"}`

      req, _ := http.NewRequest("POST", url, strings.NewReader(query))
      req.Header.Set("Content-Type", "application/json")
      req.Header.Set("Authorization", "Bearer "+apiKey)

      resp, _ := http.DefaultClient.Do(req)
      defer resp.Body.Close()
      body, _ := io.ReadAll(resp.Body)

      fmt.Println(string(body))
  }

  ```

  ```bash cURL theme={null}
  curl -L 'https://api.dappier.com/app/aimodel/am_01j06ytn18ejftedz6dyhz2b15' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <YOUR_DAPPIER_API_KEY>' \
  -d '{"query": "What is the weather in Austin today?"}'
  ```
</CodeGroup>

```json response theme={null}
{
    "message": "Hey there! The weather in Austin today is a pleasant 64°F. Looks like a great day to enjoy some outdoor activities! 🌤️"
}
```