Skip to content

One-Click Export ​

Any captured request can be turned into runnable code in one click.


Overview ​

Stop manually copying headers and cookies. Select a request, choose your format, and get ready-to-run code.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  NETWORK [247]                         β”‚  EXPORT                             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  POST  200  /api/login                  β”‚  Format: [Python (requests) β–Ό]     β”‚
β”‚  GET   200  /api/user                   β”‚                                     β”‚
β”‚  POST  201  /api/data                   β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  GET   304  /api/status                 β”‚  β”‚ import requests               β”‚ β”‚
β”‚                                         β”‚  β”‚                               β”‚ β”‚
β”‚  [Select a request first]               β”‚  β”‚ url = "https://api..."        β”‚ β”‚
β”‚                                         β”‚  β”‚                               β”‚ β”‚
β”‚                                         β”‚  β”‚ headers = {                   β”‚ β”‚
β”‚                                         β”‚  β”‚     "Authorization": "..."    β”‚ β”‚
β”‚                                         β”‚  β”‚ }                             β”‚ β”‚
β”‚                                         β”‚  β”‚                               β”‚ β”‚
β”‚                                         β”‚  β”‚ response = requests.get(...)  β”‚ β”‚
β”‚                                         β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚                                         β”‚                                     β”‚
β”‚                                         β”‚  [COPY]  [DOWNLOAD]                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Supported Formats ​

FormatLibraryUse CaseTLS Fingerprint
Python (requests)requestsStandard Python scraping❌ OpenSSL (detectable)
Python (curl_cffi)curl_cffiPython with Chrome TLSβœ… Chrome-identical
cURLcurlTerminal / shell scripts❌ Depends on build
JavaScriptfetchBrowser / Node.js❌ Browser default
Raw HTTPβ€”Debuggingβ€”

Format Details ​

Python β€” requests ​

Standard Python requests library. Easy to use but uses OpenSSL (detectable by Cloudflare).

python
import requests

url = "https://api.example.com/v1/data"

headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
    "Authorization": "Bearer eyJhbGciOiJIUzI1NiIs...",
    "Content-Type": "application/json"
}

cookies = {
    "session_id": "abc123def456",
    "csrf_token": "xyz789uvw456"
}

response = requests.post(url, headers=headers, cookies=cookies, json={"key": "value"})
print(response.status_code)
print(response.text[:2000])

When to use: Internal APIs, non-protected endpoints, quick testing.


Python β€” curl_cffi ​

Same syntax as requests but uses curl_cffi with Chrome TLS impersonation. Bypasses Cloudflare.

python
from curl_cffi import requests

url = "https://api.example.com/v1/data"

headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
    "Authorization": "Bearer eyJhbGciOiJIUzI1NiIs..."
}

cookies = {
    "session_id": "abc123def456"
}

# Chrome 124 TLS fingerprint
response = requests.post(url, headers=headers, cookies=cookies, impersonate="chrome124")

print(response.status_code)
print(response.json())

Installation:

bash
pip install curl_cffi

When to use: Cloudflare-protected sites, production scraping.


cURL ​

Terminal-friendly. Great for quick testing and shell scripts.

bash
curl -X POST \
  'https://api.example.com/v1/data' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIs...' \
  -H 'Content-Type: application/json' \
  -H 'Cookie: session_id=abc123def456; csrf_token=xyz789uvw456' \
  --data-raw '{"key": "value"}' \
  --compressed

When to use: Terminal testing, debugging, sharing with teammates.


JavaScript fetch ​

Browser or Node.js native fetch API.

