{"found":true,"collection":"patterns","library_url":"https://www.grokbotdb.com/library/pat.browser-to-api-reversal","generated":"2026-09-06T05:32:11Z","citation":["Quote the record id and its source_url (or provenance if there is no URL).","Include last_verified or observed_at when present. Do not present an old date as current.","If tier is community and confidence is low, say so. Do not launder it into a fact.","If the database does not hold the answer, say that. Do not invent Grok Bot product claims.","Contradictions are data: when conflicts_with is present, report both records rather than picking a favourite.","Deprecated and removed records stay visible. They are history, not current guidance."],"record":{"id":"pat.browser-to-api-reversal","name":"Reverse the browser workflow into a script","category":"cost","problem":"A workflow you will run hundreds of times is paying browser prices every single time.","technique":"Let the Bot do the browser workflow once with the network panel open, read its own traffic, identify the underlying requests, and write a script that calls them directly. Document the authentication and what breaks if the site changes, verify the script output matches the browser run, and keep the browser as a reported fallback.","why_it_works":"Every future run becomes a script execution rather than a session of clicking.","when_to_use":"Any workflow you will run more than a dozen times.","when_not_to":"One-off work, and anywhere the service terms forbid it: the Bot acts in your session under your name.","manual_ref":"4.3","evidence":"documented","source_url":"https://grokbotguide.com/use-cases","related":["pat.connection-ladder","pat.script-not-loop"],"confidence":"high","first_seen":"2026-09-03","last_verified":"2026-09-03"}}