Skip to main content
Glama

PulpMiner

Save a page-to-JSON config as a reusable API

pulpminer_save_as_api

Save a URL + JSON format as a PulpMiner API (POST /external/ai/json/save). Afterwards the data is available at {baseUrl}/external/{apiId} with the apikey header (see pulpminer_fetch_api_data). For a dynamic API, pass dynamicUrl with {{ variable }} placeholders, e.g. https://site.com/search?q={{ query }}; callers then supply those variables. Saving itself is free; each later fetch costs 0.4 credits (+0.1 with renderJs). Needs only the PulpMiner API key (PULPMINER_API_KEY locally, or Authorization: Bearer <key> on the hosted server).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
llmNoLLM used to convert HTML to JSON. llm_2 = OpenAI GPT (default), llm_1 = Google Gemini, llm_3 = Groq (only if enabled for the account; otherwise the API returns 'bad request').llm_2
urlYesPage URL the API scrapes (for dynamic APIs: an example URL with real values).
cacheNoCache results: serve cached JSON (24h TTL) and refresh in the background when older than 15 min.
scraperNoScraper backend. scraper_1 (default, supports useSession) or scraper_2. Try the other one if a site blocks scraping.scraper_1
renderJsNoRender JavaScript in a headless browser before extracting (default true; adds 0.1 credits).
selectorNoCSS selector to limit extraction to part of the page, e.g. "main" or "#results". Default: whole body.
dynamicUrlNoOptional URL template with {{ variable }} placeholders. When set the API becomes dynamic and must be called with variables.
jsonFormatYesRequired. The JSON shape the API should return, usually the output of pulpminer_generate_json (values can be left as examples).
useSessionNoUse a persistent scraping session (scraper_1 only; ignored for lifetime-plan accounts).
extraLLMInfoNoExtra natural-language instructions for the LLM, e.g. 'only the first 10 products, prices as numbers'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.