> ## Documentation Index
> Fetch the complete documentation index at: https://davinci.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Serper API Integration

> Enhance your Davinci AI platform with Serper API’s Google search capabilities. This guide walks you through setting up and leveraging Serper API for real-time search results.

## Introduction

Davinci AI’s Serper API integration unlocks real-time Google search capabilities for your platform. By integrating Serper.dev’s API, you can significantly enhance your AI Chat and AI Writer tools, allowing users to access up-to-date search results directly within their conversations.

## Serper API Configuration

To be able to use your Serper API, follow these steps to setup integration.

<Steps>
  <Step title="Step 1">
    If you don’t have a Serper account, [sign up here](https://serper.dev/)
  </Step>

  <Step title="Step 2">
    Once logged in, you’ll be taken to your Serper dashboard, click on the **API Key** menu item
  </Step>

  <Step title="Step 3">
    Copy your API key from the popup that appears.
    <Note>Keep your API key secure. It provides access to Serper API’s services and should not be shared publicly.</Note>
    <Tip>Serper provides a dashboard where you can monitor your API usage, including the number of requests made in the last 30 days and 24 hours, as well as your total credits used.</Tip>
  </Step>

  <Step title="Step 4">
    Login to Davinci AI using your admin credentials.
  </Step>

  <Step title="Step 5">
    In **Admin Panel**, navigate to **AI Settings** -> **AI API Keys** tab.
  </Step>

  <Step title="Step 6">
    Click on **Serper** tab there.

    <img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/other/serper/serper-1.png?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=85cc0fc7ba56aa9042c80f776b5a1809" width="544" height="102" data-path="images/other/serper/serper-1.png" />
  </Step>

  <Step title="Step 7">
    Include your API key under **Serper API Key** input field.

    <img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/other/serper/serper-2.png?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=b633b4aa55a8b34564426f788f27790d" width="935" height="400" data-path="images/other/serper/serper-2.png" />
  </Step>

  <Step title="Step 8">
    After you are done with configurations, click on **Save** button.
  </Step>
</Steps>

<Check>
  Congratulations! You have successfully comleted the Serper API setup process.
</Check>

## Davinci AI Tools Powered by Serper API

Following AI tools can be used with Serper API

<Note>Support for more AI tools will be added soon, we are actively working on that</Note>

1. **AI Chat** (including **Custom Chat Assistants**) - chat conversations and get instant answers.
2. **AI Writer** (including **Custom Templates**) - Generate high-quality content for various purposes.

## How to Use Serper API

These steps will explain you how you can use Serper API:

1. Login to Davinci AI using your admin credentials.
2. In **Admin Panel**, navigate to **AI Settings** -> **General AI Settings** tab.
3. Under **Real Time Data Access Engine**, select **Serper** and click on **Save** button.

<img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/other/serper/serper-3.png?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=2dde782362bb19287576f7cc5e9da004" width="556" height="89" data-path="images/other/serper/serper-3.png" />

<Tip>Davinci AI allows you to easily toggle between Serper API and Perplexity API for live Google search results</Tip>
4\. If you want your **Free Tier** users to be able to use **Realtime Time Data Access** feature, then navigate to **AI Settings** -> **Free Trial Features** tab and turn on **Realtime Time Data Access** checkbox, afterwards click on **Save** button.

<img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/other/serper/serper-4.png?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=3db3422d160bbd581b0144ca744ee602" width="340" height="77" data-path="images/other/serper/serper-4.png" />

5. Now on every AI Chat Assistant and on every AI Writer Templates, users will see **Real-Time Data Access** checkbox, which they need to simply turn on to be able to use real time data in their questions.

<img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/other/serper/serper-5.png?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=fddad506f226986aa8dcd80d5929cbcc" width="291" height="68" data-path="images/other/serper/serper-5.png" />
