📖 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://drive.google.com/file/d/17XrI9kcl375F5Su0ntv-ySq8dzaL6A6r/view?usp=drivesdk",
    "https://drive.google.com/file/d/1f7Ng8ThSeJFc70sVkVWC_lTv2zOOVXta/view?usp=drivesdk",
    "https://drive.google.com/file/d/1xt2fJZm5x_qJsxKurqR-KmowN4XjQ576/view?usp=drivesdk",
    "https://drive.google.com/file/d/1Rs0vbgq484bwnZPXocutJ9Rwv4dS2UXD/view?usp=drivesdk",
    "https://drive.google.com/file/d/1EUNWXkCi-IrHyatcLyoKrDsktSFecjE-/view?usp=drivesdk",
    "https://drive.google.com/file/d/15PzBCwTYOkGID_cnWNGy1J-WFElhhwOA/view?usp=drivesdk",
    "https://drive.google.com/file/d/17WGxW_FhZKHpi2IBJqdQ5tUZCKSMxoJ4/view?usp=drivesdk",
    "https://drive.google.com/file/d/1UQD6l3agS1dKBx1pHYlHMYp5calqw4pE/view?usp=drivesdk",
    "https://drive.google.com/file/d/1Noz4ZVMQpOaCjJ1IG7DaSnWYgS8R0IRN/view?usp=drivesdk",
    "https://drive.google.com/file/d/1hUrg8QJ4ccQxrLvs2hfoDlXlN6b6iJQd/view?usp=drivesdk",
    "https://drive.google.com/file/d/13AtIjRMOazvxhTKW7X0j2amSCJ9Afzjb/view?usp=drivesdk",
    "https://drive.google.com/file/d/1j3vQtJ4BRu6MZVSjbWR1GPzFmVSOgp1j/view?usp=drivesdk",
    "https://drive.google.com/file/d/1naYeALmN9FDtScSHoibulqBjzYsYUUvG/view?usp=drivesdk",
    "https://drive.google.com/file/d/1hK-8J5cz_QIqOz8N6pOMf4hMIbOa9n35/view?usp=drivesdk",
    "https://drive.google.com/file/d/1FaXrX7aQYMDaxnL0hEd6Zl-WSlJHWPmS/view?usp=drivesdk",
    "https://drive.google.com/file/d/1BGTPdfc0MAbbToG-kZdfC9Jg1JHkgnVG/view?usp=drivesdk",
    "https://drive.google.com/file/d/1TKM9TfeLhjZe_N70qHZuAvwMWAi2wZL6/view?usp=drivesdk",
    "https://drive.google.com/file/d/19bzENnplV8mPjLdtg-B_NiNyoDtSBA2c/view?usp=drivesdk",
    "https://drive.google.com/file/d/17PtHSYI54rkW6AY8XUgdxRe6wvr4RA0Y/view?usp=drivesdk",
    "https://drive.google.com/file/d/1R76XII3NRdeuP1pQJ01f7HJbq6hkAOP4/view?usp=drivesdk",
    "https://drive.google.com/file/d/1HMZ5ptnWXw18CcWU1tTBmWfPRYI7nNK6/view?usp=drivesdk",
    "https://drive.google.com/file/d/1xHjqveBlcnxjhsZ9ULBVtTSg0apjDOvw/view?usp=drivesdk",
    "https://drive.google.com/file/d/1wAr81vLJwnzlIKfqIdhRIGOR4ReaseT-/view?usp=drivesdk",
    "https://drive.google.com/file/d/1tWa9ooOk0imT4tpwrk7xd18Fym7ab0tb/view?usp=drivesdk",
    "https://drive.google.com/file/d/1pbGUvJP5J3Pj6BX3870s75tT5eF2Ev1y/view?usp=drivesdk",
    "https://drive.google.com/file/d/1Vyb5GiOIVP6_atOlYI5Lp1ufTjjqhNFk/view?usp=drivesdk",
    "https://drive.google.com/file/d/1gDRCw2PQ0TAZiDu68M1D72Q1fncG7WZ6/view?usp=drivesdk",
    "https://drive.google.com/file/d/1_8KR4MBHjrn5_-irI6e5jFwXMgv7Z-yh/view?usp=drivesdk",
    "https://drive.google.com/file/d/1vPumMrhOBVaeA_sZL2etFB2ltihjY0XN/view?usp=drivesdk",
    "https://drive.google.com/file/d/10F9Oc0rZdjQFuu1qDUuKpM2kHQCq7bwy/view?usp=drivesdk",
    "https://drive.google.com/file/d/1xMARfgRCicn0sov19ua9s-qWqgAjUPTV/view?usp=drivesdk",
    "https://drive.google.com/file/d/17G5XvdRteArWUe6lWOOsN5m6pgrKP3Mj/view?usp=drivesdk",
    "https://drive.google.com/file/d/1rTTvDd5Q-MScFVB9RdyAp9-4_hmlVAjS/view?usp=drivesdk",
    "https://drive.google.com/file/d/1_O0S72gxFySlrUBTSPpa-hoKX_uGJpm4/view?usp=drivesdk",
    "https://drive.google.com/file/d/1tYBnXLPM10YwTHFw0EL32DjJbtCNiAJW/view?usp=drivesdk"
  ],
  "selected_model": "gemini_3_flash",
  "document_model": "azure-prebuilt-layout",
  "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=szmh9ok6uu59", {
    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://drive.google.com/file/d/17XrI9kcl375F5Su0ntv-ySq8dzaL6A6r/view?usp=drivesdk",
        "https://drive.google.com/file/d/1f7Ng8ThSeJFc70sVkVWC_lTv2zOOVXta/view?usp=drivesdk",
        "https://drive.google.com/file/d/1xt2fJZm5x_qJsxKurqR-KmowN4XjQ576/view?usp=drivesdk",
        "https://drive.google.com/file/d/1Rs0vbgq484bwnZPXocutJ9Rwv4dS2UXD/view?usp=drivesdk",
        "https://drive.google.com/file/d/1EUNWXkCi-IrHyatcLyoKrDsktSFecjE-/view?usp=drivesdk",
        "https://drive.google.com/file/d/15PzBCwTYOkGID_cnWNGy1J-WFElhhwOA/view?usp=drivesdk",
        "https://drive.google.com/file/d/17WGxW_FhZKHpi2IBJqdQ5tUZCKSMxoJ4/view?usp=drivesdk",
        "https://drive.google.com/file/d/1UQD6l3agS1dKBx1pHYlHMYp5calqw4pE/view?usp=drivesdk",
        "https://drive.google.com/file/d/1Noz4ZVMQpOaCjJ1IG7DaSnWYgS8R0IRN/view?usp=drivesdk",
        "https://drive.google.com/file/d/1hUrg8QJ4ccQxrLvs2hfoDlXlN6b6iJQd/view?usp=drivesdk",
        "https://drive.google.com/file/d/13AtIjRMOazvxhTKW7X0j2amSCJ9Afzjb/view?usp=drivesdk",
        "https://drive.google.com/file/d/1j3vQtJ4BRu6MZVSjbWR1GPzFmVSOgp1j/view?usp=drivesdk",
        "https://drive.google.com/file/d/1naYeALmN9FDtScSHoibulqBjzYsYUUvG/view?usp=drivesdk",
        "https://drive.google.com/file/d/1hK-8J5cz_QIqOz8N6pOMf4hMIbOa9n35/view?usp=drivesdk",
        "https://drive.google.com/file/d/1FaXrX7aQYMDaxnL0hEd6Zl-WSlJHWPmS/view?usp=drivesdk",
        "https://drive.google.com/file/d/1BGTPdfc0MAbbToG-kZdfC9Jg1JHkgnVG/view?usp=drivesdk",
        "https://drive.google.com/file/d/1TKM9TfeLhjZe_N70qHZuAvwMWAi2wZL6/view?usp=drivesdk",
        "https://drive.google.com/file/d/19bzENnplV8mPjLdtg-B_NiNyoDtSBA2c/view?usp=drivesdk",
        "https://drive.google.com/file/d/17PtHSYI54rkW6AY8XUgdxRe6wvr4RA0Y/view?usp=drivesdk",
        "https://drive.google.com/file/d/1R76XII3NRdeuP1pQJ01f7HJbq6hkAOP4/view?usp=drivesdk",
        "https://drive.google.com/file/d/1HMZ5ptnWXw18CcWU1tTBmWfPRYI7nNK6/view?usp=drivesdk",
        "https://drive.google.com/file/d/1xHjqveBlcnxjhsZ9ULBVtTSg0apjDOvw/view?usp=drivesdk",
        "https://drive.google.com/file/d/1wAr81vLJwnzlIKfqIdhRIGOR4ReaseT-/view?usp=drivesdk",
        "https://drive.google.com/file/d/1tWa9ooOk0imT4tpwrk7xd18Fym7ab0tb/view?usp=drivesdk",
        "https://drive.google.com/file/d/1pbGUvJP5J3Pj6BX3870s75tT5eF2Ev1y/view?usp=drivesdk",
        "https://drive.google.com/file/d/1Vyb5GiOIVP6_atOlYI5Lp1ufTjjqhNFk/view?usp=drivesdk",
        "https://drive.google.com/file/d/1gDRCw2PQ0TAZiDu68M1D72Q1fncG7WZ6/view?usp=drivesdk",
        "https://drive.google.com/file/d/1_8KR4MBHjrn5_-irI6e5jFwXMgv7Z-yh/view?usp=drivesdk",
        "https://drive.google.com/file/d/1vPumMrhOBVaeA_sZL2etFB2ltihjY0XN/view?usp=drivesdk",
        "https://drive.google.com/file/d/10F9Oc0rZdjQFuu1qDUuKpM2kHQCq7bwy/view?usp=drivesdk",
        "https://drive.google.com/file/d/1xMARfgRCicn0sov19ua9s-qWqgAjUPTV/view?usp=drivesdk",
        "https://drive.google.com/file/d/17G5XvdRteArWUe6lWOOsN5m6pgrKP3Mj/view?usp=drivesdk",
        "https://drive.google.com/file/d/1rTTvDd5Q-MScFVB9RdyAp9-4_hmlVAjS/view?usp=drivesdk",
        "https://drive.google.com/file/d/1_O0S72gxFySlrUBTSPpa-hoKX_uGJpm4/view?usp=drivesdk",
        "https://drive.google.com/file/d/1tYBnXLPM10YwTHFw0EL32DjJbtCNiAJW/view?usp=drivesdk",
    ],
    "selected_model": "gemini_3_flash",
    "document_model": "azure-prebuilt-layout",
    "language": None,
    "translation_model": None,
    "translation_target": "en",
}

