{"id":15608812,"url":"https://github.com/jacoblee93/airtable-query-examples","last_synced_at":"2025-04-03T16:46:55.913Z","repository":{"id":79498454,"uuid":"279679025","full_name":"jacoblee93/airtable-query-examples","owner":"jacoblee93","description":"Make your Airtable base easily queryable!","archived":false,"fork":false,"pushed_at":"2020-07-16T00:59:19.000Z","size":1002,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T05:30:25.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacoblee93.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-14T19:47:58.000Z","updated_at":"2023-08-28T01:54:41.000Z","dependencies_parsed_at":"2023-04-07T04:33:20.370Z","dependency_job_id":null,"html_url":"https://github.com/jacoblee93/airtable-query-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoblee93%2Fairtable-query-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoblee93%2Fairtable-query-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoblee93%2Fairtable-query-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoblee93%2Fairtable-query-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacoblee93","download_url":"https://codeload.github.com/jacoblee93/airtable-query-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247043275,"owners_count":20874085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T05:24:45.862Z","updated_at":"2025-04-03T16:46:55.895Z","avatar_url":"https://github.com/jacoblee93.png","language":"JavaScript","readme":"# Airtable Query Examples\n\n## Project Overview\n\nThis project contains example endpoints that query data from an Airtable base. It uses the [airtable.query.select](https://autocode.com/stdlib/airtable/query/#select) API from Autocode's Standard Library. You can deploy your own working version of this project in just a few clicks with Autocode.\n\n[\u003cimg src=\"https://open.autocode.com/static/images/open.svg?\" width=\"192\"\u003e](https://open.autocode.com/)\n\nClick the button above to open this project in Autocode, and create a copy of the sample base on your own Airtable account by clicking this link: https://airtable.com/addBaseFromShare/shrcOc6fZARviMGeK. Then, link your copy of the base to your project in Autocode and deploy!\n\n![](./images/base-contents.png)\n\nLike all Autocode templates, the endpoints and queries in this project are completely customizable –– everything is code that you can edit and test using the Autocode editor.\n\n## Endpoints\n\nThese endpoints are accessible via HTTP. You can make calls to them via the [lib-js](https://github.com/stdlib/lib-js) frontend package, or directly to the URL using `fetch` or whatever HTTP client you prefer.\n\nThese endpoints use [KeyQL query](https://github.com/FunctionScript/KeyQL) to make queries. See the KeyQL Github repo for the spec and more examples: https://github.com/FunctionScript/KeyQL\n\n### functions/contains.js\n\nThis endpoint is an example of a `contains` KeyQL query. It looks for rows in the linked Airtable base where the `Job` field contains the substring, `ist`. From the sample base, it returns:\n\n```\n[\n  {\n    \"Job\": \"Mistborn\",\n    \"Born On\": \"2006-07-17\",\n    \"Fictional\": true,\n    \"Name\": \"Vin Venture\"\n  },\n  {\n    \"Job\": \"Scientist\",\n    \"Born On\": \"1955-11-27\",\n    \"Name\": \"Bill Nye\",\n    \"Fictional\": null\n  },\n  {\n    \"Job\": \"Artist\",\n    \"Born On\": \"2001-12-18\",\n    \"Name\": \"billy eyelash\",\n    \"Fictional\": null\n  }\n]\n```\n\n### functions/date__gt.js\n\nThis endpoint is an example of a `date__gt` KeyQL query. It looks for rows in the linked Airtable base where the `Born On` field is after `2000-01-01`. From the sample base, it returns:\n\n```\n[\n  {\n    \"Job\": \"Mistborn\",\n    \"Born On\": \"2006-07-17\",\n    \"Fictional\": true,\n    \"Name\": \"Vin Venture\"\n  },\n  {\n    \"Job\": \"Artist\",\n    \"Born On\": \"2001-12-18\",\n    \"Name\": \"billy eyelash\",\n    \"Fictional\": null\n  }\n]\n```\n\n### functions/istartswith.js\n\nThis endpoint is an example of a `istartswith` KeyQL query. It looks for rows in the linked Airtable base where the `Name` field starts with the string `bil`, case insensitive. From the sample base, it returns:\n\n```\n[\n  {\n    \"Job\": \"Scientist\",\n    \"Born On\": \"1955-11-27\",\n    \"Name\": \"Bill Nye\",\n    \"Fictional\": null\n  },\n  {\n    \"Job\": \"Artist\",\n    \"Born On\": \"2001-12-18\",\n    \"Name\": \"billy eyelash\",\n    \"Fictional\": null\n  },\n  {\n    \"Job\": \"Burglar\",\n    \"Born On\": \"1937-09-21\",\n    \"Fictional\": true,\n    \"Name\": \"Bilbo Baggins\"\n  }\n]\n```\n\n## Thank You!\n\nPlease check out [Autocode](https://autocode.com) or follow us on Twitter, [@AutocodeHQ](https://twitter.com/AutocodeHQ).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblee93%2Fairtable-query-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacoblee93%2Fairtable-query-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblee93%2Fairtable-query-examples/lists"}