{
  "info": {
    "_postman_id": "bcd4be70-471f-4bab-bc18-77941fb67592",
    "name": "AgentQL Query Data API",
    "description": "AgentQL connects LLMs and AI agents to the entire web through natural language queries, enabling structured data extraction from web pages, documents, and browser sessions. Generated from documentation.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T00:28:42.000Z",
    "updatedAt": "2026-07-28T00:28:42.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-bcd4be70-471f-4bab-bc18-77941fb67592"
  },
  "item": [
    {
      "name": "query-data",
      "item": [
        {
          "name": "AgentQL Query Web Page Data",
          "id": "27c048ea-583d-4fdd-b584-d588f1b4ede3",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"<uri>\",\n  \"html\": \"<string>\",\n  \"query\": \"<string>\",\n  \"prompt\": \"<string>\",\n  \"params\": {\n    \"mode\": \"standard\",\n    \"wait_for\": \"<integer>\",\n    \"scroll_to_bottom\": \"<boolean>\",\n    \"include_screenshot\": \"<boolean>\",\n    \"browser_profile\": \"stealth\"\n  }\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/query-data",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "query-data"
              ]
            },
            "description": "Extract structured JSON data from a web page using AgentQL query language or natural language prompt. Supports URL-based and raw HTML input with configurable browser behavior."
          },
          "response": [
            {
              "id": "a08802f7-dade-439b-a07b-a45511446b02",
              "name": "Successful data extraction",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "X-API-Key",
                    "value": "<API Key>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"<uri>\",\n  \"html\": \"<string>\",\n  \"query\": \"<string>\",\n  \"prompt\": \"<string>\",\n  \"params\": {\n    \"mode\": \"standard\",\n    \"wait_for\": \"<integer>\",\n    \"scroll_to_bottom\": \"<boolean>\",\n    \"include_screenshot\": \"<boolean>\",\n    \"browser_profile\": \"stealth\"\n  }\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/query-data",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "query-data"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"data\": {},\n  \"metadata\": {\n    \"request_id\": \"<string>\",\n    \"response_time_ms\": \"<integer>\"\n  }\n}",
              "createdAt": "2026-07-28T00:28:42.000Z",
              "updatedAt": "2026-07-28T00:28:42.000Z",
              "uid": "35240-a08802f7-dade-439b-a07b-a45511446b02"
            },
            {
              "id": "aab50b4c-81d4-44fe-9510-c467afde4fd1",
              "name": "Bad request \u2014 invalid query or missing required parameters",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "X-API-Key",
                    "value": "<API Key>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"<uri>\",\n  \"html\": \"<string>\",\n  \"query\": \"<string>\",\n  \"prompt\": \"<string>\",\n  \"params\": {\n    \"mode\": \"standard\",\n    \"wait_for\": \"<integer>\",\n    \"scroll_to_bottom\": \"<boolean>\",\n    \"include_screenshot\": \"<boolean>\",\n    \"browser_profile\": \"stealth\"\n  }\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/query-data",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "query-data"
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"error\": \"<string>\",\n  \"message\": \"<string>\",\n  \"request_id\": \"<string>\"\n}",
              "createdAt": "2026-07-28T00:28:42.000Z",
              "updatedAt": "2026-07-28T00:28:42.000Z",
              "uid": "35240-aab50b4c-81d4-44fe-9510-c467afde4fd1"
            },
            {
              "id": "d7148781-f248-4d28-a211-b2b52adad5f9",
              "name": "Unauthorized \u2014 invalid or missing API key",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "X-API-Key",
                    "value": "<API Key>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"<uri>\",\n  \"html\": \"<string>\",\n  \"query\": \"<string>\",\n  \"prompt\": \"<string>\",\n  \"params\": {\n    \"mode\": \"standard\",\n    \"wait_for\": \"<integer>\",\n    \"scroll_to_bottom\": \"<boolean>\",\n    \"include_screenshot\": \"<boolean>\",\n    \"browser_profile\": \"stealth\"\n  }\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/query-data",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "query-data"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"error\": \"<string>\",\n  \"message\": \"<string>\",\n  \"request_id\": \"<string>\"\n}",
              "createdAt": "2026-07-28T00:28:42.000Z",
              "updatedAt": "2026-07-28T00:28:42.000Z",
              "uid": "35240-d7148781-f248-4d28-a211-b2b52adad5f9"
            },
            {
              "id": "2637bf4c-af2b-4170-81bc-757039c9771d",
              "name": "Rate limit exceeded",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "X-API-Key",
                    "value": "<API Key>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"<uri>\",\n  \"html\": \"<string>\",\n  \"query\": \"<string>\",\n  \"prompt\": \"<string>\",\n  \"params\": {\n    \"mode\": \"standard\",\n    \"wait_for\": \"<integer>\",\n    \"scroll_to_bottom\": \"<boolean>\",\n    \"include_screenshot\": \"<boolean>\",\n    \"browser_profile\": \"stealth\"\n  }\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/query-data",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "query-data"
                  ]
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"error\": \"<string>\",\n  \"message\": \"<string>\",\n  \"request_id\": \"<string>\"\n}",
              "createdAt": "2026-07-28T00:28:42.000Z",
              "updatedAt": "2026-07-28T00:28:42.000Z",
              "uid": "35240-2637bf4c-af2b-4170-81bc-757039c9771d"
            }
          ],
          "createdAt": "2026-07-28T00:28:42.000Z",
          "updatedAt": "2026-07-28T00:28:42.000Z",
          "uid": "35240-27c048ea-583d-4fdd-b584-d588f1b4ede3"
        }
      ],
      "id": "10dffeea-0185-4478-aa0d-fbe6cc5e4c5f",
      "createdAt": "2026-07-28T00:28:42.000Z",
      "updatedAt": "2026-07-28T00:28:42.000Z",
      "uid": "35240-10dffeea-0185-4478-aa0d-fbe6cc5e4c5f"
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-API-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.agentql.com/v1"
    }
  ]
}