This domain is for use in illustrative examples in documents...
", "outputFormat": "html", "timestamp": "2025-09-12T10:30:00Z" } ``` ### Key features * **Flexible content retrieval**: get webpage content as raw HTML or clean markdown. * **JavaScript rendering**: optional JavaScript execution for dynamic content. * **Direct URL access**: fetch content from any publicly accessible webpage. * **Clean output**: structured response with metadata and content. This endpoint is perfect for content extraction, web scraping, and building applications that need to process webpage data programmatically. # Fetch Pro mode Source: https://docs.linkup.so/pages/changelog/fetch-pro-mode _Released: August 2026_ We're introducing `"pro"`, a new `mode` value for the Linkup [**Fetch**](/pages/documentation/endpoints/fetch/overview) endpoint. `"pro"` delivers significantly higher success rates on hard-to-retrieve pages. ### What's new `mode` is independent of `renderJs`: * **`mode`**: how the page is accessed. `"standard"` (default) for regular pages. `"pro"` for hard-to-retrieve pages. * **`renderJs`**: whether JavaScript is executed before extraction. ### How to use Set `mode` to `"pro"` in your API request:This example extracts company classification information:
This example shows how to retrieve basic information about a movie:
This example retrieves weather information for travel planning:
| Parameter | Type | Default | Description |
|---|---|---|---|
apiKey |
string |
process.env.LINKUP\_API\_KEY |
Your Linkup API key. If not provided, it will be read from the environment variable. |
depth |
'flash' | 'fast' | 'standard' | 'deep' |
'standard' |
Search depth. "flash" is lowest latency (under 200 ms, no LLM), "fast" is higher-quality one-shot retrieval (\~1s, no LLM), "standard" leverages agentic search, "deep" performs more thorough research. |
includeImages |
boolean |
false |
Whether to include images in the search results. |
includeDomains |
string\[] |
\[] |
Array of domains to include in the search results. |
excludeDomains |
string\[] |
\[] |
Array of domains to exclude from the search results. |
fromDate |
Date |
null |
Start date for filtering search results. |
toDate |
Date |
null |
End date for filtering search results. |
This example show you how to combine the standard search with a sourced answer
```typescript theme={"system"} import { LinkupClient } from 'linkup-sdk'; const client = new LinkupClient({ apiKey: 'YOUR_API_KEY', }); const getRaceResume = async () => { return await client.search({ query:"Can you resume me the last Formula 1 race ?", depth:"standard", outputType:"sourcedAnswer", }); }; getRaceResume().then(console.log); ``` Example response: ```json theme={"system"} { "answer": "Lando Norris won the 2025 Australian Grand Prix, the season opener, in challenging wet conditions. The race saw multiple incidents, including crashes on the first lap, leading to six drivers not finishing. Notably, Lewis Hamilton finished in 10th place. The race was marked by dramatic weather changes that affected many competitors. For more details, you can read the full results [here](https://www.motorsportweek.com/2025/03/16/f1-2025-australian-grand-prix-race-results/).", "sources": [ { "name": "F1 2025 Australian Grand Prix – Race Results", "url": "https://www.motorsportweek.com/2025/03/16/f1-2025-australian-grand-prix-race-results/", "snippet": "McLaren's Lando Norris has won the Formula 1 season-opening Australian Grand Prix in a mixed conditions thriller at the Albert", "favicon": "https://www.motorsportweek.com/wp-content/uploads/2020/04/cropped-favicon-32x32.png" }, { "name": "McLaren’s Lando Norris wins wet and wild Australian Grand Prix. Hamilton finishes 10th", "url": "https://www.msn.com/en-us/sports/other/mclarens-lando-norris-wins-wet-and-wild-australian-grand-prix-hamilton-finishes-10th/ar-AA1B0kIf", "snippet": "The Melbourne race had a thrilling start with Racing Bull’s Isack Hadjar out on the formation lap, and Alpine’s Jack Doohan and Williams’ Carlos Sainz crashing out on the opening lap.", "favicon": "https://static.msn.com/en-us/entertainment/favicon.ico" }, { "name": "F1 Australian Grand Prix 2025 results: Norris wins, rookies spin out in the rain", "url": "https://www.msn.com/en-us/sports/other/f1-australian-grand-prix-2025-results-norris-wins-rookies-spin-out-in-the-rain/ar-AA1B4irD", "snippet": "If you like drama in racing, the 2025 F1 Australian Grand Prix didn’t disappoint. Intermittent rain caused havoc on the track, and six drivers didn’t complete the 57 laps, including four of this year’s full-season rookies.", "favicon": "https://static.msn.com/en-us/entertainment/favicon.ico" }, ... ] } ```This example shows you how to use the deep with a relative complexe structured output:
```typescript theme={"system"} import { LinkupClient } from 'linkup-sdk'; const client = new LinkupClient({ apiKey: 'YOUR_API_KEY', }); const schema = { "type": "object", "properties": { "companyName": { "type": "string", "description": "The name of the company" }, "revenueAmount": { "type": "number", "description": "The revenue amount" }, "fiscalYear": { "type": "string", "description": "The fiscal year for this revenue" } } }; const getCompanyRevenue = async () => { return await client.search({ query: "What is Microsoft's 2024 revenue?", depth: 'deep', outputType: 'structured', structuredOutputSchema: schema }); }; getCompanyRevenue().then(console.log); ``` Example response: ```json theme={"system"} { "companyName": "Microsoft", "revenueAmount": 245100000000, "fiscalYear": "2024" } ```This example shows you how to use the standard with a search results:
```typescript theme={"system"} import { LinkupClient } from 'linkup-sdk'; const client = new LinkupClient({ apiKey: 'YOUR_API_KEY', }); const getNews = async () => { return await client.search({ query: "Latest politic news", depth: 'standard', outputType: 'searchResults' }); }; getNews().then(console.log); ``` Example response: ```json theme={"system"} { "results": [ { "type": "text", "name": "‘I’m Still Here’ invites reflection on world politics, history", "url": "https://www.thepostathens.com/article/2025/03/im-still-here-movie-review", "content": "For “I’m Still Here,” viewers do not walk away with the same feeling. It begins with excitement and energy but ends feeling empty and reflective. It is a movie about memory and the ability to keep the ones we’ve lost alive in our psyches.", "favicon": "https://www.thepostathens.com/favicon.ico" }, { "type": "text", "name": "Local Politics", "url": "https://www.seattletimes.com/seattle-news/politics/", "content": "House Bill 1175 would have required cities across Washington to allow cafes and stores in all residential areas, superseding any local zoning restrictions. Initiative 2081, signed by over 448,000 ...", "favicon": "https://www.seattletimes.com/favicon.ico" }, { "type": "text", "name": "Spruce Creeker allegedly points gun at fellow resident over politics", "url": "https://www.villages-news.com/2025/03/17/spruce-creeker-allegedly-points-gun-at-fellow-resident-over-politics/", "content": "A resident of the Spruce Creek Del Webb community in Summerfield was arrested after he allegedly pointed a gun at a fellow resident over politics.", "favicon": "https://www.villages-news.com/wp-content/uploads/2019/06/cropped-villages-news-favicon-32x32.png" }, ... ] } ```This example return text and images sources
```typescript theme={"system"} import { LinkupClient } from 'linkup-sdk'; const client = new LinkupClient({ apiKey: 'YOUR_API_KEY', }); const getData = async () => { return await client.search({ query: "Amazon deforestation", depth: 'standard', outputType: 'searchResults', includeImages: true }); }; getData().then(console.log); ``` Exemple response ```json theme={"system"} { "results": [ {"type":"text","name":"The rough road to sustainable farming in an Amazon deforestation hotspot","url":"https://www.msn.com/en-us/society-culture-and-history/social-issues/the-rough-road-to-sustainable-farming-in-an-amazon-deforestation-hotspot/ar-AA1B64yY","content":"Bartolomeu Moraes, better known as Brasília, was a peasant leader and trade unionist in Brazil involved in a long, bloody land war. In 2002, he was killed after years of opposing powerful local ranchers along the BR-163 highway area,", "favicon":"https://static.msn.com/en-us/entertainment/favicon.ico"}, {"type":"text","name":"Forest management ambitions in Brazilian Amazon aim to make up for lost time","url":"https://www.msn.com/en-us/news/world/forest-management-ambitions-in-brazilian-amazon-aim-to-make-up-for-lost-time/ar-AA1ALyxz","content":"In the early 2000s, deforestation levels in the Brazilian Amazon rose so tremendously that, faced with both national and international pressure, the federal government decided to implement forest timber management as a way to curb the destruction.", "favicon":"https://static.msn.com/en-us/entertainment/favicon.ico"}, {"type":"text","name":"Race to save the rainforest: Why replacing cocaine barons with cattle ranchers is destroying the Amazon","url":"https://www.telegraph.co.uk/news/amazon-deforestation-in-colombia/","content":"Though the Amazon rainforest proved a useful screen ... Should the recent rates of deforestation continue, experts warn, the implications will prove devastating for us all. Marisela Silva Parra ...", "favicon":"https://www.telegraph.co.uk/favicon.ico"}, ... {"type":"image","name":"Deforestation: Primary Forest Losses Impact Climate Change — Carmen ...","url":"https://images.squarespace-cdn.com/content/v1/584738ff20099e6c2da92f74/1556207140784-08HFC1PNAYWX368IJGXM/ke17ZwdGBToddI8pDm48kNvT88LknE-K9M4pGNO0Iqd7gQa3H78H3Y0txjaiv_0fDoOvxcdMmMKkDsyUqMSsMWxHk725yiiHCCLfrh8O1z5QPOohDIaIeljMHgDF5CVlOqpeNLcJ80NK65_fV7S1USOFn4xF8vTWDNAUBm5ducQhX-V3oVjSmr829Rco4W2Uo49ZdOtO_QXox0_W7i2zEA/Deforestation+in+Brazil"}, {"type":"image","name":"Amazon Rainforest Deforestation Before And After","url":"https://media.wired.com/photos/59372bbfd80dd005b42b626f/master/w_2560%2Cc_limit/AP4997094644081.jpg"}, {"type":"image","name":"11 Amazon Rainforest Deforestation Facts to Know About | Earth.Org","url":"https://u4d2z7k9.rocketcdn.me/wp-content/uploads/2021/11/Untitled-design-88.jpg"}, ... ] } ```This example shows you how to use the dates filter:
```typescript theme={"system"} import { LinkupClient } from 'linkup-sdk'; const client = new LinkupClient({ apiKey: 'YOUR_API_KEY', }); const getNews = async () => { return await client.search({ query: "What are the recent advancements in artificial intelligence technology", "depth": "standard", "outputType": "sourcedAnswer", "fromDate": new Date("2025-03-01"), "toDate": new Date("2025-03-05"), }); }; getNews().then(console.log); ``` Example response: ```json theme={"system"} { "answer":"1. **MBZUAI Launches AI Undergraduate Program**: The Mohamed bin Zayed University of Artificial Intelligence has introduced a pioneering undergraduate program aimed at shaping future AI leaders. [Read more](https://www.finanznachrichten.de/nachrichten-2025-03/64714165-mbzuai-unveils-first-of-its-kind-undergraduate-program-in-artificial-intelligence-designed-to-empower-future-ai-leaders-200.htm)\n\n2. **DeepSeek AI Chatbot Raises Cybersecurity Concerns**: The release of DeepSeek, an AI chatbot, has sparked discussions about new cybersecurity challenges associated with rapidly advancing AI technologies. [Read more](https://www.law.com/newyorklawjournal/2025/03/04/deepseek-sparks-new-cyber-challenges-in-the-ai-chatbot-era/)\n\n3. **AI's Impact on Business Innovation**: The integration of AI and other technologies is becoming essential for business success, driving innovation and growth. [Read more](https://www.independent.com.mt/articles/2025-03-02/newspaper-opinions/The-intersection-of-technology-and-business-Paving-the-way-for-innovation-and-growth-6736268254)\n\n4. **Research on Achieving Human-Level AI**: Experts are calling for a change in approach to develop AI systems capable of human-level reasoning, indicating current methods may not suffice. [Read more](https://www.nature.com/articles/d41586-025-00649-4)", "sources": [ { "name":"MBZUAI Unveils First-of-its-Kind Undergraduate Program in Artificial Intelligence Designed to Empower Future AI Leaders", "url":"https://www.finanznachrichten.de/nachrichten-2025-03/64714165-mbzuai-unveils-first-of-its-kind-undergraduate-program-in-artificial-intelligence-designed-to-empower-future-ai-leaders-200.htm", "snippet":"ABU DHABI, AE / ACCESS Newswire / March 3, 2025 / The Mohamed bin Zayed University of Artificial Intelligence (MBZUAI) is disrupting the AI education landscape with the launch of its first-ever underg", "favicon":"https://www.finanznachrichten.de/favicon.ico" }, { "name":"The intersection of technology and business: Paving the way for innovation and growth", "url":"https://www.independent.com.mt/articles/2025-03-02/newspaper-opinions/The-intersection-of-technology-and-business-Paving-the-way-for-innovation-and-growth-6736268254", "snippet":"In the fast-paced world of business, the integration of innovative technologies has become a crucial driver of success. As an advocate for Artificial Intelligence (AI), Blockchain, Data Analytics, and", "favicon":"https://www.independent.com.mt/favicon.ico" }, { "name":"DeepSeek Sparks New Cyber Challenges In the AI Chatbot Era", "url":"https://www.law.com/newyorklawjournal/2025/03/04/deepseek-sparks-new-cyber-challenges-in-the-ai-chatbot-era/", "snippet":"This article discusses DeepSeek, an artificial intelligence chatbot that was released in January of this year, and the concerns it raises around security and rapidly advancing technology.", "favicon":"https://www.law.com/favicon.ico" }, ... ] } ```This example show you how to combine the standard search with a sourced answer
```python theme={"system"} from linkup import LinkupClient client = LinkupClient() search_response = client.search( query="Last Formula 1 race", depth="standard", output_type="sourcedAnswer", ) print(search_response) ``` Example response: ```python theme={"system"} answer='The last Formula 1 race was the Australian Grand Prix, where Lando Norris won. The race took place recently, and it was marked by intermittent rain causing several challenges on the track. The next race is the Chinese Grand Prix, scheduled for March 21-23, 2025.' sources=[ LinkupSource(name='Formula 1 season begins with dramatic Australian Grand Prix', url='https://www.emorywheel.com/article/2025/03/pivexulgpch8', snippet='The Australian Grand Prix was a thrilling way to start the 2025 F1 season for the many fans eager to have F1 back after the long winter break. The excitement will continue with the Chinese Grand Prix, the first sprint race of the season, in Shanghai on March 21-23.', favicon='https://www.emorywheel.com/wp-content/uploads/2023/09/cropped-Emory-Wheel-Favicon-32x32.png'), LinkupSource(name="AUTO RACING: Bell's three-race win streak snapped and Norris takes the F1 season opener", url='https://www.washingtonpost.com/sports/auto-racing/2025/03/18/auto-racing-glance/414c4f32-0419-11f0-941f-6ca83a0bd35b_story.html', snippet='Schedule: Saturday, practice, 1:05 p.m., qualifying, 2:10 p.m.; Sunday, race, 3 p.m. (FS1). Track: Homestead-Miami Speedway. Race distance: 267 laps, 400.5 miles. Last year: Tyler Reddick secured the win from the pole after a last-lap pass of Ryan Blaney.', favicon='https://www.washingtonpost.com/wp-stat/assets/favicon-32x32.png'), LinkupSource(name='F1 Australian Grand Prix 2025 results: Norris wins, rookies spin out in the rain', url='https://www.yahoo.com/lifestyle/f1-australian-grand-prix-2025-083408114.html', snippet='Intermittent rain caused havoc on the track before and during the 2025 F1 Australian Grand Prix. The post F1 Australian Grand Prix 2025 results: Norris wins, rookies spin out in the rain appeared first on The Manual.', favicon='https://s.yimg.com/rz/l/favicon.ico'), ... ] ```This example shows you how to use the deep with a relative complexe structured output:
```python theme={"system"} from linkup import LinkupClient client = LinkupClient(api_key="YOUR_API_KEY") schema = """{ "type": "object", "properties": { "companyName": { "type": "string", "description": "The name of the company" }, "revenueAmount": { "type": "number", "description": "The revenue amount" }, "fiscalYear": { "type": "string", "description": "The fiscal year for this revenue" } } }""" response = client.search( query="What is Microsoft's 2024 revenue?", depth="deep", output_type="structured", structured_output_schema=schema ) print(response) ``` Example response: ```json theme={"system"} { "companyName": "Microsoft", "revenueAmount": 245100000000, "fiscalYear": "2024" } ```This example shows you how to use the standard with a search results:
```python theme={"system"} from linkup import LinkupClient client = LinkupClient(api_key="YOUR_API_KEY") search_response = client.search( query="Latest politic news", depth="standard", output_type="searchResults", ) print(search_response) ``` Example response: ```python theme={"system"} results=[ LinkupSearchTextResult(type='text', name='CNN host Van Jones shares personal upbringing, reflects on state of American politics', url='https://www.browndailyherald.com/article/2025/03/cnn-host-van-jones-shares-personal-upbringing-reflects-on-state-of-american-politics', content='On Wednesday night, the Watson Institute for International and Public Affairs welcomed CNN Host Van Jones for a conversation on the state of American politics. In his talk, Jones explained increasingly strained ties between Jewish and Black activist communities,', favicon='https://www.browndailyherald.com/wp-content/uploads/2023/09/cropped-BDH-Favicon-32x32.png'), LinkupSearchTextResult(type='text', name='Politics latest: Billions being shaved off welfare bill - join our live Q&A on what it means for you', url='https://news.sky.com/story/politics-latest-trump-wants-to-shock-europe-into-action-with-false-ukraine-claims-says-boris-johnson-12593360', content='Work and Pensions Secretary Liz Kendall has announced changes to the welfare system - including merging some benefits and a plan to scrap the work capability assessment used to claim universal credit.', favicon='https://e1.365dm.com/21/03/1600x900/skysports-politics-latest-live_5311164.jpg?20210310123112'), LinkupSearchTextResult(type='text', name='Politics', url='https://www.npr.org/sections/politics/', content="March 19, 2025 • The decision offers a venue compromise in the bellwether case, while Khalil's legal team seeks to release him from detention and block his deportation.", favicon='https://media.npr.org/favicon.ico'), ... ] ```This example return text and images sources
```python theme={"system"} from linkup import LinkupClient client = LinkupClient(api_key="YOUR_API_KEY") search_response = client.search( query="Amazon deforestation", depth="standard", output_type="searchResults", include_images=True ) print(search_response) ``` Exemple response ```python theme={"system"} results=[ LinkupSearchTextResult(type='text', name='How a grassroots financing model is helping Indigenous communities save the Amazon', url='https://www.unep.org/news-and-stories/story/how-grassroots-financing-model-helping-indigenous-communities-save-amazon', content='A United Nations effort is channeling more finance to communities to help them conserve, restore and sustainably manage forests.', favicon='https://www.unep.org/sites/all/themes/custom/unep/favicon.ico'), LinkupSearchTextResult(type='text', name='Amazon Rainforest Razed To Build Highway For UN Climate Summit', url='https://ijr.com/amazon-rainforest-razed-to-build-highway-for-un-climate-summit/', content='Ahead of the COP30 climate summit in Belém, Brazil, developers are carving a four-lane highway through protected tracts of the', favicon='https://ijr.com/wp-content/uploads/2021/08/cropped-ijr-favicon-32x32.png'), LinkupSearchTextResult(type='text', name='Roads less traveled multiply deforestation in the Amazon and beyond', url='https://www.msn.com/en-us/news/world/roads-less-traveled-multiply-deforestation-in-the-amazon-and-beyond/ar-AA1AGYEe', content='James Cook University-led research has revealed secondary roads branching from major highways in tropical forests linked to extensive deforestation across the Brazilian Amazon, the Congo Basin, and New Guinea.', favicon='https://static.msn.com/favicon.ico'), ... LinkupSearchImageResult(type='image', name='Amazon Fires and the Horrifying Science of Deforestation | WIRED', url='https://media.wired.com/photos/5d6027925af21f000859fc13/master/w_2000,c_limit/Science_AmazonASAP_1125307709.jpg'), LinkupSearchImageResult(type='image', name='Deforestation In The Amazon Rainforest | emr.ac.uk', url='https://en.mercopress.com/data/cache/noticias/73326/0x0/1-88.jpg'), LinkupSearchImageResult(type='image', name='Amazon Deforestation WWF - Green Queen', url='https://www.greenqueen.com.hk/wp-content/uploads/2020/06/Amazon-Deforestation-WWF.jpg'), ... ] ```This example shows you how to use the dates filter:
```python theme={"system"} from linkup import LinkupClient from datetime import date client = LinkupClient(api_key="YOUR_API_KEY") search_response = client.search( query="What are the recent advancements in artificial intelligence technology", depth="standard", output_type="sourcedAnswer", from_date=date(2025, 3, 1), to_date=date(2025, 3, 5), ) print(search_response) ``` Example response: ```python theme={"system"} answer='1. A call for a new approach to achieve human-level reasoning in AI systems has been highlighted by researchers. [Read more](https://www.nature.com/articles/d41586-025-00649-4).\n\n2. The release of DeepSeek, an AI chatbot, has raised new cybersecurity concerns. [Read more](https://www.law.com/newyorklawjournal/2025/03/04/deepseek-sparks-new-cyber-challenges-in-the-ai-chatbot-era/).\n\n3. AI continues to transform everyday life, influencing communication, work, and leisure activities. [Read more](https://signalscv.com/2025/03/how-technology-is-changing-our-everyday-life-from-ai-to-the-internet-of-things/).\n\n4. The integration of AI with other technologies is driving innovation and growth in business sectors. [Read more](https://www.independent.com.mt/articles/2025-03-02/newspaper-opinions/The-intersection-of-technology-and-business-Paving-the-way-for-innovation-and-growth-6736268254).' sources=[ LinkupSource(name='How AI can achieve human-level intelligence: researchers call for change in tack', url='https://www.nature.com/articles/d41586-025-00649-4', snippet='Artificial intelligence (AI) systems with human-level reasoning are unlikely to be achieved through the approach and technology ... Heights, New York, who spearheaded the survey in her role as president of the Association for the Advancement of Artificial ...', favicon='https://media.nature.com/lw1024/magazine-assets/d41586-025-00649-4/d41586-025-00649-4_17996430.png'), LinkupSource(name='DeepSeek Sparks New Cyber Challenges In the AI Chatbot Era', url='https://www.law.com/newyorklawjournal/2025/03/04/deepseek-sparks-new-cyber-challenges-in-the-ai-chatbot-era/', snippet='This article discusses DeepSeek, an artificial intelligence chatbot that was released in January of this year, and the concerns it raises around security and rapidly advancing technology.', favicon='https://www.law.com/img/NYLJ/favicon.ico'), LinkupSource(name='How Technology is Changing Our Everyday Life: From AI to the Internet of Things', url='https://signalscv.com/2025/03/how-technology-is-changing-our-everyday-life-from-ai-to-the-internet-of-things/', snippet='Technology has revolutionized our lives, transforming how we communicate, work, shop, and even unwind. In a world driven by rapid innovation, technologies like artificial intelligence (AI), the Internet of Things', favicon='https://signalscv.com/wp-content/uploads/2023/01/cropped-Signals-favicon-32x32.png'), ... ] ```