{"id":6515,"date":"2025-06-09T04:01:51","date_gmt":"2025-06-09T04:01:51","guid":{"rendered":"http:\/\/www.withdata.com\/blog\/?p=6515"},"modified":"2026-07-06T03:29:11","modified_gmt":"2026-07-06T03:29:11","slug":"api-json-to-sqlite","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/jsontosqlite\/api-json-to-sqlite.html","title":{"rendered":"Parse JSON from open RESTful API and save to SQLite"},"content":{"rendered":"<p>Want to parse JSON from open RESTful API and save to  <a href=\"http:\/\/www.sqlite.org\/\">SQLite<\/a>  database?<\/p>\n<p>Try Withdata <a href=\"https:\/\/www.withdata.com\/file-to-db\/\">FileToDB<\/a>, a desktop JSON to SQLite converter for Windows, MacOS, and Linux, Import JSON to SQLite, Easy and Fast.<\/p>\n<ul>\n<li>Can run in GUI mode, <a href=\"#import\">Step by Step<\/a>, just a few mouse clicks.<\/li>\n<li>Can run in <a href=\"#cmd\">Command line<\/a>, for <a href=\"#task\">Scheduled Tasks<\/a> and Streams.<\/li>\n<\/ul>\n<p><a href=\"#download-top\" onclick=\"dtv.style.display = 'block';\">Download FileToDB<\/a>  <a href=\"#download-top\" onclick=\"dtv.style.display = 'block';\"><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/download_3.jpg\" alt=\"Download FileToDB\" width=\"80\" height=\"22\" style=\"max-width:100%;height:auto;\" \/><\/a> <span id=\"dtv\" style=\"display: none;\"><br \/>\n<a href=\"\/download.php?app=FileToDB&#038;ver=win64\">Windows 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToDB&#038;ver=win32\">Windows 32 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToDB&#038;ver=deb\">Linux .deb (For Debian, Ubuntu) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToDB&#038;ver=rpm\">Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToDB&#038;ver=pkg\">MacOS 64 bit<\/a><br \/>\n<\/span><\/p>\n<h2 id=\"import\">Import JSON from open RESTful API to SQLite database<\/h2>\n<p> Choose SQLite and logon.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/logon\/choose_sqlite_logon.png\" alt=\"convert online JSON_API file to SQLite table - Choose SQLite and logon\" width=\"430\" height=\"442\" style=\"max-width:100%;height:auto;display:block;\" \/><\/p>\n<p> Click &#8220;Wizard &#8211; 1 File To 1 Table&#8221; at task dialog.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/file-to-db\/task-window.png\" alt=\"convert online JSON_API file to SQLite table - task window\" width=\"722\" height=\"399\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<p>Select &#8220;Source File From&#8221; with &#8220;Url&#8221;.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/file-to-db\/select-file-type-url-json.png\" alt=\"import online RSS feeds to SQLite - select type\" width=\"547\" height=\"236\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<h3>1. Input the RESTful API URL, and download to JSON file.<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/jsontodb\/wizard_source_download-json-api.png\" alt=\"import JSON from open RESTful API to  SQLite database - download from RESTful API URL to JSON file\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<h3>2. Open the saved JSON file.<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/jsontodb\/wizard_source_open-json-api.png\" alt=\"import JSON from open RESTful API to  SQLite database - open saved JSON file\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<h3>3. Config target SQLite database.<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/jsontodb\/wizard_destination_json-api-to-sqlite-start.png\" alt=\"import JSON from open RESTful API to  SQLite database - config  SQLite table\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<p>You can create new SQLite table by JSON struct, just a few mouse clicks.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/jsontodb\/wizard_destination_rss-feeds-to-sqlite-create-table.png\" alt=\"import online RSS feeds to SQLite - create SQLite table\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<p>Select table and config fields.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/jsontodb\/wizard_destination_rss-feeds-to-sqlite-config.png\" alt=\"import online RSS feeds to SQLite - config SQLite fields\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<h3>4. Summary.<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/jsontodb\/wizard_summary_json-api-to-sqlite.png\" alt=\"import JSON from open RESTful API to  SQLite database - summary\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<h3>5. Import RESTful JSON to SQLite.<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/jsontodb\/wizard_import_json-api-to-sqlite.png\" alt=\"import JSON from open RESTful API to  SQLite database - import to  SQLite database\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<p>See importing results in SQLite table<\/p>\n<p>\n<img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/jsontodb\/wizard_result_json-api-to-sqlite.png\" alt=\"import JSON from open RESTful API to Excel file - view SQLite table\" width=\"640\" height=\"480\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<h2 id=\"cmd\">Import API JSON_API to SQLite in command line<\/h2>\n<p><a href=\"https:\/\/www.withdata.com\/file-to-db\/cmd.html\" target=\"_blank\">Run &#8220;JSON_API to SQLite&#8221; from the command line<\/a> and run it from the Windows, Linux or macOS command line.<\/p>\n<h2 id=\"task\">Set scheduled tasks for importing API JSON_API to SQLite<\/h2>\n<p>You can schedule and automate this importing task by: <\/p>\n<ol>\n<li><a href=\"\/file-to-db\/cmd.html\" target=\"_blank\">Save session and create .bat (Windows) or .sh (Linux\/macOS) file for &#8220;JSON to SQLite&#8221; conversion.<\/a><\/li>\n<li><a href=\"\/dbtodb\/schedule-task.html\" target=\"_blank\">Set scheduled task for &#8220;JSON to SQLite&#8221; conversion.<\/a><\/li>\n<\/ol>\n<hr style=\"clear: both;\" \/>\n<p><a href=\"https:\/\/www.withdata.com\/file-to-db\/\">More about FileToDB<\/a> &#8211; <a href=\"\/tools\/file-to-db\/json-to-sqlite\">JSON to SQLite converter<\/a><\/p>\n<div id=\"download-bottom\" style=\"clear: both;\">\n<p>Download FileToDB<a href=\"#download-bottom\" onclick=\"dbv.style.display = 'block';\"><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/btn_download_green.png\" alt=\"Download FileToDB\" width=\"165\" height=\"50\" style=\"max-width:100%;height:auto;\" loading=\"lazy\" decoding=\"async\" \/><\/a> <span id=\"dbv\" style=\"display: none;\"><br \/>\n<a href=\"\/download.php?app=FileToDB&#038;ver=win64\">Windows 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToDB&#038;ver=win32\">Windows 32 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToDB&#038;ver=deb\">Linux .deb (For Debian, Ubuntu) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToDB&#038;ver=rpm\">Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=FileToDB&#038;ver=pkg\">MacOS 64 bit<\/a><br \/>\n<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Want to parse JSON from open RESTful API and save to SQLite database? Try Withdata FileToDB, a desktop JSON to SQLite converter for Windows, MacOS, and Linux, Import JSON to SQLite, Easy and Fast. Can run in GUI mode, Step by Step, just a few mouse clicks. Can run in Command line, for Scheduled Tasks [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1436],"tags":[6,1418,13293,1957,1369],"class_list":["post-6515","post","type-post","status-publish","format-standard","hentry","category-jsontosqlite","tag-import","tag-json","tag-json-api","tag-restful","tag-sqlite"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/6515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=6515"}],"version-history":[{"count":8,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/6515\/revisions"}],"predecessor-version":[{"id":32695,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/6515\/revisions\/32695"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=6515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=6515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=6515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}