---
title: URls Detector API
slug: detect-urls
url: https://apyhub.com/sharpapi/service/detect-urls
provider: SharpAPI
categories: [Ingestion Kit, Retrieval Kit]
tags: [url-detection, link-extraction, text-parsing, web-scraping, developer-tools]
auth: api_key
version: 1.0.0
service_type: job
endpoints: 2
atoms: 1-1000
mcp: true
alias: sharpapi-urls-detector-api
---

# URls Detector API

Extract URLs from any content string and poll for results. Returns each detected link with its full URL and protocol for parsing and moderation.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/sharpapi/detect-urls` | What it does Submits content for asynchronous URL detection and returns identifiers you can use to… | 1000 |
| GET | `https://api.eu.apyhub.com/sharpapi/detect-urls/job/status/:job_id` | What it does Checks the status of an asynchronous URL-detection job by job ID and returns the job r… | 1 |

## Endpoint reference

### URLs Detector - Submit Job

`POST https://api.eu.apyhub.com/sharpapi/detect-urls` · 1000 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `content` | body | string | yes | The content from which URLs are to be detected. |

#### Quickstart

Submit text content to detect URLs in it.

```bash
curl -X POST "https://api.eu.apyhub.com/sharpapi/detect-urls" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content":"Check out https://apyhub.com and https://docs.apyhub.com for more details."}'
```

#### What you'll get back

Returns a JSON object with a `job_id` string — the UUID of the submitted job. Poll the job status endpoint with this id to retrieve the result.

```json
{
  "job_id": "ea6ff234-1b4b-4b60-acf2-8343ec37aa02"
}
```

### URLs Detector - Check Job Status

`GET https://api.eu.apyhub.com/sharpapi/detect-urls/job/status/:job_id` · 1 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `job_id` | path | string (uuid) | yes |  |

#### Quickstart

Check the status of a detect-urls job by its job ID.

```bash
curl -X GET "https://api.eu.apyhub.com/sharpapi/detect-urls/job/status/:job_id" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with a `data` object. The `data` object contains `id` and `type`, plus an `attributes` object with `type`, `result`, and `status`.

```json
{
  "data": {
    "id": "2f3d9d3a-8c2d-4f2e-9c7f-3a1b2c4d5e6f",
    "type": "api_job_result",
    "attributes": {
      "type": "content_detect_urls",
      "result": [
        {
          "url": "https://example.com",
          "protocol": "https"
        }
      ],
      "status": "success"
    }
  }
}
```

## About

## What it does
URL Detector finds web links in text and returns them in a structured job result. Send a `content` string, receive a `job_id`, then poll the status endpoint until the job finishes.

When the job succeeds, the result includes a `data` object with `id`, `type`, and `attributes`. Inside `attributes`, you get the job `type`, the final `status`, and a `result` array of detected URLs. Each item in that array includes the full `url` and its `protocol`, so you can separate `https` links from `mailto`, `tel`, `ftp`, and other schemes.

Use URL Detector when you need to pull links out of user-submitted text, support tickets, documents, or logs before saving them, validating them, or turning them into clickable references. It fits well in moderation pipelines, content ingestion jobs, and link audit workflows where you need the exact URLs rather than a broad text analysis.

The API is asynchronous, which makes it suitable for larger inputs and background processing. Check `status` for `queued`, `running`, `failed`, or `success`, then read the detected URLs from `attributes.result` once processing is complete.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/sharpapi/service/detect-urls
