Documentation
CORSPORXY Logo

Documentation → general

Getting Started

Basic Usage

Replace https://corsproxy.io with your actual proxy URL:

// Instead of this (blocked by CORS):
fetch('https://example.com/api')

// Use this:
const targetUrl = 'https://example.com/api'
fetch(`https://corsproxy.io/?key=YOUR_API_KEY&url=${encodeURIComponent(targetUrl)}`)

URL Format

Pass the complete, URL-encoded target through the url query parameter. Encoding prevents the target’s query string from being interpreted as CORSPROXY parameters.

For more examples and encoding guidance, see How to Use CorsProxy.

const targetUrl = 'https://example.com/api?limit=10&sort=newest'
const proxyUrl = `https://corsproxy.io/?key=YOUR_API_KEY&url=${encodeURIComponent(targetUrl)}`

Free-Tier Limits

Create a free account to get an API key. CorsProxy.io’s free tier supports up to 10,000 requests per month and 1 GB of bandwidth per month. Use a paid plan for server-side traffic, advanced features, higher limits, priority routing, or support.

Production‑Plan Features

The following parameters require a Production plan and a valid API key:

  • extract
  • input
  • output
  • ttl

If you use any of these on a lower tier, you will receive a 403 response with a plan upgrade message.