{"uid":"cap_W6dxi3I8cPcyVt0MhHrMt","slug":"pocket-network-pretty-charts-d95b1121","name":"Pocket Network Pretty Charts","description":"Pay-per-call access to Pocket Network services. No account, no API key.","url":"https://agent.pocket.network/v1/pretty-charts?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"object","properties":{"csv":{"type":"string","description":"CSV text with a header row. Numbers and ISO dates are parsed."},"tsv":{"type":"string","description":"Tab-separated text with a header row."},"json":{"type":"string","description":"A JSON array of row objects, as a string."},"values":{"type":"array","items":{"type":"object"},"description":"Row objects."}},"description":"Inline data; exactly one of csv, tsv, json or values."},"spec":{"type":"object","description":"A Vega-Lite v6 spec. Any `url` anywhere in it is refused."},"chart":{"type":"object","required":["type"],"properties":{"x":{},"y":{},"type":{"type":"string"},"color":{},"title":{},"width":{"type":"number"},"colors":{"type":"array","items":{"type":"string"}},"height":{"type":"number"},"xRange":{"type":"array"},"yRange":{"type":"array"},"tooltip":{}},"description":"Shorthand that compiles to a single-view Vega-Lite spec. `type` is one of bar, line, area, point, scatter, circle, square, tick, rect, heatmap, arc, pie, donut, boxplot, errorbar, errorband, rule, text, trail; channels (x, y, color, size, shape, theta, ...) take a column name or a field definition; plus xRange, yRange, colors, colorScheme, stack, title, width, height, tooltip."},"options":{"type":"object","properties":{"theme":{"type":"string","e.g. dark.":null,"description":"A vega-themes preset"},"title":{"type":"string"},"width":{"type":"number"},"format":{"enum":["svg","html"],"type":"string","default":"svg"},"height":{"type":"number"},"tooltips":{"type":"boolean","default":true},"background":{"type":"string"}},"description":"Render options."}}},"responseSchema":{"type":"json","example":{"data":{"html":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"480\" height=\"300\" viewBox=\"0 0 480 300\">…</svg>","rows":2,"marks":2,"width":480,"format":"svg","height":300,"service":"pretty-charts","tooltips":true,"warnings":[],"render_ms":41,"content_type":"image/svg+xml"},"portal":{"serviceId":"pretty-charts","provenance":"third-party-supplier","schemaCheck":"passed"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qz4Apm4gXWgPwjvOO8c_y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders inline data (CSV, TSV, JSON, or row objects) into a static SVG or HTML chart using Vega-Lite v6, returned inside a JSON object.","exampleAgentPrompt":"Turn this CSV into a bar chart — columns are 'month' on the x-axis and 'revenue' on the y-axis, use a dark theme, and give it back as an SVG: month,revenue\\nJan,4200\\nFeb,5100\\nMar,4800\\nApr,6300","exampleUseCases":[{"title":"Monthly sales bar chart from CSV","prompt":"I have monthly sales data as a CSV — can you render it as a bar chart with 'month' on the x-axis and 'sales' on the y-axis, dark theme, returned as an SVG? Here's the data: month,sales\\nJan,12000\\nFeb,15400\\nMar,11800\\nApr,17200"},{"title":"Time-series line chart from JSON","prompt":"Take this JSON array of daily temperature readings and render a line chart with 'date' on the x-axis and 'temp_c' on the y-axis, 400px wide and 300px tall, returned as HTML: [{\"date\":\"2024-01-01\",\"temp_c\":3},{\"date\":\"2024-01-02\",\"temp_c\":5},{\"date\":\"2024-01-03\",\"temp_c\":2}]"},{"title":"Category breakdown donut chart","prompt":"Can you make a donut chart from this row data showing market share by product — theta is 'share' and color is 'product'? Return it as SVG. Values: [{\"product\":\"Alpha\",\"share\":42},{\"product\":\"Beta\",\"share\":31},{\"product\":\"Gamma\",\"share\":27}]"}],"resultDescription":"A JSON object containing either a static SVG string or a complete HTML document string representing the rendered chart. The chart uses Vega-Lite v6 encoding with native data-mark tooltips and no client-side scripting. Format depends on the options.format field (default: svg).","failureModes":["URL references in the spec are refused — any `url` field anywhere in a Vega-Lite spec will be rejected","Missing or ambiguous data source (more than one of csv/tsv/json/values provided simultaneously)","Invalid chart type string — must be one of the supported Vega-Lite mark types (bar, line, area, pie, etc.)","Malformed CSV/TSV (missing header row, inconsistent columns) causing parse failure","Payment not processed — 402 response if USDC payment via x402 is not completed","Invalid theme name — unrecognized vega-themes preset causes render error"],"whenToPreferThis":"Choose this endpoint when you need a server-side, no-account, no-API-key chart rendered from inline data — especially when the output must be a static SVG or standalone HTML (not an interactive JavaScript bundle). It is ideal for agents that need to embed charts in reports or emails, where scripted interactivity is undesirable. Prefer it over client-side libraries when the agent cannot run JavaScript, or over full BI tools when the data is small and inline. The pay-per-request USDC model makes it suitable for low-volume, one-off chart generation without subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T02:41:53.252Z","isFirstParty":false,"canonicalSlug":"pocket-network-pretty-charts-d95b1121"}