Skip to main content

Anakin connector for Amazon AppFlow

A custom Amazon AppFlow source connector for Anakin. Scrape a list of URLs, or run a Wire action, on a schedule or on demand, and load the records into S3, Redshift or any other AppFlow destination.

You deploy it as a Lambda function in your own AWS account and register it with AppFlow. Source only.

Entities

Entity One record per Settings
url_scrape URL urls or urls_s3_uri, plus optional use_browser, country, generate_json
wire_action action run action_id, plus optional action_params_json, credential_id

url_scrape fields: url, status, markdown, generated_json, error, job_id, cached, duration_ms, completed_at, truncated.

wire_action fields: job_id, status, params_json, result_json, files_json, error, credits_used, duration_ms, truncated.

A URL that can't be scraped becomes a row with status = failed and an error, so one bad page doesn't fail the flow. Filter on status downstream.

Install

You need Python 3.12, the AWS SAM CLI, the AWS CLI and an Anakin API key (ask_...). New accounts get 300 free credits.

curl -LO https://raw.githubusercontent.com/Anakin-Inc/anakin-appflow-connector/main/template.yaml
curl -LO https://raw.githubusercontent.com/Anakin-Inc/anakin-appflow-connector/main/scripts/build_bundle.sh
bash build_bundle.sh

sam deploy --template template.yaml --stack-name anakin-appflow --resolve-s3 --capabilities CAPABILITY_IAM

aws appflow register-connector --connector-label anakin --connector-provisioning-type LAMBDA \
  --connector-provisioning-config "lambda={lambdaArn=$(aws cloudformation describe-stacks --stack-name anakin-appflow \
  --query "Stacks[0].Outputs[?OutputKey=='FunctionArn'].OutputValue" --output text)}"

To read URL lists from S3, also pass --parameter-overrides UrlListBucket=your-bucket to sam deploy.

Then in the AppFlow console, create a flow with anakin as the source, create a connection with your API key, choose an entity and fill in its settings.

Limits

AppFlow caps each setting at 2048 characters with no whitespace.

  • URLs: urls holds about 40 URLs, comma-separated. For more (up to 10,000), use urls_s3_uri: a file with one URL per line. A URL containing a comma must go in the file.
  • Wire params: write spaces as in action_params_json, for example {"query":"data engineer"}. Use a JSON array to run the action once per object.
  • Page size: AppFlow limits a connector response to 6 MB, so a page larger than 4 MB has its markdown cut, or result_json dropped, and truncated set to true.
  • Throughput: Anakin's job submission limits apply: 60 URLs/min and 20 Wire runs/min per API key, shared with your other Anakin usage.
  • Incremental pulls: not supported. Every run fetches everything again and uses credits for every URL.

How it fits AppFlow's limits

AppFlow requires each read call to answer within 30 seconds. Scrapes can take longer, so the connector submits each URL as its own job and returns what has finished after at most 22 seconds. The pagination token carries the jobs still running, so the next call resumes them. A job still unfinished after 300 seconds becomes a failed row.

Compatibility

The AppFlow SDK (custom-connector-sdk 1.0.5) fails on import on Python 3.13, so the Lambda runtime is pinned to python3.12.

Tested end to end on 2026-11-06 with real AppFlow flows writing to S3: url_scrape from inline URLs and from an S3 file, wire_action, runs spanning several pages, and pages with no finished records. Flows were created through the AppFlow API. A scheduled flow was accepted at creation, but no scheduled run has been tested.

Development

python -m venv .venv && .venv/bin/pip install -e '.[dev]'
.venv/bin/pytest && .venv/bin/ruff check . && .venv/bin/mypy

# Run AppFlow's paging loop against the live Anakin API, no AWS needed:
ANAKIN_API_KEY=... .venv/bin/python scripts/local_flow.py url_scrape urls=https://example.com

# Full test in a real AWS account:
ANAKIN_API_KEY=... .venv/bin/python scripts/aws_e2e.py --profile P --region us-east-1 --function-arn ARN --bucket B run

Metadata

Release files for anakin-appflow-connector 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anakin-appflow-connector 0.1.0
File Size Uploaded Provenance Actions
anakin_appflow_connector-0.1.0.tar.gz 21.1 kB With provenance Details for anakin_appflow_connector-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anakin-appflow-connector 0.1.0
File Interpreter ABI Platform Actions
anakin_appflow_connector-0.1.0-py3-none-any.whl Python 3 none any Details for anakin_appflow_connector-0.1.0-py3-none-any.whl

Total release size: 35.4 kB

Release files / anakin_appflow_connector-0.1.0.tar.gz

Download URL anakin_appflow_connector-0.1.0.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
56675bece3af5952a6ccb4dcb4fcd9cc128b38cd0e0afcc8f0b08d6d2aaf3f0a
BLAKE2b-256 checksum
How to use checksums
d3ec7b94f1292bfefd02d7584f5720a71012e4adb6d960960a185a0819340436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / anakin_appflow_connector-0.1.0-py3-none-any.whl

Download URL anakin_appflow_connector-0.1.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b740927016b0e96d6f7745806747b5e8e789a18bf82f844d48f528710da1f7fc
BLAKE2b-256 checksum
How to use checksums
d465c00791cbb2e5e1e9ed5ed7210dc96eef9d768d2888d1b820266ab9443a82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for anakin-appflow-connector 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for anakin_appflow_connector-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page