• Gooey.AI
  • API: chai


    📖 To learn more, take a look at our complete API

    📤 Example Request

    1. Generate an api key below👇

    2. Install node-fetch & add the GOOEY_API_KEY to your environment variables.
      Never store the api key in your code and don't use direcly in the browser.

    $ npm install node-fetch
    $ export GOOEY_API_KEY=sk-xxxx
    
    1. Use this sample code to call the API.
      If you encounter any issues, write to us at [email protected] and make sure to include the full code snippet and the error message.
    import fetch from 'node-fetch';
    
    const payload = {
      "search_query": "chai",
      "keywords": "tea, green, taza, fresh, natural, healthy",
      "title": "tea with indian taste",
      "company_url": "https://letshaveatea.com"
    };
    
    async function gooeyAPI() {
      const response = await fetch("https://api.gooey.ai/v2/SEOSummary?example_id=5qzO37n8zRQ", {
        method: "POST",
        headers: {
          "Authorization": "bearer " + process.env["GOOEY_API_KEY"],
          "Content-Type": "application/json",
        },
        body: JSON.stringify(payload),
      });
    
      if (!response.ok) {
        throw new Error(response.status);
      }
    
      const result = await response.json();
      console.log(response.status, result);
    }
    
    gooeyAPI();
    
    1. Generate an api key below👇

    2. Install requests & add the GOOEY_API_KEY to your environment variables.
      Never store the api key in your code.

    $ python3 -m pip install requests
    $ export GOOEY_API_KEY=sk-xxxx
    
    1. Use this sample code to call the API.
      If you encounter any issues, write to us at [email protected] and make sure to include the full code snippet and the error message.
    import os
    import requests
    
    payload = {
        "search_query": "chai",
        "keywords": "tea, green, taza, fresh, natural, healthy",
        "title": "tea with indian taste",
        "company_url": "https://letshaveatea.com",
    }
    
    response = requests.post(
        "https://api.gooey.ai/v2/SEOSummary?example_id=5qzO37n8zRQ",
        headers={
            "Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
        },
        json=payload,
    )
    assert response.ok, response.content
    
    result = response.json()
    print(response.status_code, result)
    
    1. Generate an api key below👇

    2. Install curl & add the GOOEY_API_KEY to your environment variables.
      Never store the api key in your code.

    export GOOEY_API_KEY=sk-xxxx
    
    1. Run the following curl command in your terminal.
      If you encounter any issues, write to us at [email protected] and make sure to include the full curl command and the error message.
    curl 'https://api.gooey.ai/v2/SEOSummary?example_id=5qzO37n8zRQ' \
      -H "Authorization: bearer $GOOEY_API_KEY" \
      -H 'Content-Type: application/json' \
      -d '{
      "search_query": "chai",
      "keywords": "tea, green, taza, fresh, natural, healthy",
      "title": "tea with indian taste",
      "company_url": "https://letshaveatea.com"
    }'
    

    🎁 Example Response

    {4 Items
    "id"
    :
    string
    "mhus7semffo7"
    "url"
    :
    string
    "https://gooey.ai/seo-paragraph-generator/"
    "created_at"
    :
    string
    "2024-02-12T14:36:26.449710+00:00"
    "output"
    :
    {5 Items
    "output_content"
    :
    [2 Items
    0
    :
    string
    "Experience the Authentic Taste of Chai with Let's "
    1
    :
    string
    "With a rich history rooted in various cultures, th"
    ]
    "serp_results"
    :
    {5 Items
    "organic"
    :
    [
    ]10 Items
    "peopleAlsoAsk"
    :
    [
    ]3 Items
    "knowledgeGraph"
    :
    {
    }7 Items
    "relatedSearches"
    :
    [
    ]8 Items
    "searchParameters"
    :
    {
    }4 Items
    }
    "search_urls"
    :
    [10 Items
    0
    :
    string
    "https://play.google.com/store/apps/details?id=com."
    1
    :
    string
    "https://apps.apple.com/us/app/chai-chat-ai-platfor"
    2
    :
    string
    "https://www.chai-research.com/"
    3
    :
    string
    "https://en.wikipedia.org/wiki/Masala_chai"
    4
    :
    string
    "https://www.foodandwine.com/tea/chai-tea/what-is-c"
    5
    :
    string
    "https://www.teatulia.com/tea-varieties/what-is-cha"
    6
    :
    string
    "https://www.myjewishlearning.com/article/what-is-c"
    7
    :
    string
    "https://chai-band.com/global/"
    8
    :
    string
    "https://en.wikipedia.org/wiki/Chai"
    9
    :
    string
    "https://www.clintonhealthaccess.org/"
    ]
    "summarized_urls"
    :
    [10 Items
    0
    :
    {
    }3 Items
    1
    :
    {
    }3 Items
    2
    :
    {
    }3 Items
    3
    :
    {
    }3 Items
    4
    :
    {
    }3 Items
    5
    :
    {
    }3 Items
    6
    :
    {
    }3 Items
    7
    :
    {
    }3 Items
    8
    :
    {
    }3 Items
    9
    :
    {
    }3 Items
    ]
    "final_prompt"
    :
    string
    "I will give you a URL and focus keywords and using"
    }
    }

    Please Login to generate the $GOOEY_API_KEY