javascript
const response = await fetch('https://api.example.com/v1/data', {
  method: 'POST',
  headers: {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36',
    'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIs...',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({"key": "value"})
});

const data = await response.json();
console.log(data);

When to use: Browser automation, Node.js scripts, frontend testing.


Raw HTTP ​

Raw HTTP/1.1 format for debugging.

http
POST /v1/data HTTP/1.1
Host: api.example.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
Content-Type: application/json
Cookie: session_id=abc123def456
Content-Length: 16

{"key":"value"}

When to use: Understanding HTTP protocol, debugging, writing low-level clients.


Using the EXPORT Tab ​

Step-by-Step ​

Step 1: Select a request in the NETWORK tab
              β”‚
              β–Ό
Step 2: Go to the EXPORT tab
              β”‚
              β–Ό
Step 3: Choose your format from the dropdown
              β”‚
              β–Ό
Step 4: Click GENERATE
              β”‚
              β–Ό
Step 5: Click COPY or DOWNLOAD

What Gets Included ​

ComponentIncluded?Source
URLβœ… YesRequest URL
Methodβœ… YesGET/POST/PUT/DELETE
Headersβœ… YesRequest headers
Cookiesβœ… YesMatched from Cookie Inspector
Bodyβœ… YesRequest body (if any)
Query paramsβœ… YesURL query string

Cookies are automatically resolved from the Cookie Inspector based on:

RuleDescription
DomainCookie domain matches request URL
PathCookie path matches or is parent
SecureHTTPS requests only get Secure cookies

You don't need to manually add cookies β€” they're included automatically.


Real-World Use Cases ​

1. Replicate API Call in Python ​

text
1. Browse to site in Nothing Browser
2. Find API request in NETWORK tab
3. Select it
4. EXPORT β†’ Python (curl_cffi)
5. COPY
6. Paste into your Python script
7. Run β€” it just works

2. Share cURL Command with Team ​

text
1. Capture problematic request
2. EXPORT β†’ cURL
3. COPY
4. Send to teammate
5. They can reproduce exactly

3. Debug with Raw HTTP ​

text
1. Request not working as expected
2. EXPORT β†’ Raw HTTP
3. See exact bytes being sent
4. Spot missing headers or formatting issues

4. Convert to JavaScript for Puppeteer/Playwright ​

text
1. Capture authentication request
2. EXPORT β†’ JavaScript fetch
3. Use in browser automation script
4. Maintains all headers and cookies

Format Comparison ​

FeaturePython (requests)Python (curl_cffi)cURLJavaScript
Cloudflare bypassβŒβœ…βš οΈβŒ
Easy to readβœ…βœ…βš οΈβœ…
Copy-paste runβœ…βœ… (pip install)βœ…βœ…
Headers preservedβœ…βœ…βœ…βœ…
Cookies preservedβœ…βœ…βœ…βœ…
Body preservedβœ…βœ…βœ…βœ…

curl_cffi vs requests ​

Why curl_cffi? ​

Aspectrequestscurl_cffi
TLS libraryOpenSSLBoringSSL
JA3 fingerprintPython (detectable)Chrome (undetectable)
Cloudflare❌ Blockedβœ… Passes
SyntaxStandardSame as requests

Migration Example ​

python
# Before (requests)
import requests
response = requests.get(url, headers=headers)

# After (curl_cffi) - change ONE line
from curl_cffi import requests
response = requests.get(url, headers=headers, impersonate="chrome124")

Troubleshooting ​

Exported Code Doesn't Work ​

Possible causes:

  • Session expired (cookies outdated)
  • Request requires specific order of operations
  • Missing dynamic values (timestamps, nonces)

Solutions:

  • Re-capture fresh request
  • Check if request has dynamic parameters
  • Use session persistence to maintain login

Cookies Missing in Export ​

Solution: Ensure cookie domain matches request URL. Check Cookie Inspector for the cookie.

curl_cffi Not Installed ​

bash
pip install curl_cffi

Python Version Issues ​

curl_cffi requires Python 3.8+:

bash
python --version

Keyboard Shortcuts ​

ShortcutAction
Ctrl+EFocus EXPORT tab (when request selected)
Ctrl+GGenerate code
Ctrl+CCopy generated code
Ctrl+SDownload generated code

Next Steps ​


Nothing Ecosystem Β· Ernest Tech House Β· Kenya Β· 2026

MIT Licensed | Built by Ernest Tech House Β· Kenya Β· 2026