ScrapingAnt MCP by usefulapi

v1.1.0
io.usefulapi/scrapingant Checked 8 hours ago Published 2 days ago

Fetch web pages as HTML, Markdown or AI-extracted fields, and read credit usage in ScrapingAnt.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scrapingant_get_usage Get credit usage

Show the active ScrapingAnt plan name, the billing period and the credits remaining. Use it before a large batch of scrapes. ScrapingAnt API: GET /v2/usage.

scrapingant_get_page_html Get page HTML

Fetch a web page and return its raw HTML, the target page's HTTP status and the credits the request cost. Long pages are cut to keep the reply readable. Costs credits: 10 with the default browser=true on datacenter proxy. ScrapingAnt API: GET /v2/general.

ParameterTypeDescription
url *stringThe full URL of the page to fetch, for example https://example.com/page.
block_resourcearrayResource types the browser must not load, for example image and font. Needs browser=true.
browserbooleanRender the page in a headless browser (ScrapingAnt default: true). Credits: 10 with browser, 1 without, on datacenter proxy.
cookiesstringCookies to send to the target site, as 'name=value; name2=value2'. Use them to reach a signed-in page.
js_snippetstringBase64-encoded JavaScript to run once the page loads in the browser. Needs browser=true.
proxy_countrystringTwo-letter ISO country code of the proxy, for example us or de.
proxy_typestringdatacenter (default) or residential, for sites that block datacenter IPs. Residential costs 25 credits without browser.
return_page_sourcebooleanReturn the server's HTML before the browser runs JavaScript. Needs browser=true.
timeoutintegerSeconds ScrapingAnt may spend on the request (5-60, default 60).
wait_for_selectorstringCSS selector to wait for before the page is returned. Needs browser=true.

scrapingant_get_page_markdown Get page as Markdown

Fetch a web page and return its main content converted to Markdown, ready for an LLM or retrieval step. Costs credits like the HTML tool. ScrapingAnt API: GET /v2/markdown.

ParameterTypeDescription
url *stringThe full URL of the page to fetch, for example https://example.com/page.
block_resourcearrayResource types the browser must not load, for example image and font. Needs browser=true.
browserbooleanRender the page in a headless browser (ScrapingAnt default: true). Credits: 10 with browser, 1 without, on datacenter proxy.
cookiesstringCookies to send to the target site, as 'name=value; name2=value2'. Use them to reach a signed-in page.
js_snippetstringBase64-encoded JavaScript to run once the page loads in the browser. Needs browser=true.
proxy_countrystringTwo-letter ISO country code of the proxy, for example us or de.
proxy_typestringdatacenter (default) or residential, for sites that block datacenter IPs. Residential costs 25 credits without browser.
return_page_sourcebooleanReturn the server's HTML before the browser runs JavaScript. Needs browser=true.
timeoutintegerSeconds ScrapingAnt may spend on the request (5-60, default 60).
wait_for_selectorstringCSS selector to wait for before the page is returned. Needs browser=true.

scrapingant_get_page_extended Get page with status, headers and cookies

Fetch a web page and return JSON with the page text, HTML, the target status_code, response headers, cookies, and (with browser=true) the XHR calls and iframes. Use it when the status or cookies matter. Long fields are cut so the reply stays readable. ScrapingAnt API: GET /v2/extended.

ParameterTypeDescription
url *stringThe full URL of the page to fetch, for example https://example.com/page.
block_resourcearrayResource types the browser must not load, for example image and font. Needs browser=true.
browserbooleanRender the page in a headless browser (ScrapingAnt default: true). Credits: 10 with browser, 1 without, on datacenter proxy.
cookiesstringCookies to send to the target site, as 'name=value; name2=value2'. Use them to reach a signed-in page.
js_snippetstringBase64-encoded JavaScript to run once the page loads in the browser. Needs browser=true.
proxy_countrystringTwo-letter ISO country code of the proxy, for example us or de.
proxy_typestringdatacenter (default) or residential, for sites that block datacenter IPs. Residential costs 25 credits without browser.
return_page_sourcebooleanReturn the server's HTML before the browser runs JavaScript. Needs browser=true.
timeoutintegerSeconds ScrapingAnt may spend on the request (5-60, default 60).
wait_for_selectorstringCSS selector to wait for before the page is returned. Needs browser=true.

scrapingant_extract_data Extract structured data with AI

Fetch a web page and let ScrapingAnt's AI return the named fields as JSON, under 'extracted'. Pass the fields as comma-separated text, for example 'product title, price(number), reviews(list: title, text)'. Costs the scrape credits plus about 1 credit per 30 characters of page and output text. ScrapingAnt API: GET /v2/extract.

ParameterTypeDescription
extract_properties *stringThe fields to extract, as free text, for example 'title, price(number), full description'.
url *stringThe full URL of the page to fetch, for example https://example.com/page.
block_resourcearrayResource types the browser must not load, for example image and font. Needs browser=true.
browserbooleanRender the page in a headless browser (ScrapingAnt default: true). Credits: 10 with browser, 1 without, on datacenter proxy.
cookiesstringCookies to send to the target site, as 'name=value; name2=value2'. Use them to reach a signed-in page.
js_snippetstringBase64-encoded JavaScript to run once the page loads in the browser. Needs browser=true.
proxy_countrystringTwo-letter ISO country code of the proxy, for example us or de.
proxy_typestringdatacenter (default) or residential, for sites that block datacenter IPs. Residential costs 25 credits without browser.
return_page_sourcebooleanReturn the server's HTML before the browser runs JavaScript. Needs browser=true.
timeoutintegerSeconds ScrapingAnt may spend on the request (5-60, default 60).
wait_for_selectorstringCSS selector to wait for before the page is returned. Needs browser=true.