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.

To use the Real Time Data API you will need a Dappier API key first, please visit Dappier API Key on how to obtain your own key.

Our API Key will have the following format: ak_***p51f. It’s a bearer token.

Once you have obtained a bearer token, you will need to include it in the header of your HTTP requests to access protected resources. The bearer token is included in the “Authorization” header using the “Bearer” scheme.

Using Real Time Data API

import requests
import json

url = "https://api.dappier.com/app/datamodel/dm_01hpsxyfm2fwdt2zet9cg6fdxt"

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