Au

Automatically extract data from APIs with dlt and OpenAPI

Hacker News

Automatically extract data from APIs with dlt and OpenAPI

Hi Show HN, we are Dave, Marcin, Alena, and Adrian, authors of data load tool (dlt), a Python library that automatically creates datasets from any kind of messy, unstructured data. We launched dlt on HN 7 months ago with a mission to make getting datasets fast and easy. Now dlt helps its users to code around a thousand new data sources each month and to maintain many thousands of live datasets in production. Today we are releasing *dlt-init-openapi,* a Python CLI tool that generates a dlt data pipeline from any OpenAPI spec. It brings the time to create a dataset down to a few minutes. Here’s a Colab demo: https://colab.research.google.com/drive/1MRZvguOTZj1MlkEGzji... Here’s a video walkthrough: https://youtu.be/b99qv9je12Q --- In the past you had to analyze REST API endpoints, response data types, pagination styles and write lots of custom Python code to create a dataset. OpenAPI specifications standardized API definitions, making it easier to interact with APIs. Now, dlt-init-openapi leverages these OpenAPI specs to automate the manual work around dataset creation you had to do before. OpenAPI is a growing standard with almost every API using it, and used by default in frameworks like FastAPI. What can dlt-init-openapi do for you? - It generates Python scripts with dlt pipelines that you can run to pull data from your API into a structured destination of your choice (Parquet files, SQL DBs, Databricks, Snowflake, etc.) - Infers and evolves schema for the endpoints from the actual data! - Discovers pagination style for each endpoint - Finds and unwraps data entities for each endpoint, also for deep, nested JSON responses - Discovers the primary key for each entity - Discovers authentication schema and generates code and config files to pass required credentials - You always have the last say. The generated code is declarative and ready to hack in case we pick the wrong paginator or response entity. The tool and dlt are open source, find the code here: https://github.com/dlt-hub/dlt-init-openapi and here: https://github.com/dlt-hub/dlt

Share card

Actual performance

7points
1comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: google, user, new · Missing: mac, agents, macos
85%85% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
83%83% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: open source, ide, pipe · Missing: https docs, excited, just released
67%67% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRFits verified-revenue profile · Strong signals: video, month, google · Missing: mobile apps, ios, personal
54%54% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: users · Missing: plus, platform, intuitive
39%39% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Quantati
Quantati38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Extract product data from any website automatically

Indie Hackers
Da
DataFire – Move Data between APIs52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

DataFire – Move Data between APIs

Hacker News6
Co
ConvertCSV – APIs for Data Transformations62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ConvertCSV – APIs for Data Transformations

Hacker News5
Sc
Scrape.it let's you extract data automatically65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Scrape.it let's you extract data automatically

Hacker News4
Ch
ChromeScraper – Extract Any Data from Any Website58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ChromeScraper – Extract Any Data from Any Website

Hacker News5
Or
Orbital – Dynamically unifying APIs and data with no glue code77%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Orbital – Dynamically unifying APIs and data with no glue code

Hacker News86
AI
AI tool to automatically extract data from images and scanned documents48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI tool to automatically extract data from images and scanned documents

Hacker News8
Datar
Datar63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Extract and reconcile data from documents

Product Hunt+9
APIRobots
APIRobots61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Data and insights via APIs

Indie Hackerscommitment-side-project
MailDump
MailDump25%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Automatically extract emails from any webpage

Indie Hackers1email-marketing