📖 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/1PihkSLvBrrp-QV0Oq7MKC4AqcFrnwqHR/view?usp=drivesdk",
    "https://drive.google.com/file/d/16p9P5GVEL6xfXMYlUmiGmCDMmH89KpxG/view?usp=drivesdk",
    "https://drive.google.com/file/d/1EObxS21AL-EUbbz5lCemAWsGjxglBDO8/view?usp=drivesdk",
    "https://drive.google.com/file/d/1AiLxv6rl0T9Y4gjQ_Z8JTv2B0OzUXscb/view?usp=drivesdk",
    "https://drive.google.com/file/d/1Zu49xJ8tAGDTnT5Mj6-Wlzu0wzRyUBLq/view?usp=drivesdk",
    "https://drive.google.com/file/d/1MezDJ3fYmMhitlvYvkNQ8aR19EcRbm68/view?usp=drivesdk",
    "https://drive.google.com/file/d/1hHZ56aTKZJIYym5R-d5C0Bc40fQw1vwb/view?usp=drivesdk",
    "https://drive.google.com/file/d/1b78kwHlKbBrlLAkzjjmV5LVWZA8rr4KY/view?usp=drivesdk",
    "https://drive.google.com/file/d/1saCvm_QMH8tiK68U6FmUJs8MyXBgzn2L/view?usp=drivesdk",
    "https://drive.google.com/file/d/1K-B8CnVNgo3kx8K_4R7HB6hO1Z4SwDrk/view?usp=drivesdk",
    "https://drive.google.com/file/d/1rgYyhvGAlV0hgw2EVjOQNAYjlkZZSz6T/view?usp=drivesdk",
    "https://drive.google.com/file/d/13GcQwEHODgNUr7Wq2yV7aqNDq9wecRV2/view?usp=drivesdk",
    "https://drive.google.com/file/d/1IDCp26cf6emTr0lZqBrMZ6d0tL4A_v2e/view?usp=drivesdk",
    "https://drive.google.com/file/d/1oIT4pAgixd98cZKF4WeU9WxFZfYom4EK/view?usp=drivesdk",
    "https://drive.google.com/file/d/13mNL4aDTYNazhoSxnV0BRxEqHXq2UbhR/view?usp=drivesdk",
    "https://drive.google.com/file/d/1vdQClJMArFHOZoXoFfqekFc7-rgg80Ft/view?usp=drivesdk",
    "https://drive.google.com/file/d/1P5oqGK6C2uSz4RzxyhLEgwjFqjkv5-EQ/view?usp=drivesdk",
    "https://drive.google.com/file/d/15ksEHqA54DlyfzQjtxtoIEColPHxE-LD/view?usp=drivesdk",
    "https://drive.google.com/file/d/1v5KOUExpOFpmiYCnWSMC3eGDpVWi2I1v/view?usp=drivesdk",
    "https://drive.google.com/file/d/1QYSAp9VfkjqsKe51aYYMFTxz-TJBOW6S/view?usp=drivesdk",
    "https://drive.google.com/file/d/1iZ7PeCP1TbJPBdsn6T1wgFmFsR-Ntksz/view?usp=drivesdk",
    "https://drive.google.com/file/d/1G4xNYs2RcspM_A7sRkVCiwD9BgTONx3i/view?usp=drivesdk",
    "https://drive.google.com/file/d/1FpuWsh5LO1cDKT41QuFoPEyGXhSbvvWX/view?usp=drivesdk",
    "https://drive.google.com/file/d/1-bNSB0TR9nGJAZPvgAkgJLzOXCrFpgJx/view?usp=drivesdk",
    "https://drive.google.com/file/d/19hGnoA1qQOgHmrm8pAjVFi1fxmmd_dym/view?usp=drivesdk",
    "https://drive.google.com/file/d/1MAVMon2JQ10FF3RHZcX57Wc0LPKSdq4l/view?usp=drivesdk",
    "https://drive.google.com/file/d/1zagxydHw7J4WjOMOKZo-RNWUuGUjp-Hc/view?usp=drivesdk",
    "https://drive.google.com/file/d/1ylgsWdGRQn1WF7_ZrNuffFW6949xIh0x/view?usp=drivesdk",
    "https://drive.google.com/file/d/1gLVjbweGr01QTpOgTY8mSJ4VVGFQPxVl/view?usp=drivesdk",
    "https://drive.google.com/file/d/1O0kn3yO1uI5n0poa3NNtkcVbDnS-anK5/view?usp=drivesdk",
    "https://drive.google.com/file/d/1SupJJOkd8kWEpiuU4xEYZiHbvueTLA4x/view?usp=drivesdk",
    "https://drive.google.com/file/d/1p1sveQ80j576sSvTD9KVZbGh9seOmR7z/view?usp=drivesdk",
    "https://drive.google.com/file/d/1KSRTr9T8Cmdk45xx0plVmodb42w7XSVq/view?usp=drivesdk"
  ],
  "selected_model": "claude_4_6_sonnet",
  "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=sehpskq8bmbw", {
    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/1PihkSLvBrrp-QV0Oq7MKC4AqcFrnwqHR/view?usp=drivesdk",
        "https://drive.google.com/file/d/16p9P5GVEL6xfXMYlUmiGmCDMmH89KpxG/view?usp=drivesdk",
        "https://drive.google.com/file/d/1EObxS21AL-EUbbz5lCemAWsGjxglBDO8/view?usp=drivesdk",
        "https://drive.google.com/file/d/1AiLxv6rl0T9Y4gjQ_Z8JTv2B0OzUXscb/view?usp=drivesdk",
        "https://drive.google.com/file/d/1Zu49xJ8tAGDTnT5Mj6-Wlzu0wzRyUBLq/view?usp=drivesdk",
        "https://drive.google.com/file/d/1MezDJ3fYmMhitlvYvkNQ8aR19EcRbm68/view?usp=drivesdk",
        "https://drive.google.com/file/d/1hHZ56aTKZJIYym5R-d5C0Bc40fQw1vwb/view?usp=drivesdk",
        "https://drive.google.com/file/d/1b78kwHlKbBrlLAkzjjmV5LVWZA8rr4KY/view?usp=drivesdk",
        "https://drive.google.com/file/d/1saCvm_QMH8tiK68U6FmUJs8MyXBgzn2L/view?usp=drivesdk",
        "https://drive.google.com/file/d/1K-B8CnVNgo3kx8K_4R7HB6hO1Z4SwDrk/view?usp=drivesdk",
        "https://drive.google.com/file/d/1rgYyhvGAlV0hgw2EVjOQNAYjlkZZSz6T/view?usp=drivesdk",
        "https://drive.google.com/file/d/13GcQwEHODgNUr7Wq2yV7aqNDq9wecRV2/view?usp=drivesdk",
        "https://drive.google.com/file/d/1IDCp26cf6emTr0lZqBrMZ6d0tL4A_v2e/view?usp=drivesdk",
        "https://drive.google.com/file/d/1oIT4pAgixd98cZKF4WeU9WxFZfYom4EK/view?usp=drivesdk",
        "https://drive.google.com/file/d/13mNL4aDTYNazhoSxnV0BRxEqHXq2UbhR/view?usp=drivesdk",
        "https://drive.google.com/file/d/1vdQClJMArFHOZoXoFfqekFc7-rgg80Ft/view?usp=drivesdk",
        "https://drive.google.com/file/d/1P5oqGK6C2uSz4RzxyhLEgwjFqjkv5-EQ/view?usp=drivesdk",
        "https://drive.google.com/file/d/15ksEHqA54DlyfzQjtxtoIEColPHxE-LD/view?usp=drivesdk",
        "https://drive.google.com/file/d/1v5KOUExpOFpmiYCnWSMC3eGDpVWi2I1v/view?usp=drivesdk",
        "https://drive.google.com/file/d/1QYSAp9VfkjqsKe51aYYMFTxz-TJBOW6S/view?usp=drivesdk",
        "https://drive.google.com/file/d/1iZ7PeCP1TbJPBdsn6T1wgFmFsR-Ntksz/view?usp=drivesdk",
        "https://drive.google.com/file/d/1G4xNYs2RcspM_A7sRkVCiwD9BgTONx3i/view?usp=drivesdk",
        "https://drive.google.com/file/d/1FpuWsh5LO1cDKT41QuFoPEyGXhSbvvWX/view?usp=drivesdk",
        "https://drive.google.com/file/d/1-bNSB0TR9nGJAZPvgAkgJLzOXCrFpgJx/view?usp=drivesdk",
        "https://drive.google.com/file/d/19hGnoA1qQOgHmrm8pAjVFi1fxmmd_dym/view?usp=drivesdk",
        "https://drive.google.com/file/d/1MAVMon2JQ10FF3RHZcX57Wc0LPKSdq4l/view?usp=drivesdk",
        "https://drive.google.com/file/d/1zagxydHw7J4WjOMOKZo-RNWUuGUjp-Hc/view?usp=drivesdk",
        "https://drive.google.com/file/d/1ylgsWdGRQn1WF7_ZrNuffFW6949xIh0x/view?usp=drivesdk",
        "https://drive.google.com/file/d/1gLVjbweGr01QTpOgTY8mSJ4VVGFQPxVl/view?usp=drivesdk",
        "https://drive.google.com/file/d/1O0kn3yO1uI5n0poa3NNtkcVbDnS-anK5/view?usp=drivesdk",
        "https://drive.google.com/file/d/1SupJJOkd8kWEpiuU4xEYZiHbvueTLA4x/view?usp=drivesdk",
        "https://drive.google.com/file/d/1p1sveQ80j576sSvTD9KVZbGh9seOmR7z/view?usp=drivesdk",
        "https://drive.google.com/file/d/1KSRTr9T8Cmdk45xx0plVmodb42w7XSVq/view?usp=drivesdk",
    ],
    "selected_model": "claude_4_6_sonnet",
    "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=sehpskq8bmbw",
    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=sehpskq8bmbw' \
  -H "Authorization: bearer $GOOEY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "documents": [
    "https://drive.google.com/file/d/1PihkSLvBrrp-QV0Oq7MKC4AqcFrnwqHR/view?usp=drivesdk",
    "https://drive.google.com/file/d/16p9P5GVEL6xfXMYlUmiGmCDMmH89KpxG/view?usp=drivesdk",
    "https://drive.google.com/file/d/1EObxS21AL-EUbbz5lCemAWsGjxglBDO8/view?usp=drivesdk",
    "https://drive.google.com/file/d/1AiLxv6rl0T9Y4gjQ_Z8JTv2B0OzUXscb/view?usp=drivesdk",
    "https://drive.google.com/file/d/1Zu49xJ8tAGDTnT5Mj6-Wlzu0wzRyUBLq/view?usp=drivesdk",
    "https://drive.google.com/file/d/1MezDJ3fYmMhitlvYvkNQ8aR19EcRbm68/view?usp=drivesdk",
    "https://drive.google.com/file/d/1hHZ56aTKZJIYym5R-d5C0Bc40fQw1vwb/view?usp=drivesdk",
    "https://drive.google.com/file/d/1b78kwHlKbBrlLAkzjjmV5LVWZA8rr4KY/view?usp=drivesdk",
    "https://drive.google.com/file/d/1saCvm_QMH8tiK68U6FmUJs8MyXBgzn2L/view?usp=drivesdk",
    "https://drive.google.com/file/d/1K-B8CnVNgo3kx8K_4R7HB6hO1Z4SwDrk/view?usp=drivesdk",
    "https://drive.google.com/file/d/1rgYyhvGAlV0hgw2EVjOQNAYjlkZZSz6T/view?usp=drivesdk",
    "https://drive.google.com/file/d/13GcQwEHODgNUr7Wq2yV7aqNDq9wecRV2/view?usp=drivesdk",
    "https://drive.google.com/file/d/1IDCp26cf6emTr0lZqBrMZ6d0tL4A_v2e/view?usp=drivesdk",
    "https://drive.google.com/file/d/1oIT4pAgixd98cZKF4WeU9WxFZfYom4EK/view?usp=drivesdk",
    "https://drive.google.com/file/d/13mNL4aDTYNazhoSxnV0BRxEqHXq2UbhR/view?usp=drivesdk",
    "https://drive.google.com/file/d/1vdQClJMArFHOZoXoFfqekFc7-rgg80Ft/view?usp=drivesdk",
    "https://drive.google.com/file/d/1P5oqGK6C2uSz4RzxyhLEgwjFqjkv5-EQ/view?usp=drivesdk",
    "https://drive.google.com/file/d/15ksEHqA54DlyfzQjtxtoIEColPHxE-LD/view?usp=drivesdk",
    "https://drive.google.com/file/d/1v5KOUExpOFpmiYCnWSMC3eGDpVWi2I1v/view?usp=drivesdk",
    "https://drive.google.com/file/d/1QYSAp9VfkjqsKe51aYYMFTxz-TJBOW6S/view?usp=drivesdk",
    "https://drive.google.com/file/d/1iZ7PeCP1TbJPBdsn6T1wgFmFsR-Ntksz/view?usp=drivesdk",
    "https://drive.google.com/file/d/1G4xNYs2RcspM_A7sRkVCiwD9BgTONx3i/view?usp=drivesdk",
    "https://drive.google.com/file/d/1FpuWsh5LO1cDKT41QuFoPEyGXhSbvvWX/view?usp=drivesdk",
    "https://drive.google.com/file/d/1-bNSB0TR9nGJAZPvgAkgJLzOXCrFpgJx/view?usp=drivesdk",
    "https://drive.google.com/file/d/19hGnoA1qQOgHmrm8pAjVFi1fxmmd_dym/view?usp=drivesdk",
    "https://drive.google.com/file/d/1MAVMon2JQ10FF3RHZcX57Wc0LPKSdq4l/view?usp=drivesdk",
    "https://drive.google.com/file/d/1zagxydHw7J4WjOMOKZo-RNWUuGUjp-Hc/view?usp=drivesdk",
    "https://drive.google.com/file/d/1ylgsWdGRQn1WF7_ZrNuffFW6949xIh0x/view?usp=drivesdk",
    "https://drive.google.com/file/d/1gLVjbweGr01QTpOgTY8mSJ4VVGFQPxVl/view?usp=drivesdk",
    "https://drive.google.com/file/d/1O0kn3yO1uI5n0poa3NNtkcVbDnS-anK5/view?usp=drivesdk",
    "https://drive.google.com/file/d/1SupJJOkd8kWEpiuU4xEYZiHbvueTLA4x/view?usp=drivesdk",
    "https://drive.google.com/file/d/1p1sveQ80j576sSvTD9KVZbGh9seOmR7z/view?usp=drivesdk",
    "https://drive.google.com/file/d/1KSRTr9T8Cmdk45xx0plVmodb42w7XSVq/view?usp=drivesdk"
  ],
  "selected_model": "claude_4_6_sonnet",
  "document_model": "azure-prebuilt-layout",
  "language": null,
  "translation_model": null,
  "translation_target": "en"
}'

🎁 Example Response

{4 Items
"id"
:
string
"9pito6cfbil7"
"url"
:
string
"https://test.gooey.ai/doc-extract/"
"created_at"
:
string
"2026-03-30T22:08:39.535558+00:00"
"output"
:
{1 Items
"output_documents"
:
NULL
}
}

Please Login to generate the $GOOEY_API_KEY