extract
URL Extractor
Extract all URLs from any text with an API-ready URL extractor.
1 credit / run
Playground
About this tool
URL extractor API helps you pull every URL from raw text in a single request. Use this URL extractor to harvest links from documents, parse content for references, or process user submissions. It scans for http and https patterns, cleans up trailing punctuation, deduplicates results, and returns a clean array of URLs. Send any block of text and the URL extractor identifies links using a proven regex pattern. Whether you are processing articles, parsing chat logs, or extracting references from reports, this tool gives you a reliable list of unique URLs without manual extraction. The URL extractor recognizes both http and https links and handles common edge cases like URLs followed by punctuation or embedded in sentences. It automatically strips trailing periods, commas, and other punctuation that often attach to URLs in natural text. Results are deduplicated before returning. Common use cases include content analysis, link harvesting, and data cleaning. Developers embed this URL extractor in automation scripts to pull references from documents or chat exports. Researchers use it to collect sources from papers or articles. The API returns results instantly, suitable for real-time processing or batch jobs. The endpoint accepts POST requests with a JSON body containing your text. The response includes an array of unique URLs found in the input. Empty results return an empty array, so you can safely iterate without null checks. This URL extractor works well alongside extract-emails-from-text and extract-phones-from-text for complete contact and reference extraction. For extracting links from HTML anchor tags instead of plain text, use extract-links-from-html.
Inputs
Name
Type
Required
Description
Outputs
Name
Type
Description
urls
array
Array of unique URLs found in the text.
Examples
Request
{ "text": "Check out https://example.com for more info. Also see http://docs.example.com/guide and https://example.com again." }
Response
{ "urls": [ "https://example.com", "http://docs.example.com/guide" ] }
Frequently Asked Questions
What does the URL extractor return?
An array of unique URLs found in your text, with trailing punctuation cleaned and duplicates removed.
Which URL formats are supported?
It extracts both http and https URLs. Other protocols like ftp or mailto are not included.
Does it handle URLs with punctuation?
Yes, the URL extractor strips trailing periods, commas, and other punctuation commonly found after URLs in text.
How do I call the URL extractor API?
POST to /api/run/extract-urls-from-text with a JSON body containing your text field.
Are duplicate URLs removed?
Yes, the URL extractor automatically deduplicates results before returning them.
Changelog
2025-01-05
Initial tool release.
Similar Tools
Browse additional tools within this category that solve related problems. Each tool is designed to handle a specific task, but they work best when combined. Use multiple endpoints together to create efficient data processing pipelines, automate repetitive tasks, or build complete solutions tailored to your needs."
extract
URL Extractor
Extract all URLs from any text with an API-ready URL extractor.
1 credit / run
View Tool
->
extract
HTML Table Parser
Extract all tables with headers and rows from raw HTML with an API-ready table parser.
1 credit / run
View Tool
->
extract
HTML Form Parser
Parse and extract all forms and input fields from HTML with an API-ready form parser.
1 credit / run
View Tool
->
Top quality, fair pricing
Start free, then unlock premium tools and higher limits when you’re ready.
Guest
$0Forever
For quick tests and light usage.
- Privacy first
- Access to basic tools
- Strict rate limits applied
- No API keys needed
- No support
Paid
$79/ month
For production apps and premium tools.
- Privacy first
- Access to basic tools
- Access to premium tools
- Access to AI tools
- Higher rate limits
- Priority support
- Usage insights
- 250,000 credits per month
Enterprise
Custom
For teams needing custom limits, security, and SLAs.
- Privacy first
- Full access to tools
- Custom limits
- SLA
- Dedicated support
- Team onboarding
- Security review
- Real‑time streaming responses
Technical & Professional Built for Divhunt. Available for Enterprise.
Skip building infrastructure. Use the same battle-tested APIs that power Divhunt V2.
Get in Touch
Built in Divhunt
We use cookies.
By clicking “Accept All”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View ourCookie Policyfor more information.
Optahunt
Preferences
Manage your cookie preferences.
Essentials
Always Active
These are required for the website to work, like remembering your privacy settings, keeping you logged in, or enabling secure payments.
Performance
These help us understand how people use our site (like which pages are most popular) so we can make improvements.
Personalization
These allow the site to remember your preferences (such as language or region) and provide enhanced features.
Advertising & Targeting
These are used to deliver ads more relevant to you, limit how often you see them, and measure campaign performance.
Save my preferences
You can always change these settings later via ourCookie Policy pagepage, or via the cookie widget placed at the bottom left of the page.