---
title: "Extracts hyperlink data from a specified URL"
method: POST
path: "/extractLinksFromUrl"
---

# Extracts hyperlink data from a specified URL

`POST /extractLinksFromUrl`

The extractLinksFromUrl function is a convenience wrapper that opens a given URL, extracts all hyperlinks from the webpage, and then closes the browser. It returns detailed information about each extracted link, including its href, display name, type, and various boolean flags indicating the link's characteristics.

## Request body

- object
  - `body` object — Body of the extractLinksFromUrl sls call
    - `arguments` object, required — Configuration object containing all function parameters.
      - `url` string, required — The URL of the webpage from which to extract links.
      - `headless` boolean — Determines if the browser should run in headless mode.

## Response `200`

Successful response with extracted links

- object[]
  - `href` string, required — The URL of the extracted link
  - `displayName` string, required — The visible text of the link
  - `type` 'statix' | 'webpage', required — The type of the link
  - `inPageLink` boolean, required — Indicates if the link is within the same page
  - `externalLink` boolean, required — Indicates if the link points to an external resource
  - `internalLink` boolean, required — Indicates if the link points to an internal resource
  - `staticType` 'video' | 'image' | 'file' | 'other' — The type of static content, if applicable
  - `fileExtension` string — The file extension, if applicable

## Other responses

- `400` — Bad request - invalid input parameters
- `500` — Internal server error

## Changes

- **2025-07-11** `b7199116b192` — 1 warning
  - removed the request property `body/arguments/isLocal`
- **2025-07-10** `d193868de840` — 1 info
  - added the new optional request property `body/arguments/isLocal`

[Change history](https://skmtc.dev/microfox-ai/apis/chrome-browser-use/changes/extractLinksFromUrl/post.md)

---

[API](https://skmtc.dev/microfox-ai/apis/chrome-browser-use.md) · [All operations](https://skmtc.dev/microfox-ai/apis/chrome-browser-use/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microfox-ai/chrome-browser-use/revisions/b9d32be518ee/schema)
