Search the news
curl --request POST \
--url https://api.hydrafetch.com/v1/web/news \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"query": "startup raises series A",
"limit": 10,
"timeRange": "week",
"maxAge": 0,
"country": "us",
"includeDomains": [
"techcrunch.com"
],
"excludeDomains": [
"prnewswire.com"
],
"scrapeResults": false,
"scrapeOptions": {
"formats": [
"markdown"
],
"onlyMainContent": true,
"includeTags": [
"<string>"
],
"excludeTags": [
"<string>"
],
"removeBase64Images": true,
"blockAds": true,
"dismissCookies": true,
"dismissPopups": true,
"render": true,
"includeLinks": true,
"waitFor": 15000,
"waitForSelector": ".price",
"mobile": true,
"timeout": 50500,
"location": {
"country": "us",
"languages": [
"en-US",
"en"
]
},
"headers": {},
"preferStructure": true,
"maxAge": 302400000
}
}
'import requests
url = "https://api.hydrafetch.com/v1/web/news"
payload = {
"query": "startup raises series A",
"limit": 10,
"timeRange": "week",
"maxAge": 0,
"country": "us",
"includeDomains": ["techcrunch.com"],
"excludeDomains": ["prnewswire.com"],
"scrapeResults": False,
"scrapeOptions": {
"formats": ["markdown"],
"onlyMainContent": True,
"includeTags": ["<string>"],
"excludeTags": ["<string>"],
"removeBase64Images": True,
"blockAds": True,
"dismissCookies": True,
"dismissPopups": True,
"render": True,
"includeLinks": True,
"waitFor": 15000,
"waitForSelector": ".price",
"mobile": True,
"timeout": 50500,
"location": {
"country": "us",
"languages": ["en-US", "en"]
},
"headers": {},
"preferStructure": True,
"maxAge": 302400000
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'startup raises series A',
limit: 10,
timeRange: 'week',
maxAge: 0,
country: 'us',
includeDomains: ['techcrunch.com'],
excludeDomains: ['prnewswire.com'],
scrapeResults: false,
scrapeOptions: {
formats: ['markdown'],
onlyMainContent: true,
includeTags: ['<string>'],
excludeTags: ['<string>'],
removeBase64Images: true,
blockAds: true,
dismissCookies: true,
dismissPopups: true,
render: true,
includeLinks: true,
waitFor: 15000,
waitForSelector: '.price',
mobile: true,
timeout: 50500,
location: {country: 'us', languages: ['en-US', 'en']},
headers: {},
preferStructure: true,
maxAge: 302400000
}
})
};
fetch('https://api.hydrafetch.com/v1/web/news', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hydrafetch.com/v1/web/news",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'startup raises series A',
'limit' => 10,
'timeRange' => 'week',
'maxAge' => 0,
'country' => 'us',
'includeDomains' => [
'techcrunch.com'
],
'excludeDomains' => [
'prnewswire.com'
],
'scrapeResults' => false,
'scrapeOptions' => [
'formats' => [
'markdown'
],
'onlyMainContent' => true,
'includeTags' => [
'<string>'
],
'excludeTags' => [
'<string>'
],
'removeBase64Images' => true,
'blockAds' => true,
'dismissCookies' => true,
'dismissPopups' => true,
'render' => true,
'includeLinks' => true,
'waitFor' => 15000,
'waitForSelector' => '.price',
'mobile' => true,
'timeout' => 50500,
'location' => [
'country' => 'us',
'languages' => [
'en-US',
'en'
]
],
'headers' => [
],
'preferStructure' => true,
'maxAge' => 302400000
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hydrafetch.com/v1/web/news"
payload := strings.NewReader("{\n \"query\": \"startup raises series A\",\n \"limit\": 10,\n \"timeRange\": \"week\",\n \"maxAge\": 0,\n \"country\": \"us\",\n \"includeDomains\": [\n \"techcrunch.com\"\n ],\n \"excludeDomains\": [\n \"prnewswire.com\"\n ],\n \"scrapeResults\": false,\n \"scrapeOptions\": {\n \"formats\": [\n \"markdown\"\n ],\n \"onlyMainContent\": true,\n \"includeTags\": [\n \"<string>\"\n ],\n \"excludeTags\": [\n \"<string>\"\n ],\n \"removeBase64Images\": true,\n \"blockAds\": true,\n \"dismissCookies\": true,\n \"dismissPopups\": true,\n \"render\": true,\n \"includeLinks\": true,\n \"waitFor\": 15000,\n \"waitForSelector\": \".price\",\n \"mobile\": true,\n \"timeout\": 50500,\n \"location\": {\n \"country\": \"us\",\n \"languages\": [\n \"en-US\",\n \"en\"\n ]\n },\n \"headers\": {},\n \"preferStructure\": true,\n \"maxAge\": 302400000\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hydrafetch.com/v1/web/news")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"startup raises series A\",\n \"limit\": 10,\n \"timeRange\": \"week\",\n \"maxAge\": 0,\n \"country\": \"us\",\n \"includeDomains\": [\n \"techcrunch.com\"\n ],\n \"excludeDomains\": [\n \"prnewswire.com\"\n ],\n \"scrapeResults\": false,\n \"scrapeOptions\": {\n \"formats\": [\n \"markdown\"\n ],\n \"onlyMainContent\": true,\n \"includeTags\": [\n \"<string>\"\n ],\n \"excludeTags\": [\n \"<string>\"\n ],\n \"removeBase64Images\": true,\n \"blockAds\": true,\n \"dismissCookies\": true,\n \"dismissPopups\": true,\n \"render\": true,\n \"includeLinks\": true,\n \"waitFor\": 15000,\n \"waitForSelector\": \".price\",\n \"mobile\": true,\n \"timeout\": 50500,\n \"location\": {\n \"country\": \"us\",\n \"languages\": [\n \"en-US\",\n \"en\"\n ]\n },\n \"headers\": {},\n \"preferStructure\": true,\n \"maxAge\": 302400000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hydrafetch.com/v1/web/news")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"startup raises series A\",\n \"limit\": 10,\n \"timeRange\": \"week\",\n \"maxAge\": 0,\n \"country\": \"us\",\n \"includeDomains\": [\n \"techcrunch.com\"\n ],\n \"excludeDomains\": [\n \"prnewswire.com\"\n ],\n \"scrapeResults\": false,\n \"scrapeOptions\": {\n \"formats\": [\n \"markdown\"\n ],\n \"onlyMainContent\": true,\n \"includeTags\": [\n \"<string>\"\n ],\n \"excludeTags\": [\n \"<string>\"\n ],\n \"removeBase64Images\": true,\n \"blockAds\": true,\n \"dismissCookies\": true,\n \"dismissPopups\": true,\n \"render\": true,\n \"includeLinks\": true,\n \"waitFor\": 15000,\n \"waitForSelector\": \".price\",\n \"mobile\": true,\n \"timeout\": 50500,\n \"location\": {\n \"country\": \"us\",\n \"languages\": [\n \"en-US\",\n \"en\"\n ]\n },\n \"headers\": {},\n \"preferStructure\": true,\n \"maxAge\": 302400000\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"query": "startup raises series A",
"status": "ok",
"results": [
{
"title": "Acme raises $45M in Series A round",
"url": "https://example.com/news/acme-series-a",
"source": "Example News",
"publishedAt": "2026-11-03T09:12:00.000Z",
"snippet": "The startup raised $45 million to expand into Europe.",
"data": {
"url": "https://example.com",
"finalUrl": "https://example.com/",
"redirected": false,
"status": 200,
"cached": false,
"metadata": {
"title": "Example Domain",
"structure": "markdown",
"pageType": "article",
"wordCount": 214,
"description": "A short summary of the page, as published by the page itself.",
"language": "en",
"author": "Jane Doe",
"siteName": "Example Blog",
"publishedTime": "2026-01-05",
"modifiedTime": "2026-02-11",
"image": "https://example.com/cover.png"
},
"warning": "<string>",
"usage": {
"creditsUsed": 1,
"creditsRemaining": 4999,
"freshness": "fresh"
},
"quality": {
"confidence": 0.94,
"complete": true,
"blocked": false
},
"markdown": "<string>",
"html": "<string>",
"rawHtml": "<string>",
"links": {
"internal": [
"<string>"
],
"external": [
"<string>"
]
},
"structured": {
"entities": [
{
"type": "Product",
"source": "json-ld",
"properties": {}
}
],
"jsonLd": [
{}
],
"microdata": [
{}
],
"opengraph": [
{}
],
"appState": [
"<string>"
]
},
"summary": "<string>",
"json": {},
"brand": {
"domain": "stripe.com",
"name": "Stripe",
"description": "Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.",
"tagline": "Financial infrastructure to grow your revenue.",
"assets": [
{
"kind": "symbol",
"variant": "light",
"url": "https://media.hydrafetch.com/brand/a0/a07c2695173dde0a1ffa.svg",
"format": "svg",
"resolution": {
"width": 180,
"height": 180,
"aspectRatio": 1
},
"colors": [
{
"hex": "#533afd",
"weight": 0.42,
"name": "Indigo",
"role": "primary"
}
],
"blurhash": "LmGk_aoh4sWHohWEWDt506WD?Sod"
}
],
"colors": [
{
"hex": "#533afd",
"weight": 0.42,
"name": "Indigo",
"role": "primary"
}
],
"fonts": [
{
"family": "Sohne",
"weight": 1,
"role": "body"
}
],
"socials": [
{
"platform": "x",
"url": "https://x.com/stripe",
"handle": "stripe"
}
],
"links": {
"pricing": "https://stripe.com/pricing",
"blog": "https://stripe.com/blog",
"careers": "https://stripe.com/jobs",
"contact": "https://stripe.com/contact",
"privacy": "https://stripe.com/privacy",
"terms": "https://stripe.com/legal",
"docs": "https://docs.stripe.com"
},
"sources": {},
"resolvedAt": "2026-08-22T10:14:03.000Z",
"queriedDomain": "stripe.co.uk",
"aliases": [
"<string>"
],
"naics": {
"code": "5223",
"title": "Activities Related to Credit Intermediation",
"level": "industry_group",
"sector": {
"code": "52",
"title": "Finance and Insurance"
},
"confidence": 0.8
},
"email": "support@stripe.com",
"legalName": "Stripe, Inc.",
"metaDescription": "Stripe powers online and in-person payment processing for businesses of all sizes.",
"phone": "+1 888 926 2289",
"address": {
"street": "354 Oyster Point Blvd",
"city": "South San Francisco",
"region": "CA",
"postalCode": "94080",
"country": "US"
},
"foundedYear": 2010
}
}
}
]
}
}{
"jobId": "019f3c09-6fae-740f-9257-10c2b6af7f43",
"status": "running",
"poll": "/v1/web/jobs/019f3c09-6fae-740f-9257-10c2b6af7f43"
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "url must be a valid URL"
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Missing X-API-Key header. Agents: https://hydrafetch.com/auth.md"
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "Insufficient credits"
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "WORKSPACE_BANNED",
"message": "This workspace has been suspended and cannot make API requests."
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Job not found"
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "IDEMPOTENCY_IN_PROGRESS",
"message": "A request with this Idempotency-Key is still running."
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "UPSTREAM_UNREACHABLE",
"message": "The origin did not respond to any attempt we made."
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "TOO_MANY_REQUESTS",
"message": "Rate limit exceeded for this workspace and plan."
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error"
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "The summary and json formats are not available."
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}Search the news
Find recent news articles about a query, newest first, each with its outlet and publish time. Costs 1 credit; a search that finds nothing is free. Set scrapeResults to true to also read each article as clean data, at 1 additional credit per article read.
POST
/
v1
/
web
/
news
Search the news
curl --request POST \
--url https://api.hydrafetch.com/v1/web/news \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"query": "startup raises series A",
"limit": 10,
"timeRange": "week",
"maxAge": 0,
"country": "us",
"includeDomains": [
"techcrunch.com"
],
"excludeDomains": [
"prnewswire.com"
],
"scrapeResults": false,
"scrapeOptions": {
"formats": [
"markdown"
],
"onlyMainContent": true,
"includeTags": [
"<string>"
],
"excludeTags": [
"<string>"
],
"removeBase64Images": true,
"blockAds": true,
"dismissCookies": true,
"dismissPopups": true,
"render": true,
"includeLinks": true,
"waitFor": 15000,
"waitForSelector": ".price",
"mobile": true,
"timeout": 50500,
"location": {
"country": "us",
"languages": [
"en-US",
"en"
]
},
"headers": {},
"preferStructure": true,
"maxAge": 302400000
}
}
'import requests
url = "https://api.hydrafetch.com/v1/web/news"
payload = {
"query": "startup raises series A",
"limit": 10,
"timeRange": "week",
"maxAge": 0,
"country": "us",
"includeDomains": ["techcrunch.com"],
"excludeDomains": ["prnewswire.com"],
"scrapeResults": False,
"scrapeOptions": {
"formats": ["markdown"],
"onlyMainContent": True,
"includeTags": ["<string>"],
"excludeTags": ["<string>"],
"removeBase64Images": True,
"blockAds": True,
"dismissCookies": True,
"dismissPopups": True,
"render": True,
"includeLinks": True,
"waitFor": 15000,
"waitForSelector": ".price",
"mobile": True,
"timeout": 50500,
"location": {
"country": "us",
"languages": ["en-US", "en"]
},
"headers": {},
"preferStructure": True,
"maxAge": 302400000
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'startup raises series A',
limit: 10,
timeRange: 'week',
maxAge: 0,
country: 'us',
includeDomains: ['techcrunch.com'],
excludeDomains: ['prnewswire.com'],
scrapeResults: false,
scrapeOptions: {
formats: ['markdown'],
onlyMainContent: true,
includeTags: ['<string>'],
excludeTags: ['<string>'],
removeBase64Images: true,
blockAds: true,
dismissCookies: true,
dismissPopups: true,
render: true,
includeLinks: true,
waitFor: 15000,
waitForSelector: '.price',
mobile: true,
timeout: 50500,
location: {country: 'us', languages: ['en-US', 'en']},
headers: {},
preferStructure: true,
maxAge: 302400000
}
})
};
fetch('https://api.hydrafetch.com/v1/web/news', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hydrafetch.com/v1/web/news",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'startup raises series A',
'limit' => 10,
'timeRange' => 'week',
'maxAge' => 0,
'country' => 'us',
'includeDomains' => [
'techcrunch.com'
],
'excludeDomains' => [
'prnewswire.com'
],
'scrapeResults' => false,
'scrapeOptions' => [
'formats' => [
'markdown'
],
'onlyMainContent' => true,
'includeTags' => [
'<string>'
],
'excludeTags' => [
'<string>'
],
'removeBase64Images' => true,
'blockAds' => true,
'dismissCookies' => true,
'dismissPopups' => true,
'render' => true,
'includeLinks' => true,
'waitFor' => 15000,
'waitForSelector' => '.price',
'mobile' => true,
'timeout' => 50500,
'location' => [
'country' => 'us',
'languages' => [
'en-US',
'en'
]
],
'headers' => [
],
'preferStructure' => true,
'maxAge' => 302400000
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hydrafetch.com/v1/web/news"
payload := strings.NewReader("{\n \"query\": \"startup raises series A\",\n \"limit\": 10,\n \"timeRange\": \"week\",\n \"maxAge\": 0,\n \"country\": \"us\",\n \"includeDomains\": [\n \"techcrunch.com\"\n ],\n \"excludeDomains\": [\n \"prnewswire.com\"\n ],\n \"scrapeResults\": false,\n \"scrapeOptions\": {\n \"formats\": [\n \"markdown\"\n ],\n \"onlyMainContent\": true,\n \"includeTags\": [\n \"<string>\"\n ],\n \"excludeTags\": [\n \"<string>\"\n ],\n \"removeBase64Images\": true,\n \"blockAds\": true,\n \"dismissCookies\": true,\n \"dismissPopups\": true,\n \"render\": true,\n \"includeLinks\": true,\n \"waitFor\": 15000,\n \"waitForSelector\": \".price\",\n \"mobile\": true,\n \"timeout\": 50500,\n \"location\": {\n \"country\": \"us\",\n \"languages\": [\n \"en-US\",\n \"en\"\n ]\n },\n \"headers\": {},\n \"preferStructure\": true,\n \"maxAge\": 302400000\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hydrafetch.com/v1/web/news")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"startup raises series A\",\n \"limit\": 10,\n \"timeRange\": \"week\",\n \"maxAge\": 0,\n \"country\": \"us\",\n \"includeDomains\": [\n \"techcrunch.com\"\n ],\n \"excludeDomains\": [\n \"prnewswire.com\"\n ],\n \"scrapeResults\": false,\n \"scrapeOptions\": {\n \"formats\": [\n \"markdown\"\n ],\n \"onlyMainContent\": true,\n \"includeTags\": [\n \"<string>\"\n ],\n \"excludeTags\": [\n \"<string>\"\n ],\n \"removeBase64Images\": true,\n \"blockAds\": true,\n \"dismissCookies\": true,\n \"dismissPopups\": true,\n \"render\": true,\n \"includeLinks\": true,\n \"waitFor\": 15000,\n \"waitForSelector\": \".price\",\n \"mobile\": true,\n \"timeout\": 50500,\n \"location\": {\n \"country\": \"us\",\n \"languages\": [\n \"en-US\",\n \"en\"\n ]\n },\n \"headers\": {},\n \"preferStructure\": true,\n \"maxAge\": 302400000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hydrafetch.com/v1/web/news")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"startup raises series A\",\n \"limit\": 10,\n \"timeRange\": \"week\",\n \"maxAge\": 0,\n \"country\": \"us\",\n \"includeDomains\": [\n \"techcrunch.com\"\n ],\n \"excludeDomains\": [\n \"prnewswire.com\"\n ],\n \"scrapeResults\": false,\n \"scrapeOptions\": {\n \"formats\": [\n \"markdown\"\n ],\n \"onlyMainContent\": true,\n \"includeTags\": [\n \"<string>\"\n ],\n \"excludeTags\": [\n \"<string>\"\n ],\n \"removeBase64Images\": true,\n \"blockAds\": true,\n \"dismissCookies\": true,\n \"dismissPopups\": true,\n \"render\": true,\n \"includeLinks\": true,\n \"waitFor\": 15000,\n \"waitForSelector\": \".price\",\n \"mobile\": true,\n \"timeout\": 50500,\n \"location\": {\n \"country\": \"us\",\n \"languages\": [\n \"en-US\",\n \"en\"\n ]\n },\n \"headers\": {},\n \"preferStructure\": true,\n \"maxAge\": 302400000\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"query": "startup raises series A",
"status": "ok",
"results": [
{
"title": "Acme raises $45M in Series A round",
"url": "https://example.com/news/acme-series-a",
"source": "Example News",
"publishedAt": "2026-11-03T09:12:00.000Z",
"snippet": "The startup raised $45 million to expand into Europe.",
"data": {
"url": "https://example.com",
"finalUrl": "https://example.com/",
"redirected": false,
"status": 200,
"cached": false,
"metadata": {
"title": "Example Domain",
"structure": "markdown",
"pageType": "article",
"wordCount": 214,
"description": "A short summary of the page, as published by the page itself.",
"language": "en",
"author": "Jane Doe",
"siteName": "Example Blog",
"publishedTime": "2026-01-05",
"modifiedTime": "2026-02-11",
"image": "https://example.com/cover.png"
},
"warning": "<string>",
"usage": {
"creditsUsed": 1,
"creditsRemaining": 4999,
"freshness": "fresh"
},
"quality": {
"confidence": 0.94,
"complete": true,
"blocked": false
},
"markdown": "<string>",
"html": "<string>",
"rawHtml": "<string>",
"links": {
"internal": [
"<string>"
],
"external": [
"<string>"
]
},
"structured": {
"entities": [
{
"type": "Product",
"source": "json-ld",
"properties": {}
}
],
"jsonLd": [
{}
],
"microdata": [
{}
],
"opengraph": [
{}
],
"appState": [
"<string>"
]
},
"summary": "<string>",
"json": {},
"brand": {
"domain": "stripe.com",
"name": "Stripe",
"description": "Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.",
"tagline": "Financial infrastructure to grow your revenue.",
"assets": [
{
"kind": "symbol",
"variant": "light",
"url": "https://media.hydrafetch.com/brand/a0/a07c2695173dde0a1ffa.svg",
"format": "svg",
"resolution": {
"width": 180,
"height": 180,
"aspectRatio": 1
},
"colors": [
{
"hex": "#533afd",
"weight": 0.42,
"name": "Indigo",
"role": "primary"
}
],
"blurhash": "LmGk_aoh4sWHohWEWDt506WD?Sod"
}
],
"colors": [
{
"hex": "#533afd",
"weight": 0.42,
"name": "Indigo",
"role": "primary"
}
],
"fonts": [
{
"family": "Sohne",
"weight": 1,
"role": "body"
}
],
"socials": [
{
"platform": "x",
"url": "https://x.com/stripe",
"handle": "stripe"
}
],
"links": {
"pricing": "https://stripe.com/pricing",
"blog": "https://stripe.com/blog",
"careers": "https://stripe.com/jobs",
"contact": "https://stripe.com/contact",
"privacy": "https://stripe.com/privacy",
"terms": "https://stripe.com/legal",
"docs": "https://docs.stripe.com"
},
"sources": {},
"resolvedAt": "2026-08-22T10:14:03.000Z",
"queriedDomain": "stripe.co.uk",
"aliases": [
"<string>"
],
"naics": {
"code": "5223",
"title": "Activities Related to Credit Intermediation",
"level": "industry_group",
"sector": {
"code": "52",
"title": "Finance and Insurance"
},
"confidence": 0.8
},
"email": "support@stripe.com",
"legalName": "Stripe, Inc.",
"metaDescription": "Stripe powers online and in-person payment processing for businesses of all sizes.",
"phone": "+1 888 926 2289",
"address": {
"street": "354 Oyster Point Blvd",
"city": "South San Francisco",
"region": "CA",
"postalCode": "94080",
"country": "US"
},
"foundedYear": 2010
}
}
}
]
}
}{
"jobId": "019f3c09-6fae-740f-9257-10c2b6af7f43",
"status": "running",
"poll": "/v1/web/jobs/019f3c09-6fae-740f-9257-10c2b6af7f43"
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "url must be a valid URL"
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Missing X-API-Key header. Agents: https://hydrafetch.com/auth.md"
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "Insufficient credits"
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "WORKSPACE_BANNED",
"message": "This workspace has been suspended and cannot make API requests."
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Job not found"
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "IDEMPOTENCY_IN_PROGRESS",
"message": "A request with this Idempotency-Key is still running."
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "UPSTREAM_UNREACHABLE",
"message": "The origin did not respond to any attempt we made."
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "TOO_MANY_REQUESTS",
"message": "Rate limit exceeded for this workspace and plan."
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error"
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}{
"success": false,
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "The summary and json formats are not available."
},
"meta": {
"requestId": "019e8a3c-9f0b-7c12-88ab-1d2e3f4a5b6c"
}
}Headers
Any unique string up to 255 visible characters. Send the same key when you retry a request: for 12 hours a repeat returns the first answer again, with an Idempotent-Replayed: true header, without doing the work or charging a second time. A repeat that arrives while the first is still running gets 409 IDEMPOTENCY_IN_PROGRESS; the same key with a different body gets 409 IDEMPOTENCY_KEY_REUSED.
Maximum string length:
255Example:
"3f2b8c1e-retry-safe-key"
Body
application/json
Was this page helpful?