API Integration Toolkit
Pricing
from $10.00 / 1,000 results
API Integration Toolkit
A Swiss-army knife for API developers. Convert between API formats with production-grade, well-documented output code.
Pricing
from $10.00 / 1,000 results
Rating
0.0
(0)
Developer
Jamshaid Arif
Actor stats
0
Bookmarked
1
Total users
0
Monthly active users
3 days ago
Last modified
Categories
Share
π API Integration Toolkit β Apify Actor
A Swiss-army knife for API developers. Convert between API formats with production-grade, well-documented output code.
π What It Does
| Conversion | Input | Output |
|---|---|---|
| Postman β Python | Postman Collection v2.1 JSON | Full Python module with requests.Session, retry logic, auth |
| cURL β Python | cURL command string | Clean requests code with error handling |
| cURL β JavaScript | cURL command string | Modern fetch() with async/await and AbortSignal |
| GraphQL β REST | GraphQL query/mutation JSON | REST-equivalent Python code with endpoint mapping |
| JSON β API Docs | Any JSON API response | Markdown documentation with field table, types, examples |
| Batch All | Uses built-in samples | Runs ALL 5 conversions and outputs each |
β‘ Quick Start
-
Run with defaults β The actor ships with working sample data for every conversion type. Just click Start and it produces output immediately.
-
Paste your own data β Replace the
input_datafield with your Postman JSON, cURL command, GraphQL query, or JSON response. -
Customize β Toggle error handling, type hints, docstrings, timeout values, and retry logic via the input form.
π₯ Input Schema
| Field | Type | Default | Description |
|---|---|---|---|
conversion_type | enum | curl_to_python | Which conversion to run |
input_data | string | (sample cURL) | Source data to convert |
add_error_handling | boolean | true | Wrap code in try/except or try/catch |
add_type_hints | boolean | true | Python type annotations |
add_docstrings | boolean | true | Docstrings / JSDoc comments |
timeout_seconds | integer | 30 | HTTP timeout in generated code |
max_retries | integer | 3 | Retry attempts in generated code |
base_url_override | string | "" | Replace detected base URLs |
output_format | enum | full | full / code_only / documented |
save_to_key_value_store | boolean | true | Save as downloadable files |
π€ Output
Dataset
Each conversion produces a record with:
conversion_typeβ which conversion ranstatusβsuccessorerroroutputβ the generated codeoutput_languageβpython/javascript/markdowntimestampβ ISO 8601settingsβ the options used (infullmode)
Key-Value Store
When save_to_key_value_store is enabled, each conversion saves a
downloadable file:
postman_to_python.pycurl_to_python.pycurl_to_javascript.jsgraphql_to_rest.pyjson_to_api_docs.md
π Generated Code Features
The Python output includes:
requests.Sessionwith configurable retry viaurllib3.RetryHTTPAdapterwith exponential backoff- Proper
raise_for_status()handling - Structured logging with
loggingmodule - Full type hints (
dict[str, Any],Optional, etc.) - Google-style docstrings
if __name__ == "__main__":execution blocks
The JavaScript output includes:
- Modern
async/awaitwithfetch() AbortSignal.timeout()for request timeouts- Granular error classification (timeout, network, HTTP)
- JSDoc comments
π Example API Call
{"conversion_type": "curl_to_python","input_data": "curl -X GET 'https://api.github.com/repos/apify/apify-sdk-python' -H 'Accept: application/vnd.github.v3+json'","add_error_handling": true,"add_type_hints": true,"timeout_seconds": 15}
π Project Structure
βββ .actor/β βββ actor.json # Actor metadata & dataset viewsβββ src/β βββ __init__.pyβ βββ __main__.py # Entry pointβ βββ main.py # All conversion engines + Actor logicβββ INPUT_SCHEMA.json # Input form with defaultsβββ Dockerfileβββ requirements.txtβββ README.md
License
ISC