{"id":28377561,"url":"https://github.com/codingzeal/thin_notion_api","last_synced_at":"2025-07-28T14:06:25.553Z","repository":{"id":62430416,"uuid":"400626242","full_name":"CodingZeal/thin_notion_api","owner":"CodingZeal","description":"A thin Notion API package for Elixir that gives you a simple way to communicate with the Notion API","archived":false,"fork":false,"pushed_at":"2023-12-06T23:45:40.000Z","size":113,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-18T14:06:24.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodingZeal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-08-27T20:19:29.000Z","updated_at":"2022-10-20T13:58:00.000Z","dependencies_parsed_at":"2023-12-07T02:08:06.367Z","dependency_job_id":null,"html_url":"https://github.com/CodingZeal/thin_notion_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodingZeal/thin_notion_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingZeal%2Fthin_notion_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingZeal%2Fthin_notion_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingZeal%2Fthin_notion_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingZeal%2Fthin_notion_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodingZeal","download_url":"https://codeload.github.com/CodingZeal/thin_notion_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingZeal%2Fthin_notion_api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267527835,"owners_count":24102019,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-05-30T01:05:56.432Z","updated_at":"2025-07-28T14:06:25.520Z","avatar_url":"https://github.com/CodingZeal.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThinNotionApi\n\nThinNotionApi is an Elixir package to easily communicate with the Notion API.\nThe main objective to provide a simple straight forward way for a person to fetch or update information without a large or complex interface.\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `thin_notion_api` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:thin_notion_api, \"~\u003e 1.0.1\"}\n  ]\nend\n```\n\nNext log in to the [Notion Developers](https://developers.notion.com/) site. Visit [My Integrations](https://www.notion.so/my-integrations) and create `New Integration`. After creating your integration, you should now have a `Internal Integration Token` you will use for all your Notion API requests. Make sure to keep this secret private and never leak it because at the moment you cannot regenerate a new one if compromised.\n\nAdd your integration token and which [Version of the Notion API](https://developers.notion.com/reference/versioning) you are using (if not provided, it will default to `2021-08-16`) to config/config.exs:\n\n```elixir\nconfig :thin_notion_api, :api_key, System.get_env(\"NOTION_API_KEY\")\nconfig :thin_notion_api, :notion_version, System.get_env(\"NOTION_VERSION\")\n```\n\nYou are good to go.\n\n## Usage\n\nRetrieve information about a Notion database\n```elixir\niex\u003e ThinNotionApi.Databases.retrieve_database(database_id)\n{\n  :ok,\n  %{...}\n}\n```\n\nRetrieves a Page object using the ID specified.\nResponses contains page properties, not page content. To fetch page content, use the retrieve block children endpoint.\n\n```elixir\niex\u003e ThinNotionApi.Pages.retrieve_page(page_id)\n{\n  :ok,\n  %{...}\n}\n```\n\nFind all modules and functions you can use in the [API Reference section](https://hexdocs.pm/thin_notion_api/api-reference.html).\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/thin_notion_api](https://hexdocs.pm/thin_notion_api).\n\n\n## v2021 Supported Features\n\n- [x] List database\n- [x] Query database\n- [x] Page object actions\n- [x] Block actions\n- [x] User actions\n- [x] Search\n\n## Development Progress\n\nTODO:\n- [ ] Support changes for [2022-06-28](https://developers.notion.com/changelog/releasing-notion-version-2022-06-28])\n- [ ] Support changes for [version 2022-02-22](https://developers.notion.com/reference/changes-by-version)\n\n## Release Process\n\nValidate documentation by generating using following command\n```\nmix docs\n```\n\nYou can spin up a quick web server to host documentation if you have node installed by using the following command:\n```\nnpx http-serve doc\n```\n\nEnsure version in the `mix.exs` has been properly incremented.\n\nIf everything looks good, you can release by running.\n```\nmix hex.publish\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingzeal%2Fthin_notion_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingzeal%2Fthin_notion_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingzeal%2Fthin_notion_api/lists"}