Fetch

POST /fetch

Fetch any web page and get it back as clean markdown, HTML, a list of links, or a screenshot. No headless browser infrastructure to manage.

Costs 1 utility call per request.

Request

{
  "url": "https://example.com/blog/onboarding-guide",
  "formats": ["markdown"],
  "only_main_content": true
}
FieldTypeRequiredDescription
urlstringyesThe URL to fetch
formatsstring[]noOutput formats: markdown, html, raw_html, links, screenshot
only_main_contentbooleannoStrip navigation, footers, etc. (default: false)
include_tagsstring[]noOnly include these HTML tags
exclude_tagsstring[]noExclude these HTML tags
wait_forintegernoWait N milliseconds for JS to render
timeoutintegernoRequest timeout in milliseconds
mobilebooleannoUse a mobile viewport
headersobjectnoCustom HTTP headers to send

Response

{
  "url": "https://example.com/blog/onboarding-guide",
  "source_url": "https://example.com/blog/onboarding-guide",
  "markdown": "# The Complete Guide to User Onboarding\n\nOnboarding is the first...",
  "metadata": {
    "title": "The Complete Guide to User Onboarding",
    "description": "Learn how to build onboarding flows that convert",
    "language": "en",
    "status_code": 200,
    "keywords": ["onboarding", "SaaS", "user experience"]
  }
}
FieldTypeDescription
urlstringThe URL that was fetched
source_urlstringThe final URL after redirects
markdownstringPage content as markdown (if requested)
htmlstringPage content as clean HTML (if requested)
raw_htmlstringOriginal HTML (if requested)
linksstring[]All links on the page (if requested)
screenshot_urlstringURL of a screenshot (if requested)
metadataobjectPage metadata

Example: fetch as markdown with main content only

curl -X POST https://api.noodlespy.com/fetch \
  -H "Authorization: Bearer nspy_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/blog/post",
    "formats": ["markdown"],
    "only_main_content": true
  }'

Example: get all links from a page

curl -X POST https://api.noodlespy.com/fetch \
  -H "Authorization: Bearer nspy_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/resources",
    "formats": ["links"]
  }'

Error cases

StatusCause
422URL is unreachable or returned an error
504Page took too long to load