{"openapi":"3.1.0","info":{"title":"nwsppr API for AI agents","version":"1.0.0","description":"A newspaper written for your business: the news that matters to your company, competitors, and customers, found fast so nobody on your team has to search for it. Free: today's top stories and signup. Paid per call with x402: deeper story pulls. A company's own ranked paper is on the MCP server (https://mcp.nwsppr.ai/mcp, OAuth)."},"servers":[{"url":"https://www.nwsppr.ai"}],"paths":{"/api/agents/top-stories":{"get":{"operationId":"todaysTopStories","summary":"Today's top stories for an industry (free, no sign-in)","parameters":[{"name":"industry","in":"query","required":false,"description":"Industry slug or name. Leave out for a front page across industries.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":6}}],"responses":{"200":{"description":"The day's top stories","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stories"}}}},"404":{"description":"Unknown industry; the reply lists the ones covered"}}}},"/api/agents/signup":{"post":{"operationId":"startSignup","summary":"Start a signup for a person who asked for it (no email sent, nothing charged)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","company","industry","person_agreed"],"properties":{"email":{"type":"string","format":"email"},"company":{"type":"string"},"website":{"type":"string"},"industry":{"type":"string"},"plan":{"type":"string"},"agent":{"type":"string","description":"Your assistant's name"},"person_agreed":{"type":"boolean","const":true,"description":"The person asked for this signup"}}}}}},"responses":{"200":{"description":"The person's next step"},"400":{"description":"Missing or invalid fields"}}}},"/pricing.json":{"get":{"operationId":"pricing","summary":"Plans and prices","responses":{"200":{"description":"Plans"}}}},"/api/v1/stories":{"get":{"operationId":"paidStories","summary":"Up to 25 ranked stories, any day in the last 30 (x402, $0.04 USDC per call)","description":"Pay per call with x402 v2. Call without payment to get HTTP 402 and a PAYMENT-REQUIRED header; sign the USDC payment (eip155:8453) and call again with PAYMENT-SIGNATURE. Days with no edition answer 404 and aren't charged.","parameters":[{"name":"industry","in":"query","required":false,"description":"Industry slug or name. Leave out for a front page across industries.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":25,"default":10}},{"name":"date","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"description":"x402 v2 payment payload, base64 JSON","schema":{"type":"string"}}],"x-x402":{"protocol":"x402","version":2,"scheme":"exact","network":"eip155:8453","asset":"USDC","price_usd":"0.04","pay_to":"0xc93a70d1f6e020719f1987e3d167681a76e998c7"},"responses":{"200":{"description":"Paid stories; PAYMENT-RESPONSE header holds the settlement receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stories"}}}},"402":{"description":"Payment required: PAYMENT-REQUIRED header (base64 JSON) says what to pay"},"404":{"description":"No edition for that day or industry; not charged"}}}},"/api/v1":{"get":{"operationId":"paidFrontPage","summary":"Same as /api/v1/stories","description":"Pay per call with x402 v2. Call without payment to get HTTP 402 and a PAYMENT-REQUIRED header; sign the USDC payment (eip155:8453) and call again with PAYMENT-SIGNATURE. Days with no edition answer 404 and aren't charged.","parameters":[{"name":"industry","in":"query","required":false,"description":"Industry slug or name. Leave out for a front page across industries.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":25,"default":10}},{"name":"date","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"description":"x402 v2 payment payload, base64 JSON","schema":{"type":"string"}}],"x-x402":{"protocol":"x402","version":2,"scheme":"exact","network":"eip155:8453","asset":"USDC","price_usd":"0.04","pay_to":"0xc93a70d1f6e020719f1987e3d167681a76e998c7"},"responses":{"200":{"description":"Paid stories; PAYMENT-RESPONSE header holds the settlement receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stories"}}}},"402":{"description":"Payment required: PAYMENT-REQUIRED header (base64 JSON) says what to pay"},"404":{"description":"No edition for that day or industry; not charged"}}}}},"components":{"schemas":{"Story":{"type":"object","properties":{"title":{"type":"string"},"why_it_matters":{"type":"string"},"source":{"type":"string"},"url":{"type":"string","format":"uri"},"also_reported_by":{"type":"array","items":{"type":"string"}},"act_within":{"type":"string"},"industry":{"type":"string"}}},"Stories":{"type":"object","properties":{"date":{"type":"string","format":"date"},"industry":{"type":["object","null"],"properties":{"slug":{"type":"string"},"name":{"type":"string"}}},"sample":{"type":"boolean"},"stories":{"type":"array","items":{"$ref":"#/components/schemas/Story"}},"note":{"type":"string"}}}}}}