api2ls.com — Pay-Per-Call APIs for AI Agents

Utility APIs built for autonomous agents and agentic workflows. Pay $0.10 per call on-chain via the x402 protocol on Base or Solana — no accounts, no API keys, no subscriptions. Discoverable via the x402 Bazaar at https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources.

GET /api/readability
Extract clean readable content and markdown from any webpage URL.
Query Parameters
Name Type Required Description
url string required The webpage URL to extract readable content from (https:// prefix optional)
Response (200 OK)
{ "success": true, "url": "https://example.com/article", "title": "Example Article Title", "lang": "en", "markdown": "# Example Article Title\n\nArticle content in markdown format..." }
Example Request
GET /api/readability?url=https://example.com/article
POST /api/svg2png
Convert an SVG document to a PNG raster image.
Request Body

Option 1: Raw SVG body

Send the SVG as the request body with Content-Type: image/svg+xml or text/plain. Max 256KB.

Option 2: JSON with base64

{ "svgBase64": "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==" }
Query Parameters
Name Type Description
width integer Output width in pixels. Max 2048. Default: 1024
height integer Output height in pixels. Max 2048
scale number Scale factor. Max 2
zoom number Alias for scale. Max 2
Response (200 OK)

Returns PNG image with Content-Type: image/png

Example Request
POST /api/svg2png?width=1024 Content-Type: application/json { "svgBase64": "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==", "width": 512 }
POST /api/json2excel
Convert a JSON array of objects to an Excel (.xlsx) spreadsheet.
Request Body

Option 1: With metadata

{ "data": [ { "name": "John", "age": 30, "city": "New York" }, { "name": "Jane", "age": 25, "city": "London" } ], "filename": "export.xlsx", "sheetName": "Sheet1" }

Option 2: Direct array

[ { "name": "John", "age": 30 }, { "name": "Jane", "age": 25 } ]
Field Type Required Description
data object/array required Object or array of objects to convert. Max 10,000 rows, 100 columns
filename string optional Output filename. Default: "export.xlsx"
sheetName string optional Sheet name in Excel. Default: "Sheet1"
Limits
  • Max request size: 512KB
  • Max rows: 10,000
  • Max columns: 100
  • Nested objects are converted to JSON strings
Response (200 OK)

Returns Excel file with Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

File is automatically downloaded with the specified filename

Example Request
POST /api/json2excel Content-Type: application/json { "data": [ { "product": "Laptop", "price": 999, "stock": 15 }, { "product": "Mouse", "price": 25, "stock": 100 } ], "filename": "inventory.xlsx", "sheetName": "Products" }