surge-api
Surge Python SDK
What it is and what it does
Surge-api is a Python client library for the Surge crowdsourcing platform, enabling programmatic access to data labeling workflows. It wraps the Surge REST API and provides object-oriented interfaces for managing projects (creating, listing, retrieving), uploading task data from CSV files or Python dictionaries, and downloading annotated results in multiple formats. The library handles authentication via API key (set directly or via environment variable) and abstracts away HTTP details through requests.
Typical workflows include retrieving existing projects and their results, creating new labeling projects from templates (blueprints), bulk-uploading task data, and exporting completed annotations. The SDK depends on standard HTTP and utility libraries (requests, python-dateutil, six) and includes pytest for its own test suite. It targets Python 3.10+ and is maintained by Surge AI.
Use it for:
- Retrieve completed labeling results from a Surge project and export them to CSV or JSON for downstream analysis
- Programmatically create a new labeling project from a blueprint and bulk-upload task data from a CSV file
- Automate task creation and project management as part of a data pipeline for iterative annotation workflows
- Query individual tasks and their fields to integrate Surge labeling into a larger application
- Set up scheduled jobs to download and process annotation results without manual dashboard interaction
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python SDK for accessing the Surge API to manage data labeling projects, create and retrieve tasks, and download annotated results.
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and provides a straightforward Python interface to Surge's labeling API. Install it if you need to programmatically manage Surge projects and tasks; the low install friction and recent activity make it a low-risk choice. Requires Python 3.10+.
Install
surge-api on PyPI
pip
pip install surge-apiuv
uv add surge-apipoetry
poetry add surge-apiInstalling surge-api
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with a recent release (78 days ago) and ongoing repository activity. Requires Python 3.10 or later.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install surge-api
import surge
surge.api_key = "YOUR_API_KEY"
projects = surge.Project.list()
project = surge.Project.retrieve("project-id")
results = project.download_json()
Requires Python 3.10 or later; Surge API key must be set before making requests.
Verify before relying
- Whether the SDK handles rate limiting or retry logic for API calls
- Support for async/await patterns or only synchronous API calls
- Whether CSV parsing handles edge cases like quoted fields or special characters
- API stability guarantees or backward compatibility policy across versions
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — certifi, charset-normalizer, idna, iniconfig, packaging, pluggy, pytest, python-dateutil, requests, six, urllib3 |
| Maintenance | actively maintained — 78 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,359,937/month — #4,003 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: surge_api-1.5.24-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
labelboxLabelbox is a Python SDK for interacting with…
permissive · top 15,000 on PyPI
label-studioLabel Studio is a web-based data annotation…
permissive · top 15,000 on PyPI
label-studio-sdkProvides a Python client library and CLI for…
unclear · top 5,000 on PyPI
linkup-sdkA Python client library for the Linkup API that…
permissive · top 15,000 on PyPI
zerobouncesdkPython SDK for the ZeroBounce email validation…
permissive · top 15,000 on PyPI
salesforce-bulkPython client library for the Salesforce Bulk…
permissive · top 5,000 on PyPI
superviselyPython SDK for the Supervisely computer vision…
unclear · top 15,000 on PyPI
azure-batchProvides a Python client library to submit,…
unclear · top 1,000 on PyPI
argillaArgilla is a Python SDK client for a…
permissive · top 15,000 on PyPI
valyuValyu provides a Python SDK for accessing web…
permissive · top 15,000 on PyPI