response = requests.post(
    "https://test.api.gooey.ai/v2/doc-extract?example_id=szmh9ok6uu59",
    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=szmh9ok6uu59' \
  -H "Authorization: bearer $GOOEY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "documents": [
    "https://drive.google.com/file/d/17XrI9kcl375F5Su0ntv-ySq8dzaL6A6r/view?usp=drivesdk",
    "https://drive.google.com/file/d/1f7Ng8ThSeJFc70sVkVWC_lTv2zOOVXta/view?usp=drivesdk",
    "https://drive.google.com/file/d/1xt2fJZm5x_qJsxKurqR-KmowN4XjQ576/view?usp=drivesdk",
    "https://drive.google.com/file/d/1Rs0vbgq484bwnZPXocutJ9Rwv4dS2UXD/view?usp=drivesdk",
    "https://drive.google.com/file/d/1EUNWXkCi-IrHyatcLyoKrDsktSFecjE-/view?usp=drivesdk",
    "https://drive.google.com/file/d/15PzBCwTYOkGID_cnWNGy1J-WFElhhwOA/view?usp=drivesdk",
    "https://drive.google.com/file/d/17WGxW_FhZKHpi2IBJqdQ5tUZCKSMxoJ4/view?usp=drivesdk",
    "https://drive.google.com/file/d/1UQD6l3agS1dKBx1pHYlHMYp5calqw4pE/view?usp=drivesdk",
    "https://drive.google.com/file/d/1Noz4ZVMQpOaCjJ1IG7DaSnWYgS8R0IRN/view?usp=drivesdk",
    "https://drive.google.com/file/d/1hUrg8QJ4ccQxrLvs2hfoDlXlN6b6iJQd/view?usp=drivesdk",
    "https://drive.google.com/file/d/13AtIjRMOazvxhTKW7X0j2amSCJ9Afzjb/view?usp=drivesdk",
    "https://drive.google.com/file/d/1j3vQtJ4BRu6MZVSjbWR1GPzFmVSOgp1j/view?usp=drivesdk",
    "https://drive.google.com/file/d/1naYeALmN9FDtScSHoibulqBjzYsYUUvG/view?usp=drivesdk",
    "https://drive.google.com/file/d/1hK-8J5cz_QIqOz8N6pOMf4hMIbOa9n35/view?usp=drivesdk",
    "https://drive.google.com/file/d/1FaXrX7aQYMDaxnL0hEd6Zl-WSlJHWPmS/view?usp=drivesdk",
    "https://drive.google.com/file/d/1BGTPdfc0MAbbToG-kZdfC9Jg1JHkgnVG/view?usp=drivesdk",
    "https://drive.google.com/file/d/1TKM9TfeLhjZe_N70qHZuAvwMWAi2wZL6/view?usp=drivesdk",
    "https://drive.google.com/file/d/19bzENnplV8mPjLdtg-B_NiNyoDtSBA2c/view?usp=drivesdk",
    "https://drive.google.com/file/d/17PtHSYI54rkW6AY8XUgdxRe6wvr4RA0Y/view?usp=drivesdk",
    "https://drive.google.com/file/d/1R76XII3NRdeuP1pQJ01f7HJbq6hkAOP4/view?usp=drivesdk",
    "https://drive.google.com/file/d/1HMZ5ptnWXw18CcWU1tTBmWfPRYI7nNK6/view?usp=drivesdk",
    "https://drive.google.com/file/d/1xHjqveBlcnxjhsZ9ULBVtTSg0apjDOvw/view?usp=drivesdk",
    "https://drive.google.com/file/d/1wAr81vLJwnzlIKfqIdhRIGOR4ReaseT-/view?usp=drivesdk",
    "https://drive.google.com/file/d/1tWa9ooOk0imT4tpwrk7xd18Fym7ab0tb/view?usp=drivesdk",
    "https://drive.google.com/file/d/1pbGUvJP5J3Pj6BX3870s75tT5eF2Ev1y/view?usp=drivesdk",
    "https://drive.google.com/file/d/1Vyb5GiOIVP6_atOlYI5Lp1ufTjjqhNFk/view?usp=drivesdk",
    "https://drive.google.com/file/d/1gDRCw2PQ0TAZiDu68M1D72Q1fncG7WZ6/view?usp=drivesdk",
    "https://drive.google.com/file/d/1_8KR4MBHjrn5_-irI6e5jFwXMgv7Z-yh/view?usp=drivesdk",
    "https://drive.google.com/file/d/1vPumMrhOBVaeA_sZL2etFB2ltihjY0XN/view?usp=drivesdk",
    "https://drive.google.com/file/d/10F9Oc0rZdjQFuu1qDUuKpM2kHQCq7bwy/view?usp=drivesdk",
    "https://drive.google.com/file/d/1xMARfgRCicn0sov19ua9s-qWqgAjUPTV/view?usp=drivesdk",
    "https://drive.google.com/file/d/17G5XvdRteArWUe6lWOOsN5m6pgrKP3Mj/view?usp=drivesdk",
    "https://drive.google.com/file/d/1rTTvDd5Q-MScFVB9RdyAp9-4_hmlVAjS/view?usp=drivesdk",
    "https://drive.google.com/file/d/1_O0S72gxFySlrUBTSPpa-hoKX_uGJpm4/view?usp=drivesdk",
    "https://drive.google.com/file/d/1tYBnXLPM10YwTHFw0EL32DjJbtCNiAJW/view?usp=drivesdk"
  ],
  "selected_model": "gemini_3_flash",
  "document_model": "azure-prebuilt-layout",
  "language": null,
  "translation_model": null,
  "translation_target": "en"
}'

🎁 Example Response

{4 Items
"id"
:
string
"dedir7rwckpg"
"url"
:
string
"https://test.gooey.ai/doc-extract/"
"created_at"
:
string
"2026-03-31T21:21:37.805495+00:00"
"output"
:
{1 Items
"output_documents"
:
NULL
}
}

Please Login to generate the $GOOEY_API_KEY