Notion API - Full Course for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ม.ค. 2025

ความคิดเห็น • 116

  • @ThomasFrankExplains
    @ThomasFrankExplains  ปีที่แล้ว +23

    📌📌📌 This pinned comment contains links/answers for if you get stuck AND important updates. Please read it if you need help!
    ~IF YOU GET STUCK~
    1. Please consult the written version. I've added deep explanations, diagrams, and TONS of additional links and videos that can teach you literally anything mentioned here that doesn't initially make sense: thomasjfrank.com/notion-api-crash-course/
    2. Read the comments in my index.js code at my full Glitch project: glitch.com/edit/#!/notion-pokedex
    3. Remix my Glitch project, add your .env variables (detailed starting at 16:58), and run it. Then start changing things and tinkering.
    4. EMBRACE getting stuck. Realize that getting stuck is part of the process, and believe in your ability to push through a steep learning curve. If I can do it, you can do it!
    5. Ask for help here in the comments. I may not always be able to answer, but others might have the insight you're looking for. Additionally, seek out communities that can help you with coding problems such as Stack Overflow.
    6. If you are new to JavaScript, I highly recommend going through freeCodeCamp's beginner-level JavaScript course. This is how I learned, and I didn't even go through the whole thing. I've only done the Basic JS and ES6 modules; they gave me enough of a foundation to start reading the MDN docs and understanding them: www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/
    ~UPDATES~
    1. I've just created two additional API tutorials!
    - How to Query a Notion Database with More than 100 Rows: thomasfrank.notion.site/Query-a-database-with-more-than-100-rows-Pagination-1de2e1a4314c462990967ee23da865ed
    - Get the Highest Value from a Number Property in a Database: thomasfrank.notion.site/Get-Highest-Number-Value-from-a-Database-ae387fa0e1c54288bb0dc81021da870c
    2. As of today (3/2/23) the Page Properties reference in the Notion API Reference (developers.notion.com/reference/property-value-object) contains examples for both setting page properties (POST requests) and reading page properties (GET requests).

  • @Maneetpaul
    @Maneetpaul ปีที่แล้ว +119

    Thomas, I have so much respect for the amount of effort you put into creating resources for the community as a whole. You could have easily turned this into a paid-product. I love what you're doing and take a lot of inspiration from it!

  • @fgaguaviva
    @fgaguaviva ปีที่แล้ว +22

    Man this is incredible. I don’t think it is possible to find in TH-cam many tutorials with such detail and so accesible as this one. Congratulations 🙌🏻!

  • @teenat7044
    @teenat7044 ปีที่แล้ว +15

    Your quality is insane, thank you for providing people with such clean and lovely edited videos. I hope you take a lot of pride in your work, you're doing things right!

  • @austinandriese
    @austinandriese ปีที่แล้ว +5

    You have no idea how stoked I was to see this on my feed! Killer job at breaking down the process and explaining how it works so we can do it ourselves.
    Excited to see what I can automate as I figure this out.

  • @3t3rnalstudent
    @3t3rnalstudent ปีที่แล้ว +5

    Thank you so much for doing this beginner level video.
    It truly is so frustrating when people assume we're all mid-to-pro level experts already.
    You are a gift to the TH-cam community! Thank you! 🙏

  • @nasnaras1
    @nasnaras1 11 หลายเดือนก่อน +1

    Simply incredible! Extremely grateful that there are people like you who generate quality content explained in detail and so clearly!

  • @BryanLim
    @BryanLim ปีที่แล้ว +4

    Ooo its finally here! Been waiting for this video to drop! Let’s go!! 🎉

  • @TheUltimateScorpio
    @TheUltimateScorpio 14 วันที่ผ่านมา

    This is a really amazing and valuable video with great concepts to learn for multiple industries and facets of life. I so appreciate you taking the time (what I can only imagine was a year) putting this together in such a fun, interactive, and easily digestible format. I went to school for Music and Computer Science, and I struggled so much thinking I was stupid and not smart enough to code, but it really just takes a good teacher, fun and interactive hands-on learning, and some good vibes. Thank you Thomas! You're truly a treasure.

    • @ThomasFrankExplains
      @ThomasFrankExplains  13 วันที่ผ่านมา

      Thanks so much for the kind words - I'm very glad you found this video helpful!
      I think the production process took around 3 months, and I think I started learning to code around 8 months before it went live. So yeah, definitely a longer process on this one!

  • @Stephen_Lafferty
    @Stephen_Lafferty ปีที่แล้ว +6

    I will be revisiting this video many times in the coming months! Many thanks for your hard work in scripting and filming this amazing content!

  • @universecode1101
    @universecode1101 ปีที่แล้ว +7

    Good content, I'm improving with Notion to speed up my productivity. Thank you for sharing

  • @manovssmunchies
    @manovssmunchies ปีที่แล้ว +2

    Incredible video!!! Keep it up! Your explanations, production quality, and everything were all top notch. Thank you for sharing this!

  • @MarioZamoraMusic
    @MarioZamoraMusic ปีที่แล้ว +1

    I was searching for how to use the Notion API and you came up. Loved building with you! Thanks for sharing 👍

  • @kaudamful
    @kaudamful ปีที่แล้ว +1

    Completely hyped! Waiting for the pipedream tut :)

  • @jessbuchanan1541
    @jessbuchanan1541 11 หลายเดือนก่อน

    This is absolutely amazing of you to do. Thank you so much! I have been trying to teach myself how to code and like you, I have been struggling to find something that is suitable for an ABSOLUTE beginner. This has been extremely helpful for me in achieving my goal, and I just want you to know how much you are appreciated for this! I truly enjoy all of your videos, actually how I got obsessed with Notion and all of it's capabilities. Absolutely amazing program. Thanks again!

  • @CreatorWizard
    @CreatorWizard ปีที่แล้ว +3

    Your videos make me wanna cry they're so good

  • @matheusschultz2438
    @matheusschultz2438 ปีที่แล้ว +1

    Thomas, thank you for this amazing tutorial.
    I've just gone through it all and I learned a lot! I'm ready to go and work on the pipeline project you made with ChatGPT, which will make my PhD work much faster and easier!
    I started following you back when I was starting university almost 6 years ago! It's amazing how even through my PhD your work is still extremelly useful and valuable!
    I love your stuff!

  • @dwieb
    @dwieb ปีที่แล้ว

    I am a developer of approximately 8 years now... You are my spirit animal [and new favorite developer].

  • @fallenangel8785
    @fallenangel8785 ปีที่แล้ว +2

    I have been waiting for long, thank you

  • @millionairemoxie
    @millionairemoxie ปีที่แล้ว +2

    Thanks for putting this together, Thomas. This is such a great 101, 102 🙏

  • @swagat_panda_23
    @swagat_panda_23 ปีที่แล้ว +2

    A very helpful tutorial as always Thomas, thank you for all your effort. I used important bits from this to automate the creation of a word meaning dictionary database on Notion, and since I'm not a native speaker of English, it has helped me learn a lot of new words. The adding/modifying child block content as discussed here helped a lot, alongside the Notion API reference of course.

    • @MarVitAlex
      @MarVitAlex ปีที่แล้ว

      Добрый день! Подскажите, на основе каких данных вы создаете словарной базы данных?
      Можете описать процесс. Сам изучаю Английский, хочу сделать этот процесс интересным и самое важное продуктивным.

    • @swagat_panda_23
      @swagat_panda_23 ปีที่แล้ว

      @@MarVitAlex Hello! I developed a dictionary database that includes a word's sound, definition, part of speech, etymology, and history. All of this data is collected by scraping publicly accessible dictionary websites. It operates by reading words from a .txt file that contains all of the new terms I come across, which is why I turned it into an executable to make it hassle-free.

  • @007Saad007
    @007Saad007 ปีที่แล้ว +1

    Yay! Thomas is a developer now! Also, before even completing it, I know how much more fun & productive this tutorial is going to be than an average tutorial on APIs

  • @kevinforster3493
    @kevinforster3493 ปีที่แล้ว +2

    This is incredible. I have been a fan for a while, but I absolutely loved this video! I am very new to coding, and this was so much fun to follow along and learn with you. Plus, I got to make a pokedex in Notion! Thank you for your care and thoroughness you put into your videos! 😄

  • @chasekimball00
    @chasekimball00 ปีที่แล้ว

    Simply astounding. Thomas if you love these types of videos, please, fire away. I think youtube lacks depth in tutorials and this was such a rewarding experience :)

  • @vincenzocirillo7980
    @vincenzocirillo7980 ปีที่แล้ว

    Thomas, you are the one! Thanks from Italy! Amazing job, I was a programmer with little experience in javascript and API (only C language), I completely understand everything, and of course all works very well!

  • @fasaipuengudom5412
    @fasaipuengudom5412 ปีที่แล้ว

    Just want to let you know I purchased the second brain and creator bundle purely as a "thank you" for you making these detailed high quality videos.
    Thank you

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว

      Wow, thank you so much! Hope you find the bundle useful as well :)

  • @NhanNguyen-jk7tf
    @NhanNguyen-jk7tf ปีที่แล้ว +1

    That's awesome! Thank you so much. I'm looking forward to seeing more cool videos from you in the future.

  • @mckayprestwich
    @mckayprestwich ปีที่แล้ว

    Good work on closing that move ring. Keep it up champ!

  • @Suveshinidd
    @Suveshinidd ปีที่แล้ว +3

    Hi Thomas! I wanted to thank you very much for your latest video, it has been of great help to me. I know you invested a lot of time and effort into it, and I want you to know that your dedication does not go unnoticed. I really appreciate all the work you do on your channel and the quality of your content.
    I hope you continue to do this excellent work and that you can continue to inspire and help more people like me. I wish you the best and look forward to your next videos. Thanks again for everything!😊😊🎉

  • @danquixote6072
    @danquixote6072 ปีที่แล้ว +1

    This video looks perfect to getting my next project up and running. I'd never heard of Pokemon until 2 weeks ago, and this is the third time in two weeks that I am seeing it - I feel old!

  • @ericchen4623
    @ericchen4623 ปีที่แล้ว

    好詳細,謝謝你的教學影片和教學文章,詳細清楚的解釋了許多我之前不太懂的地方,太感謝了🙏Thank you for such an amazing teaching video!

  • @zakariaelhamdi2035
    @zakariaelhamdi2035 ปีที่แล้ว +1

    Thanks, man! we really really appreciate what you do! thank you

  • @pranjalnshah
    @pranjalnshah ปีที่แล้ว +1

    Thank you for this amazing intro to the API Thomas! Time to add making a custom Notion widget to view DB entries to my todo list 😆

  • @rurens2
    @rurens2 5 วันที่ผ่านมา

    Amazing choice of example

  • @lucaszapico926
    @lucaszapico926 ปีที่แล้ว

    I gotta say, incredibly well done video. Great job man!

  • @thevicmontano
    @thevicmontano ปีที่แล้ว

    This just started a new learning journey for me! I will start learning more about integrations using more APIs and Javascript! Thanks Thomas! Wowww, just amazing! 🎉🎉🎉

  • @Necroph0re
    @Necroph0re ปีที่แล้ว +2

    This was wonderfully useful and informative ... please do keep making content like this, and thank you!

  • @reina3846
    @reina3846 ปีที่แล้ว

    Looking good Thomas! Thanks for another helpful video.

  • @The.Liminal.Spaces
    @The.Liminal.Spaces 4 หลายเดือนก่อน

    Wow... I love you and your work. Thank you for adding so much value to our lives.

  • @faifad
    @faifad ปีที่แล้ว

    Thank you! This was great. Looking forward to other API tutorials 😁😁

  • @wisamahmed251
    @wisamahmed251 ปีที่แล้ว

    Thanks so much for this Thomas. It was incredibly helpful!

  • @kurtsmock2246
    @kurtsmock2246 ปีที่แล้ว

    You've got a fantastic gift of teaching. This was really good.

  • @mikiseals
    @mikiseals ปีที่แล้ว

    Great job, Thomas!

  • @ktnolan
    @ktnolan 11 หลายเดือนก่อน

    This is a great tutorial, thank you for making it

  • @aboodahmad8236
    @aboodahmad8236 ปีที่แล้ว +2

    Hello there
    Thanks Thomas for this marvelous video, but I have qustion:
    When I open your blog and copy the checkpoint where ‏‪55:53‬‏ is stop, but the code said that there are error, in notionhq/client and said that request fial
    I cheack the API token for notion and database link in env, both are correct.

    • @valerieprice7235
      @valerieprice7235 ปีที่แล้ว +1

      Did you figure this out? I'm stuck too

    • @jimmyjim
      @jimmyjim ปีที่แล้ว

      Same here, does anyone have a clue of why we are getting this error?

    • @malvibid
      @malvibid 10 หลายเดือนก่อน +1

      I faced this issue today. I was getting a 401 Unauthorized Error. A quick test revealed that the environment variable was not being passed to main application - running console.log(process.env.NOTION_KEY); returned undefined.
      Make sure your .env file contains the correct token and is formatted as Key=Value, without any spaces between the equals sign.
      NOTION_KEY=your_notion_key_here
      Use a library like dotenv to load the .env file variables into process.env. You typically do this at the entry point of your application:
      require('dotenv').config(); console.log(process.env.NOTION_KEY);
      The above line should return your token
      Now the script should run as expected, if there are no other errors.

  • @emreeee000
    @emreeee000 ปีที่แล้ว

    Thank you so much for this video and this TH-cam Channel..

  • @xerox782
    @xerox782 ปีที่แล้ว

    Awesome tutorial! Thank you!

  • @davidduran2984
    @davidduran2984 ปีที่แล้ว +2

    Awesome... Thanks for this.

  • @philippseis6893
    @philippseis6893 ปีที่แล้ว

    Thank you for this wonderfull and inspiring ressource!!!

  • @edhodges1984
    @edhodges1984 ปีที่แล้ว

    Thomas, this is amazing, thank you for helping me understand a little bit about API. Now to use Strava and pull my workout data from there using their API.. Thanks again :)
    Also Ultimate Brain... phenomenal. I build August Bradleys PPV but it didn't fit my workflow - ultimate brain does!
    Keep up the great work!

  • @brittaherrmann8499
    @brittaherrmann8499 ปีที่แล้ว

    Thats such a great Video! Just need to figure out how to fetch the data from my work website to duplicate this with my projects

  • @TonyStoodios
    @TonyStoodios ปีที่แล้ว +1

    It's live, IT'S LIIIIIIIVE!

  • @freddiejonesy6168
    @freddiejonesy6168 ปีที่แล้ว

    Great video!

  • @1stepatatime
    @1stepatatime ปีที่แล้ว +3

    ❤❤❤ Bless your heart

  • @jaigval
    @jaigval ปีที่แล้ว +4

    OMG. Such a long video and the whole course is free.

  • @MilenaHirkala
    @MilenaHirkala 7 หลายเดือนก่อน

    Thank you.

  • @GonzaloGDiezyt
    @GonzaloGDiezyt ปีที่แล้ว

    I'm looking forward for a way to write some code within notion that let's me create a form that is inside a notion pages, that updates a database.
    For context: I want to be able to create a form that records all income and expenses for a business, but using the form to avoid mistakes and typos. And later I want to display some stats and graphs on that database.
    The question is: Is this possible?
    If so, can you tell me some steps, I will later do the the research and hard work, but what I Have found so far is not helping me.
    For more context, I'm able to write some python if that helps

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว

      That's not possible natively, as Notion doesn't have a form-builder and the API doesn't support embedding all types of content. But you can embed a Tally form on a page, then connect that to a Notion database. Then you can use a tool like grid.is to create charts. For the most part, this should be a no-code workflow!

    • @GonzaloGDiezyt
      @GonzaloGDiezyt ปีที่แล้ว

      Thanks a ton, you saved me a lot of time of research! 🎉

  • @hamer5171
    @hamer5171 ปีที่แล้ว

    I’m up to the point of testing for the first time and all it’s giving me is a blank response ; I don’t have time right this second to blindly trouble shoot as it’s late so I’m posting this in hopes of somebody pushing me in the right direction ; I thought I was following word for word except for using the latest axious update

  • @Yasinaktimur
    @Yasinaktimur ปีที่แล้ว

    nice content

  • @limitless_pod
    @limitless_pod ปีที่แล้ว

    Could you do a video where you show how to connect notion and habitica?

  • @irfanadamm5819
    @irfanadamm5819 9 หลายเดือนก่อน

    omg charts, and evolution mapping, would be great. Please

  • @timjmartin
    @timjmartin ปีที่แล้ว

    Well I must say all I want is to populate my Pokemon database. And at 20:39 it kinda gets glossed over as fas as what to do to activate the integration. My apologies if it's something simple that I didn't pick up on. I see that you've done something with the code in glitch.

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว +1

      It sounds like you just need to run your file in the terminal - see this section for instructions! thomasjfrank.com/notion-api-crash-course/#first-page

    • @timjmartin
      @timjmartin ปีที่แล้ว

      @@ThomasFrankExplains Thank you sir!! I didn't notice in the toolbar where it said terminal. And as soon as I clicked on it I knew I was in the right place.

  • @omggot
    @omggot ปีที่แล้ว +1

    Hey, THIS WAS REALLY HELPFUL. I wrote a script to pull imdb data taking imdb id as input. But, I have no idea how to autmoate this thing. Basically, I want to figure out how to run index.js automatically each time I inpurt id in my database. Please help?

  • @StephenRayner
    @StephenRayner ปีที่แล้ว

    Quality 🎉

  • @Ah_94102
    @Ah_94102 ปีที่แล้ว +1

    Thank you for your efforts in creating this wonderful video. Since I utilized (Ultimate TasksTemplate) and quit using it after about two months, I'm curious to know about your real-life planning workspace, for example, if you use API, GTD, or any other straightforward dashboards.

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว +1

      I use Ultimate Brain! thomasjfrank.com/brain/

    • @Ah_94102
      @Ah_94102 ปีที่แล้ว

      ​@@ThomasFrankExplains Is there any free alternative😅

  • @kentjensen4504
    @kentjensen4504 ปีที่แล้ว

    Still no updated main course. I've been asking for, what, 4, 5, 6 months? You said it was jsut around the corner, ages ago.

  • @MrEdukada
    @MrEdukada ปีที่แล้ว +2

    Salute!

  • @davidrempel433
    @davidrempel433 ปีที่แล้ว

    You missed the part on how to build a PC, write our own server from scratch and implement HTTP. Come on Thomas, I expect more from you. JK this is amazing, thank you 🙏

  • @AlexisSmith-r4k
    @AlexisSmith-r4k ปีที่แล้ว

    How do I find other Notion API Projects?

  • @litdav
    @litdav ปีที่แล้ว

    could you please provide any real life application areas for this „technology“?
    i learned some basic java in school but i dont see how this will apply to my notion usage for private and business organization

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว +2

      Sure thing! Here are a few examples:
      - Processing webhook events from a point-of-sale system and creating a database of sales records in Notion, or even a CRM
      - Sending audio transcriptions and AI summaries (for voice notes, recorded meetings, lectures) to Notion
      - Using Notion as a CMS for a front-end website built with Next.js, Astro, or another framework (this is basically what Notaku does)
      - Sending events created in Notion to a calendar app
      - Mirroring a database (I've done this for a client; I built a script that syncs a private database to a less private copy, but leaves out sensitive information that the less-private copy shouldn't have)
      The API basically gives you programmatic access to your Notion workspace. It lets you get data into it, read data from it, and update/delete data that's already there.
      With that amount of flexibility, you can do pretty much anything. But it's best for creating automations or connecting Notion to apps that can do things Notion cannot.

  • @erikwitkowski
    @erikwitkowski 11 หลายเดือนก่อน

    Can this be done using python instead of JS?

  • @YoannDiguet
    @YoannDiguet ปีที่แล้ว

    I really liked your video ! Amazing stuff here... but I do have a few questions. I wanted to do quite the same this but with Jira, to compute points for a sprint and stuff. The thing is that in Jira, tasks, stories and stuff move all the time, and what I wanted to have was a button in Notion that triggers a sync of a Notion database from a http call to Jira... But it does not seem possible to me as it seems that we have to re-run the index.js script from a console to do that. Do you have any idea about this please ?

  • @Gohans1107
    @Gohans1107 ปีที่แล้ว

    you're god! thanks for sharing

  • @aroyalpane
    @aroyalpane ปีที่แล้ว

    Could you make a tutorial for linking Google books API to Notion? Coding scares me but I wanna try it 😅

  • @peetung
    @peetung ปีที่แล้ว

    Can someone explain to me as if I were 5 years old: how is this Javascript stuff with Notion API different/better/worse than using Zapier?

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว +1

      Honestly, if you don't already know of an advantage and you're not inherently curious about learning to code, just use Zapier (or Pipedream, or Make, or n8n...). Coding becomes useful when you have a specific reason to do it.
      That said:
      There are several reasons, one of which is cost. If you want multi-step Zaps, you have to pay something like $20/mo. If you know a bit of code, you can either build your own full apps, or you can use a platform like Pipedream that will act like Zapier - but for free, and with a lot more flexibility since it lets you use code windows.
      The other big reason is flexibility. No-code tools are awesome, but they have limitations.
      For example, in my most recent project I needed a way to take user input, match it against a list of Projects from Notion, and determine the closest match.
      Since I was coding, I was able to use the Fuse.js fuzzy-search library to do it. This made my workflow extremely typo-resistant, and even lets if work if the user can't quite remember the exact name of the project.
      In Zapier, I don't think I'd be able to do this.

    • @peetung
      @peetung ปีที่แล้ว

      @@ThomasFrankExplains Wow, was not expecting a reply so soon from the man himself. Appreciate the detailed response! 🙏

  • @tsukusuyomi
    @tsukusuyomi ปีที่แล้ว

    awesome

  • @motiversityark
    @motiversityark ปีที่แล้ว

    How to increment row ID in notion’s?

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว

      Using the API, you could query the database, map through all the rows to get the highest number in your Row ID property, then create a new row where the Row ID is the next number.
      Here's a tutorial on getting the highest number from a property: thomasfrank.notion.site/Get-Highest-Number-Value-from-a-Database-ae387fa0e1c54288bb0dc81021da870c
      You may also find this one helpful if you need to query a db with more than 100 rows:
      thomasfrank.notion.site/Query-a-database-with-more-than-100-rows-Pagination-1de2e1a4314c462990967ee23da865ed

  • @Farinata2
    @Farinata2 ปีที่แล้ว

    Before I watch this 2 hours tutorial, does it include free API features or all paid?

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว

      Everything in this video can be done entirely for free, and Notion doesn’t charge for any API features 🙂

  • @ilichpadilla
    @ilichpadilla ปีที่แล้ว

    Amazing video. Could you do one public that contains Auth ?

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว

      Eventually! I still need to learn how to implement that myself securely.

  • @efenege2
    @efenege2 ปีที่แล้ว

    I miss his videos from his main YT channel

  • @wailrimouche1171
    @wailrimouche1171 ปีที่แล้ว

    ChatGPT can write a decent customizable python API for Notion easily

  • @JoseDotSantiago
    @JoseDotSantiago ปีที่แล้ว

    Fuck youre the best!

  • @dariustrainer4451
    @dariustrainer4451 ปีที่แล้ว

    Why does my glitch not show and "index.no-comments.js"?

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว

      Did you copy my project? If you started a new one, it won't come with that file. I made that myself.

    • @dariustrainer4451
      @dariustrainer4451 ปีที่แล้ว

      Gotcha! I ended up being able to work past it, and realized it was you showing us what you’d created. However I am now stuck bc I’ve realized the notion developer page API reference has changed again, and the code you referenced can’t be found. I may try to see if it all works if I just follow the video through to the end.

    • @dariustrainer4451
      @dariustrainer4451 ปีที่แล้ว

      Would you be willing to make other videos or have tutorials to keep practicing with notion APIs and other applications?

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว

      My newest video takes the Notion API a step further! Check this out as well: thomasfrank.notion.site/Notion-API-Examples-d6d1dd6d5f6841e08c216056c872d4a8

  • @gileslloyd3813
    @gileslloyd3813 ปีที่แล้ว

    I'm stuck getting this back from the Glitch terminal:$ node Index.js
    Fetching ivysaur from PokeAPI.
    Sending data to Notion
    @notionhq/client warn: request fail {
    code: 'validation_error',
    message: 'body failed validation: body.parent.page_id should be defined, instead was `undefined`.'
    I've never coded before and tried looking at the notion API document and getting a bit lost with it all any help?

    • @ThomasFrankExplains
      @ThomasFrankExplains  ปีที่แล้ว

      Seems like the parent page id in your request isn’t defined. If you go to the written version of this tutorial, you’ll find the answer at Line 104 in my no-comments code toggle!

    • @gileslloyd3813
      @gileslloyd3813 ปีที่แล้ว

      @@ThomasFrankExplains Thank you Thomas that has done the trick! never coded before but thanks to you I'm giving it ago. Thanks for the content.