Skip to content

ADR 0002 Scraping And Terms

Vitor edited this page Dec 3, 2026 · 1 revision

0002. Pinterest is read through its web endpoints, not the official API

Status: accepted (2026-12-02)

Context

The official Pinterest API v5 has no public keyword search for third-party apps. It reaches only the authenticated user's own pins and boards, and Standard access needs an app review. Searching references therefore means reading the same JSON resources that pinterest.com uses (/resource/<Name>Resource/get/). That is against the spirit of Pinterest's Terms of Service, and those resources change without notice.

Decision

  • Use the web resources, at a modest request rate, with ads filtered out.
  • Resilience is designed in (endpoint registry, shape-based parsing, hunter, health) instead of being bolted on later.
  • Downloads are for reference only. The README says so, and every saved image keeps its origin in a sidecar so credit is possible.
  • Not affiliated with Pinterest. No Pinterest branding.

Consequences

  • Breakage is expected and handled at runtime. A canary (health) tells us when it happens.
  • Logged-out search returns anonymous e1_… ids that can't be looked up again. Chaining "related" from search results needs a login (ADR 0004).

Clone this wiki locally