Skip to content
SmallPDF.us
Geliştirici API'si · v1

Geliştiriciler için yapılmış PDF API'si

Her görev için tek bir basit REST uç noktası. PDF'leri her dilden birleştirin, dönüştürün, sıkıştırın ve koruyun; SDK yok, sunucu yok, uğraşacağınız PDF kütüphaneleri yok.

11 uç nokta
PDF, Word ve görseller
SDK yok
Düz HTTP + multipart
Gizli
Taranır ve otomatik silinir
Her dil
cURL, Node, Python…

Hızlı başlangıç

1. Anahtar alın

Giriş yapın ve kontrol panelinizde bir anahtar oluşturun.

2. Bir uç noktayı çağırın

Dosyanızı multipart/form-data olarak POST edin.

3. Sonucu alın

İşlenen dosya anında geri akar.

Request
curl -X POST https://smallpdf.us/api/v1/merge \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "files=@image1.pdf" \
  -F "files=@image2.pdf" \
  -o merged.pdf

Kimlik doğrulama

Her istek gizli anahtarınızı şu başlıkta içermelidir: X-API-Key Anahtarları şuradan oluşturup yönetin: kontrol paneli. Anahtarları sunucu tarafında tutun; asla istemci kodunda ifşa etmeyin.

Request
X-API-Key: sk_live_xxxxxxxxxxxxxxxxxxxxxxxx

Temel URL ve yanıtlar

Tüm uç noktalar POST şu adresin altındadır:

https://smallpdf.us/api/v1
  • Başarı durumunda işlenen dosya doğrudan yanıt gövdesinde döner.
  • Hata durumunda bir JSON gövdesi döner: { "error": "...", "code": "..." }
  • Her yanıt şunu içerir: X-RateLimit-Limit / X-RateLimit-Remaining
  • Yüklenen dosyalar kötü amaçlı yazılım için taranır ve işlemden hemen sonra sunucularımızdan silinir.

Uç noktalar

Düzenle

POST/v1/mergeMerge PDF

Combine two or more PDFs into a single document, in the order provided.

Parametreler

filesfile[]zorunlu

Two or more PDF files.

Döndürür: PDF file · merged.pdf

Request
curl -X POST https://smallpdf.us/api/v1/merge \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "files=@image1.pdf" \
  -F "files=@image2.pdf" \
  -o merged.pdf
POST/v1/splitSplit PDF

Split a PDF. Without `pages` you receive a ZIP with one PDF per page; with `pages` you receive a single PDF of just those pages.

Parametreler

filefilezorunlu

The PDF to split.

pagesstringisteğe bağlı

Optional range, e.g. "1,3,5-7".

Döndürür: PDF file · split.pdf

Request
curl -X POST https://smallpdf.us/api/v1/split \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@input.pdf" \
  -F "pages=1-3" \
  -o split.pdf
POST/v1/rotateRotate PDF

Rotate every page by a multiple of 90 degrees.

Parametreler

filefilezorunlu

The PDF to rotate.

angleintisteğe bağlı

90, 180 or 270. Default 90.

Döndürür: PDF file · rotated.pdf

Request
curl -X POST https://smallpdf.us/api/v1/rotate \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@input.pdf" \
  -F "angle=90" \
  -o rotated.pdf

Dönüştür

POST/v1/pdf-to-wordPDF to Word

Convert a PDF into an editable Word (.docx) document with layout preserved.

Parametreler

filefilezorunlu

The PDF to convert.

Döndürür: Word .docx file · converted.docx

Request
curl -X POST https://smallpdf.us/api/v1/pdf-to-word \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@input.pdf" \
  -o converted.docx
POST/v1/word-to-pdfWord to PDF

Convert a Word document (.doc, .docx, .odt, .rtf) into a PDF.

Parametreler

filefilezorunlu

The document to convert.

Döndürür: PDF file · converted.pdf

Request
curl -X POST https://smallpdf.us/api/v1/word-to-pdf \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@input.docx" \
  -o converted.pdf
POST/v1/pdf-to-jpgPDF to JPG

Render each PDF page to a JPG image. Returns a ZIP archive.

Parametreler

filefilezorunlu

The PDF to convert.

qualitystringisteğe bağlı

standard (150dpi) · high (300) · maximum (600).

Döndürür: ZIP archive of images · pages.zip

Request
curl -X POST https://smallpdf.us/api/v1/pdf-to-jpg \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@input.pdf" \
  -F "quality=high" \
  -o pages.zip
POST/v1/pdf-to-pngPDF to PNG

Render each PDF page to a PNG image. Returns a ZIP archive.

Parametreler

filefilezorunlu

The PDF to convert.

qualitystringisteğe bağlı

standard · high · maximum.

Döndürür: ZIP archive of images · pages.zip

Request
curl -X POST https://smallpdf.us/api/v1/pdf-to-png \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@input.pdf" \
  -F "quality=high" \
  -o pages.zip
POST/v1/jpg-to-pdfJPG to PDF

Combine one or more JPG images into a single PDF (one image per page).

Parametreler

filesfile[]zorunlu

One or more JPG images.

Döndürür: PDF file · images.pdf

Request
curl -X POST https://smallpdf.us/api/v1/jpg-to-pdf \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "files=@image1.jpg" \
  -F "files=@image2.jpg" \
  -o images.pdf
POST/v1/png-to-pdfPNG to PDF

Combine one or more PNG images into a single PDF (one image per page).

Parametreler

filesfile[]zorunlu

One or more PNG images.

Döndürür: PDF file · images.pdf

Request
curl -X POST https://smallpdf.us/api/v1/png-to-pdf \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "files=@image1.png" \
  -F "files=@image2.png" \
  -o images.pdf

Optimize Et

POST/v1/compressCompress PDF

Reduce a PDF's file size with lossless stream compression.

Parametreler

filefilezorunlu

The PDF to compress.

Döndürür: PDF file · compressed.pdf

Request
curl -X POST https://smallpdf.us/api/v1/compress \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@input.pdf" \
  -o compressed.pdf

Güvenlik

POST/v1/protectProtect PDF

Encrypt a PDF with AES-256 so it can only be opened with the password.

Parametreler

filefilezorunlu

The PDF to protect.

passwordstringzorunlu

Password required to open the file.

Döndürür: PDF file · protected.pdf

Request
curl -X POST https://smallpdf.us/api/v1/protect \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@input.pdf" \
  -F "password=secret123" \
  -o protected.pdf

Paketler ve kota

PaketAPI çağrılarıFiyat
Free50 / month$0
Starter1,000 / month$9/mo
Pro10,000 / month$19/mo
Max100,000 / monthContact sales

Kota her ayın 1'inde (UTC) sıfırlanır. Yalnızca başarılı çağrılar sayılır. Tam fiyatlandırmayı görün →

Durum ve hata kodları

HTTPKodAnlamı
200-Success. The processed file is returned in the body.
400BAD_INPUTMissing or invalid file / parameters.
401NO_API_KEY · BAD_API_KEYMissing, invalid or revoked key.
429QUOTA_EXCEEDEDMonthly quota used up - upgrade your plan.
500PROCESSING_ERRORThe file could not be processed.

Bugün geliştirmeye başlayın

Ücretsiz bir API anahtarı oluşturun ve ilk çağrınızı bir dakikadan kısa sürede yapın.

API anahtarınızı alın