📖 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 = {
  "documents": [
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0a58074-8a82-11f0-930d-02420a000180/MAAIF%20Climate%20Smart%20Agric%20Manual%20-%20POTATOES%2001%20.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0988590-8a82-11f0-9306-02420a000183/MAAIF-%20Millet%20Enterprise%20Selection%20Guide.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c095044c-8a82-11f0-b75e-02420a000180/MAAIF-%20Passion%20Fruit%20Enterprise%20Selection%20Guide.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0a173bc-8a82-11f0-a40e-02420a000182/MAAIF-%20Sugarcane%20Enterprise%20Selection%20Guide.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0a0fdba-8a82-11f0-9ef7-02420a000181/MAAIF-Bananas%20Enterprise%20Selection%20Guide.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c11e7dda-8a82-11f0-ae39-02420a000181/MAAIF-NUFLIP%20Manual_Vegetable%20cultivation_210811%202%202.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0fd25c2-8a82-11f0-930d-02420a000180/NARO-%20Finger%20Millet%20Production%20Manual%20for%20Uganda.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c10b0584-8a82-11f0-b75e-02420a000180/NARO-%20Sorghum%20Production%20and%20Utilization%20manual.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c108213e-8a82-11f0-b76b-02420a000182/NARO-%20Sorghum%20Production%20Handbook%20for%20Uganda%20NaSARRI.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c10d0bd6-8a82-11f0-8613-02420a000180/NARO-Banana%20Production%20Guide.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c185ef60-8a82-11f0-930d-02420a000180/NUFLIP-PD-%20vegetable%20pests.pdf",
    "https://docs.google.com/document/d/13HGRbiOOxtUk8yJ79n5dEttPa-PUEgYyfc-LKEPy0DE/edit?usp=sharing"
  ],
  "selected_model": "gpt_5",
  "document_model": null,
  "language": null,
  "translation_model": null,
  "translation_target": "en"
};

async function gooeyAPI() {
  const response = await fetch("https://test.api.gooey.ai/v2/doc-extract?example_id=xwzl1g1tbvg4", {
    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 = {
    "documents": [
        "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0a58074-8a82-11f0-930d-02420a000180/MAAIF%20Climate%20Smart%20Agric%20Manual%20-%20POTATOES%2001%20.pdf",
        "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0988590-8a82-11f0-9306-02420a000183/MAAIF-%20Millet%20Enterprise%20Selection%20Guide.pdf",
        "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c095044c-8a82-11f0-b75e-02420a000180/MAAIF-%20Passion%20Fruit%20Enterprise%20Selection%20Guide.pdf",
        "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0a173bc-8a82-11f0-a40e-02420a000182/MAAIF-%20Sugarcane%20Enterprise%20Selection%20Guide.pdf",
        "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0a0fdba-8a82-11f0-9ef7-02420a000181/MAAIF-Bananas%20Enterprise%20Selection%20Guide.pdf",
        "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c11e7dda-8a82-11f0-ae39-02420a000181/MAAIF-NUFLIP%20Manual_Vegetable%20cultivation_210811%202%202.pdf",
        "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0fd25c2-8a82-11f0-930d-02420a000180/NARO-%20Finger%20Millet%20Production%20Manual%20for%20Uganda.pdf",
        "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c10b0584-8a82-11f0-b75e-02420a000180/NARO-%20Sorghum%20Production%20and%20Utilization%20manual.pdf",
        "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c108213e-8a82-11f0-b76b-02420a000182/NARO-%20Sorghum%20Production%20Handbook%20for%20Uganda%20NaSARRI.pdf",
        "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c10d0bd6-8a82-11f0-8613-02420a000180/NARO-Banana%20Production%20Guide.pdf",
        "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c185ef60-8a82-11f0-930d-02420a000180/NUFLIP-PD-%20vegetable%20pests.pdf",
        "https://docs.google.com/document/d/13HGRbiOOxtUk8yJ79n5dEttPa-PUEgYyfc-LKEPy0DE/edit?usp=sharing",
    ],
    "selected_model": "gpt_5",
    "document_model": None,
    "language": None,
    "translation_model": None,
    "translation_target": "en",
}

response = requests.post(
    "https://test.api.gooey.ai/v2/doc-extract?example_id=xwzl1g1tbvg4",
    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://test.api.gooey.ai/v2/doc-extract?example_id=xwzl1g1tbvg4' \
  -H "Authorization: bearer $GOOEY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "documents": [
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0a58074-8a82-11f0-930d-02420a000180/MAAIF%20Climate%20Smart%20Agric%20Manual%20-%20POTATOES%2001%20.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0988590-8a82-11f0-9306-02420a000183/MAAIF-%20Millet%20Enterprise%20Selection%20Guide.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c095044c-8a82-11f0-b75e-02420a000180/MAAIF-%20Passion%20Fruit%20Enterprise%20Selection%20Guide.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0a173bc-8a82-11f0-a40e-02420a000182/MAAIF-%20Sugarcane%20Enterprise%20Selection%20Guide.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0a0fdba-8a82-11f0-9ef7-02420a000181/MAAIF-Bananas%20Enterprise%20Selection%20Guide.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c11e7dda-8a82-11f0-ae39-02420a000181/MAAIF-NUFLIP%20Manual_Vegetable%20cultivation_210811%202%202.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c0fd25c2-8a82-11f0-930d-02420a000180/NARO-%20Finger%20Millet%20Production%20Manual%20for%20Uganda.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c10b0584-8a82-11f0-b75e-02420a000180/NARO-%20Sorghum%20Production%20and%20Utilization%20manual.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c108213e-8a82-11f0-b76b-02420a000182/NARO-%20Sorghum%20Production%20Handbook%20for%20Uganda%20NaSARRI.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c10d0bd6-8a82-11f0-8613-02420a000180/NARO-Banana%20Production%20Guide.pdf",
    "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/c185ef60-8a82-11f0-930d-02420a000180/NUFLIP-PD-%20vegetable%20pests.pdf",
    "https://docs.google.com/document/d/13HGRbiOOxtUk8yJ79n5dEttPa-PUEgYyfc-LKEPy0DE/edit?usp=sharing"
  ],
  "selected_model": "gpt_5",
  "document_model": null,
  "language": null,
  "translation_model": null,
  "translation_target": "en"
}'

🎁 Example Response

{4 Items
"id"
:
string
"n8xkowiv8g2l"
"url"
:
string
"https://test.gooey.ai/doc-extract/"
"created_at"
:
string
"2025-09-05T18:12:09.632242+00:00"
"output"
:
{1 Items
"output_documents"
:
NULL
}
}

Please Login to generate the $GOOEY_API_KEY