{"uid":"cap_VOSLdksx6f-bw1WQKRH9l","slug":"scrapegraphai-search-extract-9cdb23fd","name":"ScrapeGraphAI Search & Extract","description":"Runs a search, scrapes the top N result URLs, optionally runs LLM extraction with prompt and schema.","url":"https://x402.orthogonal.com/scrapegraphai/api/search","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"type":"string","description":"Content mode: normal, reader, or prune (default prune)"},"query":{"type":"string","description":"Search query (1-500 chars)"},"format":{"type":"string","description":"Output format: html or markdown (default markdown)"},"prompt":{"type":"string","description":"LLM extraction prompt (1-10000 chars)"},"schema":{"type":"object","description":"JSON schema for structured extraction"},"timeRange":{"type":"string","description":"Time filter: past_hour, past_24_hours, past_week, past_month, past_year"},"numResults":{"type":"number","description":"Number of results to scrape (1-20, default 3)"},"fetchConfig":{"type":"object","description":"Fetch options"},"locationGeoCode":{"type":"string","description":"Geo code for location-based results (max 10 chars)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w2HqIcRkvObylmAYglRee","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a web search, scrapes the top N result URLs, and optionally applies LLM extraction with a custom prompt and JSON schema to return structured data.","exampleAgentPrompt":"Search for 'best electric SUVs 2024' and scrape the top 5 results, then extract the car model name, price range, and range in miles from each page as structured JSON.","exampleUseCases":[{"title":"Competitor pricing intelligence","prompt":"Search for 'Notion pricing plans 2024' and scrape the top 5 results from the past month, then extract the plan names and monthly prices as structured data."},{"title":"News summarization from search","prompt":"Search for 'AI regulation EU 2024' filtered to the past week, scrape the top 3 results, and extract the headline, publication date, and a one-sentence summary from each article."},{"title":"Lead research enrichment","prompt":"Search for 'Acme Corp CEO contact information' and scrape the top 4 results, then extract any names, email addresses, and LinkedIn URLs you find into a structured list."}],"resultDescription":"Returns scraped content from the top N search result URLs in markdown or HTML format. If a prompt and schema are provided, also returns LLM-extracted structured JSON matching the schema, derived from the scraped content.","failureModes":["Query too vague returns low-quality or irrelevant scraped pages","Target URLs may block scraping and return empty or partial content","LLM extraction may fail to match provided schema if page content is sparse","timeRange filter may return no results for niche queries","numResults capped at 20; very broad queries may still miss relevant sources","Schema mismatch between expected and extracted fields results in null values"],"whenToPreferThis":"Choose this endpoint when you need to both search the web AND extract structured data from the results in a single call — especially when you want LLM-driven extraction with a custom schema. It outperforms simple search endpoints when downstream structured data (not raw text) is required, and beats single-URL scrapers when you need multi-source aggregation from a query.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:11:11.571Z","isFirstParty":false}