Skip to main content

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 to sign up and create an API key under Settings > Profile > API Keys.

Using Real Time Data API

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)
response
{
    "message": "Hey there! The weather in Austin today is a pleasant 64°F. Looks like a great day to enjoy some outdoor activities! 🌤️"
}