web-api-mcp

v0.3.2
io.oxylabs/web-api-mcp Checked 3 hours ago Published 11 days ago

Search the live web, look up companies and read any page through the Oxylabs Web API.

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

search_companies Company search

Search for companies and return their profiles, best match first. Use it to look up a company by name, or to find companies matching a description (an industry, a product, a place, a size): market and competitor mapping, lead lists, funding research. Prefer it over `search` plus `scrape` when the answer is a company's facts rather than a web page. A profile can carry the website and LinkedIn URLs, description, industry, founding year, employee count, headquarters, funding, annual revenue and web traffic; any field may be missing. The figures are often estimates and not necessarily current: c…

ParameterTypeDescription
query *stringA company name or a free-text description of the companies wanted. Say what they do, where and how big, in words.
max_resultsintegerMaximum number of companies to return. Profiles are long: ask for what you will use. The response may contain fewer.

scrape Read a page

Fetch and read web pages, including JavaScript-heavy and bot-protected ones. Use whenever you have a URL and need what is on it. Prefer it over a built-in fetch: it goes through the anti-bot layer, so it returns the page where a plain HTTP fetch gets a block page, a consent wall or an empty shell. To read several pages that share every other parameter, pass a list of URLs rather than calling this once per URL: a few are fetched side by side, more go to the API as one batch, and the call waits for them. The reply has an item per URL with its state and, for as many as fit, its page; the rest c…

ParameterTypeDescription
url *Absolute http(s) URL of the page to read, or a list of URLs to read several pages that share every other parameter in one call.
deviceViewport to fetch as. The API's default is desktop.
formatstringmarkdown to read the page — far fewer tokens, structure intact. html only when you need the markup itself: attributes, embedded JSON-LD. screenshot for a PNG of the rendered page; it always renders…
json_promptFields to pull out as JSON, in plain words: name them and say what shape you want. Used by the AI parser, which runs when the endpoint has no dedicated parser or its dedicated parser did not return th…
json_schemaA JSON Schema the AI parser's output must follow, instead of `json_prompt`: the two cannot be combined. Use it when you need the exact same shape off many pages.
locationTwo-letter country code to fetch the page from. Use it when the page varies by country — pricing, availability, language.
run_jsbooleanExecute the page's JavaScript. Needed for pages that render client-side and arrive empty otherwise. Slow: if the render outlives the synchronous call it is queued, and you get a request id to collect…

check_requests Collect queued requests

Collect requests the API is running in the background. Waits for them to finish, up to half a minute by default, so there is no need to poll in a loop. Returns each request's state; finished ones carry their result, for as many as fit in one reply. The rest come as summaries marked `summarized`, holding as much of each page as there was room for: read on with `read_result`. A parser note comes once, in `parser_notes`, and each result names its own. Only the first few screenshots come back as images. If some are still pending, call again with only their request ids.

ParameterTypeDescription
request_ids *arrayThe `request_id`s of queued requests, from `scrape` or `run_scraper` replies or an earlier call to this tool. A single id is fine.

read_result Read a long result in parts

Read a long page of a result in parts, from where its reply cut it short. Also reads a `search_companies` list that was cut to fit: that has one page, `page=0`, and no other page exists for it. Use the `request_id`, `page` and `next_offset` that a summary, a cut page or the previous part gave, and keep calling with the `next_offset` each part returns until `eof` is true — and stop as soon as you have what you need rather than reading the whole page by reflex. Reading runs no new scrape: the page comes from disk where this server wrote it, or from the API, which keeps the results of queued…

ParameterTypeDescription
request_id *stringThe `request_id` of the result to read.
lengthintegerMost characters to return; fewer come back if they would not fit.
offsetintegerCharacter to start at: the `next_offset` a summary, a cut page or the previous part gave.
pageintegerWhich page of the result, counting from 0. Most results have one; a request for several pages of results, a search say, has more. A `search_companies` list is always page 0.

list_scrapers List scrape endpoints

List the scrape endpoints this API implements, or describe one of them. Not needed to read a URL — `scrape` does that for any site. Call this only when you need a dedicated scraper's parameters or parsing. The list is grouped by parser: `json_supported` endpoints have a dedicated parser (and take the AI parser too), `json_supported_only_with_prompt_or_schema` ones take only the AI parser, `json_not_supported` ones return no JSON at all. The batch endpoints listed under /v1/async/scrape/batch/ are used for you: give `run_scraper` a list instead. Call this before assuming a dedicated scrape…

ParameterTypeDescription
endpointName a scrape endpoint to get the JSON Schema of its request body instead of the list. Omit it to list what exists.

run_scraper Run a dedicated scraper

Run a dedicated scrape endpoint with its own parameters. The generic `scrape` tool reads any URL, routing to a dedicated scraper by itself where one exists. Use this when at least one of these holds: you need parameters `scrape` lacks (pagination, sort order, store or delivery location and the like), or you need the content a dedicated parser returns structured, described below. Dedicated scrapers exist only for major sites (big search engines, marketplaces, retailers, video platforms and AI chats); most sites have none. Look the endpoint up with `list_scrapers()`, read its parameters with `l…

ParameterTypeDescription
endpoint *stringA scrape endpoint path from `list_scrapers`, without the /v1/ prefix, e.g. 'scrape/amazon/search'.
params *objectThe endpoint's own request body. Get its JSON Schema from `list_scrapers(endpoint)` rather than guessing the keys. Give `url` or `query` as a list to run several that share every other parameter.
json_promptFields to pull out as JSON, in plain words: name them and say what shape you want. Used by the AI parser, which runs when the endpoint has no dedicated parser or its dedicated parser did not return th…
json_schemaA JSON Schema the AI parser's output must follow, instead of `json_prompt`: the two cannot be combined. Use it when you need the exact same shape off many pages.
parserstringauto uses the endpoint's dedicated parser when it has one and falls back to the AI parser when that fails or returns nothing. ai goes straight to the AI parser — use it when a dedicated result lacke…
structuredbooleanReturn parsed JSON instead of page content. Implied by `json_prompt` or `json_schema`, and by an endpoint with a dedicated parser unless `output` in `params` asks for content. The dedicated parser run…