API reference
HTTP routes, matching MCP tools and their input fields.
Authentication and responses#
Use the API host below. Send JSON bodies with Content-Type: application/json and authenticate with Authorization: Bearer YOUR_FETCHFOX_API_KEY. Long-running endpoints accept detach: true. Inspect HTTP status for errors and results or results.items for job output.
https://api.fetchfox.aiErrors and retries#
400 indicates invalid input. 402 means insufficient credits. 403 indicates an access problem. 429 means the rate limit was reached. For a timeout on a long scrape, check your jobs before starting another paid run. Billing and key rotation have immediate effects. Operator metrics and benchmark tools appear in MCP for authorized operators. Clerk session and webhook callbacks are handled by the identity integration.
Web data
POST/api/visitvisit
Read rendered page content. Choose url or urls.
Access Bearer key
urlstringPublic HTTP or HTTPS URL.urlsstring[]includemeta | raw | html | slimHtml | markdown | text[]deliveryinline | artifactproxynone | auto | datacenter | residentialdetachbooleanReturn a job ID immediately. Poll get_job for completion.POST/api/crawlcrawl
Discover links matching a pattern or a query from seed pages.
Access Bearer key
startUrlsstring[]patternstringTarget URL pattern, for example https://example.org/articles/*.querystringDescribe the URLs to discover.maxVisitsintegerVisit budget.maxDepthintegerMaximum depth from a seed.crawlStrategybfs | dfs | randompriorityobjectproxynone | auto | datacenter | residentialdetachbooleanReturn a job ID immediately. Poll get_job for completion.POST/api/extractextract
Extract structured records from one URL or a batch of URLs. Lambda extraction requires an object template and explicit perPage.
Access Bearer key
urlstringPublic HTTP or HTTPS URL.urlsstring[]templatestring or object · requiredperPageone | manyuseBoostbooleanAllow reuse of a learned extraction.contentTransformraw | html | slim_html | text | markdownproxynone | auto | datacenter | residentialdetachbooleanReturn a job ID immediately. Poll get_job for completion.extractExecutionhost | lambdaPOST/api/scrapescrape
Discover matching URLs and extract records from them in one job.
Access Bearer key
startUrlsstring[]patternstringTarget URL pattern, for example https://example.org/articles/*.querystringDescribe the URLs to discover.maxVisitsintegerVisit budget.maxDepthintegerMaximum depth from a seed.crawlStrategybfs | dfs | randompriorityobjectproxynone | auto | datacenter | residentialdetachbooleanReturn a job ID immediately. Poll get_job for completion.templatestring or object · requiredperPageone | manyuseBoostbooleanAllow reuse of a learned extraction.contentTransformraw | html | slim_html | text | markdownmaxExtractsintegerExtraction budget.Agents
POST/api/agentagent
Run a natural-language web data task.
Access Bearer key
promptstring · requiredDescribe the information to find.urlsstring[]detachbooleanReturn a job ID immediately. Poll get_job for completion.POST/api/agent/createcreate_agent
Create a reusable agent from a task description.
Access Bearer key
promptstring · requiredDescribe the information to find.urlsstring[]detachbooleanReturn a job ID immediately. Poll get_job for completion.GET/api/agentslist_agents
List the agents owned by your account.
Access Bearer key
GET/api/agent/:idget_agent
Read a saved agent and its plan.
Access Bearer key
idstring · requiredResource identifier.POST/api/agent/:id/runrun_agent
Run your saved agent with its named input parameters.
Access Bearer key
idstring · requiredResource identifier.paramsobjectdetachbooleanReturn a job ID immediately. Poll get_job for completion.POST/api/planplan
Generate a plan for a website.
Access Bearer key
urlstring · requiredPublic HTTP or HTTPS URL.detachbooleanReturn a job ID immediately. Poll get_job for completion.Jobs and results
GET/api/jobslist_jobs
List your top-level jobs, newest first.
Access Bearer key
offsetintegerZero-based offset.limitintegerMaximum records returned.typesstringComma-separated job methods, for example crawl,extract.GET/api/jobs/:idget_job
Read job state, results, metrics and progress.
Access Bearer key
idstring · requiredResource identifier.POST/api/jobs/:id/stopstop_job
Request cancellation of your job.
Access Bearer key
idstring · requiredResource identifier.GET/api/jobs/:id/itemsget_job_items
Read a page of extracted items for your job.
Access Bearer key
idstring · requiredResource identifier.offsetintegerZero-based offset.limitintegerMaximum records returned.GET/api/jobs/:id/items/csvexport_job_csv
Export your job items as CSV.
Access Bearer key
idstring · requiredResource identifier.GET/api/jobs/:id/items/jsonlexport_job_jsonl
Export your job items as newline-delimited JSON.
Access Bearer key
idstring · requiredResource identifier.GET/api/urlslist_urls
List discovered URLs from your job, optionally filtered by pattern.
Access Bearer key
job_idstring · requiredResource identifier.patternstringURL pattern.offsetintegerZero-based offset.limitintegerMaximum records returned.GET/api/artifacts/:idget_artifact
Get the expiring private download URL for a raw page artifact.
Access Bearer key
idstring · requiredResource identifier.Utilities
POST/api/pdf/textpdf_text
Read text and metadata from a public PDF.
Access Bearer key
urlstring · requiredPublic HTTP or HTTPS URL.GET/api/pdf/textget_pdf_text
Read a public PDF as plain text.
Access Bearer key
urlstring · requiredPublic HTTP or HTTPS URL.POST/api/summarizesummarize
Summarize an object using an account-scoped cache key.
Access Bearer key
keystring · requiredYour cache identifier.objectobject · requiredPOST/api/events/recordrecord_event
Record a named analytics event. Use props.test for test traffic.
Access Bearer key
namestring · requiredEvent name.tidstringVisitor tracking ID.propsobjectGET/api/versionget_version
Read the worker revision, or the API revision with local=true.
Access Public
localbooleanRead the HTTP API revision.GET/api/tokenget_token
Read public FetchFox organization and token quote information.
Access Public
GET/api/contracts/:chainIdget_contracts
Read the contract addresses and ABIs for a supported chain.
Access Public
chainId8453 | 31337 · requiredAccount and billing
GET/api/userget_user
Read your account profile and billing summary.
Access Bearer key
POST/api/user/rotate-api-keyrotate_api_key
Replace your current API key. Save the returned key and reconnect your clients.
Access Bearer key
GET/api/credits/balanceget_credit_balance
Read purchased, consumed and remaining credits.
Access Bearer key
GET/api/credits/transactionslist_transactions
List your credit transactions.
Access Bearer key
GET/api/credits/transactions/:id/invoiceget_invoice
Read the HTML invoice for one of your transactions.
Access Bearer key
idstring · requiredResource identifier.POST/api/credits/purchasepurchase_credits
Charge your saved payment method for credits.
Access Bearer key
amountnumber · requiredAmount in US dollars.POST/api/credits/consumeconsume_credits
Debit a positive number of credits from your balance.
Access Bearer key
amountinteger · requiredCredits to consume (1,000 credits = $1).POST/api/credits/auto-reloadset_auto_reload
Configure automatic charges when the balance falls below the floor.
Access Bearer key
autoReloadEnabledboolean · requiredEnable automatic purchases.autoReloadFloorinteger · requiredBalance threshold in USD.autoReloadTargetinteger · requiredTarget balance in USD.POST/api/user/stripe/payment-intentcreate_card_setup
Create a Stripe setup intent for client-side card collection.
Access Bearer key
POST/api/user/stripe/cardsave_card
Save a Stripe payment method to your account.
Access Bearer key
paymentMethodIdstring · requiredStripe payment method ID from a completed client-side card flow.DELETE/api/user/stripe/cardremove_card
Remove the saved payment method from your account.
Access Bearer key
POST/api/billing/setup-and-chargesetup_and_charge
Set up billing and charge the supplied payment method for the selected plan.
Access Bearer key
planpayg | monthly_10 · requiredamountnumber · requiredAmount in US dollars.paymentMethodIdstring · requiredStripe payment method ID from a completed client-side card flow.