← All Tools
HTTP → Code Snippet
Convert an HTTP request to code in fetch, curl, Python, Go, PHP, Ruby, and more
Request
Method & URL
GET
POST
PUT
PATCH
DELETE
HEAD
OPTIONS
Headers
JSON
Form
Accept JSON
Bearer
API Key
+ Add Header
Body
(for POST/PUT/PATCH)
JSON
Form URL-encoded
Raw text
None
{"name": "John", "email": "john@example.com"}
Authentication
(optional)
None
Bearer Token
Basic Auth
API Key Header
Code Snippet
Copy
Copied!