SEC EDGAR API Python Tutorial - Get SEC Filing And Financial Data

Поділитися
Вставка
  • Опубліковано 16 вер 2024

КОМЕНТАРІ • 130

  • @XwitterEye
    @XwitterEye 8 місяців тому +10

    bro this saved me so much time. was about to start writing this from scratch parsing excel files and wanted to die

    • @damgetbags
      @damgetbags  7 місяців тому

      hell yeah, that's how we do it around here.

  • @miguelcastillo1742
    @miguelcastillo1742 Рік тому +1

    I came from another video looking for ways to fix the "403" error.
    Thank you!
    Your channel is a gold mine.

    • @damgetbags
      @damgetbags  Рік тому

      What's up Miguel - it's hard to say without seeing your code.
      You can find all the code from the video on my github. This way you can follow along.
      github.com/AdamGetbags/secAPI/blob/main/secFilingScraper.py
      DM me on IG, Twitter or send me an email (you can find my email on the about section on my YT channel) if you need to book a technical consultation.

    • @miguelcastillo1742
      @miguelcastillo1742 Рік тому +1

      @@damgetbags I fixed it.
      I was following another video but I didn't realize the video was made for the old SEC structure.
      I followed yours and everything worked perfectly. Now I'm just trying to figure out how to pull only the relevant data.
      Thanks for the great video.

  • @petterstensland3888
    @petterstensland3888 6 місяців тому +2

    Nicely done! Love this video. Keep up the great work.

  • @alvaromejia9002
    @alvaromejia9002 7 місяців тому +1

    Thank you Adam for this information, super helpful.

  • @cedomirgligoric1247
    @cedomirgligoric1247 Рік тому +1

    Yo Adam great video. I don't often comment on videos but I just had to complement this, it's really good. The only thing I wish you did was maybe move through a bit slower, you were kinda rushing everything. But that's not really the most important thing I can decrease the speed when I need to.
    Other than that great video. Straight to the point. Very good audio quality. Charismatic dude leading through the subject matter in consistent, linear fashion. Keep it up!

    • @damgetbags
      @damgetbags  Рік тому +1

      sup cedomir, thank you for the feedback.
      video speed is one of those things i kinda have to bite the bullet on. most people have tiny attention spans, so I try to keep the videos moving to keep them engaging (as engaging as technical finace videos can be).
      can't lie, it would be pretty funny to show an unedited video - there are usually random errors and angry flying curse words.

    • @ashutoshchoudhari
      @ashutoshchoudhari 3 місяці тому

      @@damgetbags Please do show your unedited video. There are some things that don't work out perfectly that you might have edited out of this video. But similar or the exact problems might be faced by the person following your video. And if you find the solution in that video for that problem, other people will also do so by following your instructions in the longer video.
      Anyways thanks for this video. It is a great starting point for what I have cooking in my head.

  • @user-ek8ho1ob5m
    @user-ek8ho1ob5m Місяць тому

    Thank you Adam for this information, its very super helpful)

  • @genestone4951
    @genestone4951 Місяць тому

    Thanks for this. Subscribed!

  • @ekaterinavolkova4348
    @ekaterinavolkova4348 4 місяці тому

    Hey buddy! I love your videos! Thanks a bunch!

  • @GagePatterson-r2b
    @GagePatterson-r2b 9 місяців тому +1

    Much respect, I appreciate you homie🤘🏻

    • @damgetbags
      @damgetbags  7 місяців тому

      100% fam, good to have you around!

  • @heavenbound78
    @heavenbound78 Рік тому +1

    great video, you are a smart dude

    • @damgetbags
      @damgetbags  11 місяців тому

      thanks fam, more vids on the way

  • @BlitzOfTheReich
    @BlitzOfTheReich 8 місяців тому +1

    This is similar to how I do it, but I often use the ticker symbol with frames.

    • @damgetbags
      @damgetbags  7 місяців тому +1

      I see what you mean, definitely want to keep as much info as you can.

  • @foslight4272
    @foslight4272 Рік тому +1

    yeah boy. well done. keep udpate new videos!

  • @zenon1903
    @zenon1903 Рік тому +1

    Damn, you really know your stuff!

    • @damgetbags
      @damgetbags  Рік тому

      Zenon - glad you are enjoying the content. Thank you for joining us!

  • @glebp7020
    @glebp7020 5 місяців тому

    Great video man. Thank you

  • @좋은사람-h7c
    @좋은사람-h7c 8 місяців тому +2

    I'm facing challenges in processing financial data from multiple companies at once, as each company uses its own unique tag for the same financial items. For instance, NVIDIA (NVDA) refers to its sales as 'Revenues', while Apple (AAPL) uses 'RevenueFromContractWithCustomerTextBlock'. This variation in the naming of financial tags across different companies makes it challenging to aggregate their financial data effectively.
    Is there a way to gather and use revenue data from various companies, considering that each company might refer to revenue using different terms? Can we retrieve this specific financial information (like revenue) from multiple companies in a unified manner?

    • @damgetbags
      @damgetbags  7 місяців тому

      this is a common feedback i hear about this video -
      you might be able to access more uniform financial statements here
      www.sec.gov/dera/data/financial-statement-data-sets
      there's also a github repo for accessing the data in the above link.
      but you might want to verify the author / repo safety
      github.com/HansjoergW/sec-fincancial-statement-data-set

  • @cdahdude51
    @cdahdude51 3 місяці тому

    Thank you for the tutorial

  • @quasimodo1914
    @quasimodo1914 Рік тому

    This tutorial has me cheesing like it's picture day

    • @damgetbags
      @damgetbags  Рік тому

      Hell ya, we getting this cheddar.

  • @MegaChanTV
    @MegaChanTV Рік тому +3

    Awesome video! Great content and easy to follow along especially for a python newbie like myself. I was wondering how you were able to format the console to return the data in the format the way it did? I'm current using vs code and it doesn't look that way.

    • @damgetbags
      @damgetbags  Рік тому

      I was using spyder, from anaconda navigator to write this code.
      One of my first videos, enjoy.
      ua-cam.com/video/Nns9Zb8m0m8/v-deo.html

  • @KiviliG
    @KiviliG Рік тому +3

    Can you do a video specifically for Form 4?

    • @damgetbags
      @damgetbags  Рік тому +1

      Hey Kivilig, might look into that.
      I think that could be pretty valuable for an app build!!

  • @bcollege2355
    @bcollege2355 4 місяці тому

    How do I search for specific word or phrase within filing documents for filing types 6-K and 8-K?
    Many thanks for your kind support

  • @DepthWish
    @DepthWish Рік тому +3

    How's it going Adam. Are you doing any algo trading? It would be interesting to discuss strategies and using python/apis to do it. Great videos btw!

    • @damgetbags
      @damgetbags  Рік тому +3

      Thanks Depth Wish, glad you are part of the finance family.
      For now, I focus on data processing, technical skills, and quantitative methods that will help people get better jobs and automate their businesses.
      The type of content you mention may or may not be "Phase Two" for this channel. Stay tuned.

  • @nyorkel
    @nyorkel 8 місяців тому +1

    thanks for the video! how do you keep track of split stocks? when I look at old data everything is non-realigned

    • @damgetbags
      @damgetbags  7 місяців тому

      it depends, but a lot of time series data providers will have stock split data.
      i'd say it really depends on the time series you are looking at.

  • @lLvupKitchen
    @lLvupKitchen Місяць тому

    Great video Adam! Can you tell me what's the right panel that executes code block by block?

    • @joshnijjar978
      @joshnijjar978 24 дні тому

      Hey, it looks like he has an output terminal fully opened on the right and he’s block executing code by using the a command that executes the highlighted code. Some people have different shortcut keys for it so it’s best to look into what your code editor uses

    • @lLvupKitchen
      @lLvupKitchen 24 дні тому

      @@joshnijjar978 Thanks for the answer. I used to not know what Jupyter notebook was.

  • @ronnyzhao724
    @ronnyzhao724 7 місяців тому

    This is awesome!

  • @user-ti3uq3hn2r
    @user-ti3uq3hn2r 9 місяців тому +1

    Awesome! Could you help download the bulk of Accounting and Auditing Enforcement releases AAER from the SEC.

    • @damgetbags
      @damgetbags  7 місяців тому +1

      you can download just about anything with code.
      send me an email if you need a custom script, thanks!

  • @jeremyross7641
    @jeremyross7641 Рік тому

    Really cool. Thank you

    • @damgetbags
      @damgetbags  Рік тому

      Hey Jeremy, glad you like the content and thx for subscribing!

  • @ShaneZarechian
    @ShaneZarechian 3 місяці тому

    very helpful

  • @baskarp102
    @baskarp102 9 місяців тому +1

    very nice , do you have any idea on ml project way of auto tagging previous filing data to current filing period .

    • @damgetbags
      @damgetbags  9 місяців тому

      impressive, very nice.
      sup baskarp, your question is not entirely clear.
      what do you mean?

  • @wkhan4
    @wkhan4 7 місяців тому +1

    Thanks Adam. Data filtration question: Using the Edgar API, what filter do I use in order to get the quarterly earnings date? I'm getting a lot of dates that are not quarterly earnings date related (e.g., Director changes, etc.).

    • @damgetbags
      @damgetbags  7 місяців тому +1

      glad to help.
      without getting into too much detail, i would probably filter by form to get the 10Q forms.
      If you have the accession number for the 10Q forms, you should be able to find the dates related to that form/accession number

    • @wkhan4
      @wkhan4 7 місяців тому

      @@damgetbags Thanks, Adam. I did set the form to be "10-Q", but that only lists 3 quarters per year. The "10-K" lists the 4th one (I assume annual is the same as the 4th quarter), but its date is different than the actual earnings announcement date.

  • @jervinfaderanga7434
    @jervinfaderanga7434 Рік тому +1

    hi adam, this is a nice video. i'm just wondering if there is a way to pull latest filling without cik? just latest fillings by whichever company.

    • @damgetbags
      @damgetbags  Рік тому +1

      Hey Jervin,
      On the API docs there is a section on the left side nav bar that takes you to latest filings.
      Here's the link.
      www.sec.gov/cgi-bin/browse-edgar?action=getcurrent
      You could scrape this data, or use polling to check ALL the CIKs for new filings. However, there may be a better way to get what you're looking for.

  • @bcollege2355
    @bcollege2355 4 місяці тому

    Thank you for your effort. I have a question, please. I always receive information with a delay of about a minute. For example, the 8-K file appeared on the sec.gov page at 2024-05-10 21:58:14, but it only showed up one minute later, whether I used Python or even when I refreshed the page every 3 seconds. What could be the problem, and how can I obtain real-time information?

    • @damgetbags
      @damgetbags  4 місяці тому +1

      of course bro,
      under the heading 'update schedule' they have some details.
      could be some delay, but depends how you're polling the API
      www.sec.gov/edgar/sec-api-documentation

  • @user-fm2xr6du9s
    @user-fm2xr6du9s 6 місяців тому

    Hi Adam, Amazing work. I wonder whether we can get the narrative parts of the 10-K such as Item 1, Item 1A ... using this API?

    • @damgetbags
      @damgetbags  4 місяці тому

      that would be pretty tight for NLP / LLM apps
      it looks like this topic is pretty popular, might have to follow up

  • @charlottephillips4638
    @charlottephillips4638 26 днів тому

    Hi Adam. Just wondering if there is a way to get more specific info than just the tag? Eg instead of just us-gaap: RevenueFromContractWithCustomerExcludingAssessedTax, could we get the Member or Axis too (to distinguish between revenues from different things)? Thank you!

  • @klaudiakokoszka951
    @klaudiakokoszka951 9 місяців тому +1

    Maybe you addressed this in the video and I missed it, but I am trying to pull one "fact" for all companies and keep failing. Ex. Pulling 'Revenues' data for all companies into a single table for querying. Any idea on how to accomplish this?

    • @damgetbags
      @damgetbags  9 місяців тому

      around 7:00 i go into detail about how some fact/keys do not return too much data and how keys can be deprecated.
      using the method from this video, the first thing i would check is to see if the ~naming~ of fact/keys vary from company to company.
      for example, sales, revenue, revenues.
      i would take a careful look at each company's keys to determine how you can standardize your data ingestion.
      i should be making a video updating this information soon, stay tuned.

  • @RajeshJain007
    @RajeshJain007 Рік тому +1

    Hey Adam, nice video. Is there a video or a snippet you can add on how to access the 10-K/10-Q

    • @damgetbags
      @damgetbags  Рік тому

      Hi Rajesh,
      I would probably sort the data you got by "Form" and "Accession Number". So, you can look at just the data from a specific form.

    • @hasanallahyarov8115
      @hasanallahyarov8115 Рік тому +1

      @@damgetbags I did it, but it gave me reports of 10-q only from 2013 for Apple, the code is same till the point I filtered allForms where form=10-q. Can I ask why?

  • @jerrygatts3467
    @jerrygatts3467 Рік тому +1

    The one problem I found with the SEC API is custom XBRL (non us-GAAP) line items are not found in the JSON files. If you want to reconstruct the financial statements you may also have to parse the XML. Working through the best way to do that now. Any ideas you have would be great.

    • @damgetbags
      @damgetbags  Рік тому +1

      Sup Jerry. Solid observation.
      This API is very nuanced, and there is a lot of detail in the documentation.
      I'm working on a SEC form 4 xml parser.
      When I make the video, you can take the general idea from there.
      However, form 4 doesn't change 'shape', but financial statements vary from issuer to issuer.
      You'll see what I mean once I publish the video.

  • @elizabui2499
    @elizabui2499 8 місяців тому +1

    I am trying to extract historical 5 years of revenue data for APPL from 10-K forms, do you have a tutorial for parsing 10-K forms? In the company-concept and company-fact dictionary, I can only see 2018 numbers, not sure why.

    • @damgetbags
      @damgetbags  7 місяців тому

      hey eliza,
      check out my response to the comment from user-lt1mc3zr6f
      hopefully thats helpful

  • @ishaangupta2830
    @ishaangupta2830 3 місяці тому

    This was very helpful, great work
    I also wanted to pull data for RSU's and PSU's granted but am unable to do it.
    Is there a way to pull it using SEC Edgar API

  • @ComanderLoris
    @ComanderLoris Рік тому +1

    Would it also be possible to have real-time data for approvals of ETF fillings ?

    • @damgetbags
      @damgetbags  Рік тому

      Hey ComanderLoris,
      If the SEC API has a form for it, you will be able to see it here.

  • @Myhands14
    @Myhands14 5 місяців тому +1

    Is there a way to get 13F filings using this API, too?

    • @damgetbags
      @damgetbags  4 місяці тому

      i dont think so
      according to the link below,
      Currently included in the APIs are the submissions history by filer and the XBRL data from financial statements (forms 10-Q, 10-K,8-K, 20-F, 40-F, 6-K, and their variants).
      www.sec.gov/edgar/sec-api-documentation

  • @Matt-sp7lf
    @Matt-sp7lf Рік тому +1

    Is there a way to get the data more efficiently? Meaning, say you have 300 companies you want to track Insider Trading for (Form 4), it looks like each time you have to pull all filings for each company (4, 8-K, 10K/Q etc) first, then filter specifically for Form 4 and probably at the end for the last X days if you already have previously reported trades.

    • @damgetbags
      @damgetbags  Рік тому +1

      Hi Matt, Thanks for subscribing.
      I get what you mean, and yes that appears to be the brute force solution.
      The short answer is you can get the data more efficiently, but it might not be the MOST efficient way. Take the below idea -
      First, poll and scrape the results page from the below link, filter for is form 4 AND is company on your list. Then, you only request data for the companies that pass the filter. So that way you don't have to poll all 300 - just the ones that show up.
      www.sec.gov/edgar/searchedgar/currentevents

  • @dhruvjani5963
    @dhruvjani5963 Рік тому +1

    Hi Adam, love your content. It was really helpful. I just had a small question, I am pulling revenues data for a bunch of companies and even though they have reported revenues for a particular year, the api can't seem to find it. Can you please help me with this?

    • @damgetbags
      @damgetbags  Рік тому

      Hey Dhruv, you may find the line items from the actual 10K and 10Q reports can be different than the line items from the API.
      Reach out to me on IG, Twitter, or my email in the about section of my channel if you'd like to book a consultation!

  • @nattyzaddy6555
    @nattyzaddy6555 11 місяців тому

    Super helpful, what if you want it as it comes in live, do you just keep polling the API, if for example earnings is coming in at 4:00 pm EST you just keep hitting the api real time?

    • @damgetbags
      @damgetbags  11 місяців тому +1

      sup natty,
      without putting to much thought into infra, polling would probably be the way.
      however, there are some other services ($$$) that have RSS feeds/websockets. but it is entirely possibly they source the data through polling too.
      let me know how your build goes.
      AG

  • @ukaszOrpik-vi5qo
    @ukaszOrpik-vi5qo Рік тому

    Thank you : )

  • @sayhellotoroy
    @sayhellotoroy 4 місяці тому

    Is there any indication of statement positions like 'Assets' that it belong to Balance Sheet statement? They are stored there without any logic.

    • @damgetbags
      @damgetbags  4 місяці тому

      what do you mean? this video uses assets from the balance sheets.
      do you mean what sub categories are part of assets, liabilities, etc?

    • @sayhellotoroy
      @sayhellotoroy 4 місяці тому

      @@damgetbags Yes. I get positions from url (f'data.sec.gov/api/xbrl/companyfacts/CIK{cik}.json',) and which one is balance sheet, cashflow, P&L? Is there any indicator or I should map each company line-item manually to those 3 statements? Short example: AccountsPayableAndAccruedLiabilitiesCurrent 10-Q 2024 Q2 44 Mln 2024-05-09 CY2024Q1I
      AccountsReceivableGross 10-Q 2024 Q2 0 Mln 2024-05-09 CY2024Q1I
      AccountsReceivableNet 10-Q 2024 Q2 0 Mln 2024-05-09 CY2024Q1I
      AccountsReceivableNetCurrent 10-Q 2024 Q2 0 Mln 2024-05-09 CY2024Q1I
      AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment 10-Q 2024 Q2 223 Mln 2024-05-09 CY2024Q1I
      AccumulatedOtherComprehensiveIncomeLossNetOfTax 10-Q 2024 Q2 0 Mln 2024-05-09 CY2024Q1I
      AdditionalPaidInCapital 10-Q 2024 Q2 1,642 Mln 2024-05-09 CY2024Q1I
      AllowanceForDoubtfulAccountsReceivableCurrent 10-Q 2024 Q2 0 Mln 2024-05-09 CY2024Q1I
      Assets 10-Q 2024 Q2 1,537 Mln 2024-05-09 CY2024Q1I

  • @bexleymike
    @bexleymike Рік тому

    Nice!

    • @damgetbags
      @damgetbags  Рік тому +1

      Right?! This one takes a bit of navigating, but the data is pretty rich.

  • @161yashkatkade9
    @161yashkatkade9 4 місяці тому

    how to get vendors contract with company data

  • @OliverStewart-z3s
    @OliverStewart-z3s Місяць тому

    What do you do if the filing data is seriously insufficient. For example, PANW only has revenue facts up to 2017! Do you have another tutorial that can show us how to get data that is garuanteed to be complete (like all the stuff compnaies have to file).

  • @bramvanhemmen
    @bramvanhemmen Рік тому

    Wouw and I thought you could only get this by paling for a subscription

    • @damgetbags
      @damgetbags  Рік тому

      Hi Bram,
      Glad to help out.
      You can always buy me a coffee with the money you saved, HA.
      www.buymeacoffee.com/adamgetbags

  • @franciscopadron3489
    @franciscopadron3489 Рік тому

    Hey adam, is there way of automatize the code so I can input the company name or ticker in one part of the code INSTEAD of the key, In a way it prints all the following data based on that input

    • @damgetbags
      @damgetbags  Рік тому +1

      sup francisco, so around 1:56 where I show the CIK mappings, you can use the mappings to map CIK to ticker. so, the opposite is true.
      perhaps write a function that, given a ticker, returns a CIK. then, use the CIK to grab the data you need. you see?

  • @syedmubashirimam5990
    @syedmubashirimam5990 Рік тому

    On the last data frame "assets10Q", why your cik is not consistent? You only selected cik for Apple which is 320193! But initial rows contain 1193125!
    clarification will be appreciated!

    • @damgetbags
      @damgetbags  Рік тому

      sup syed. i see what you mean, the accession number on the earlier rows have a different prefix than the later accession numbers, which contain the CIK 320193.
      im not sure why this is the case.
      be aware that CIK and accession number are different.
      accession numbers are unique to the form submission, while CIK are more to do with identifying the company - rather than a identifying a form.

  • @timbui5556
    @timbui5556 Рік тому

    Thank you for making a wonderful instructional video, Adam. I think the SEC publishes a list of CIKs of companies reporting each day. Do you know how to get this list via Pythong? Thanks again!!!

    • @damgetbags
      @damgetbags  Рік тому +1

      I haven't looked very hard, but on the API docs there is a section on the left side nav bar that takes you to latest filings.
      Here's the link.
      www.sec.gov/cgi-bin/browse-edgar?action=getcurrent
      You could scrape this data, or use polling to check ALL the CIKs for new filings. However, there may be a better way to get what you're looking for.

    • @damgetbags
      @damgetbags  Рік тому

      Hi Tim - Also, see my reply to Matt's comment on this thread. It has what you're looking for.

  • @damgetbags
    @damgetbags  Рік тому +2

    Are you ready to get this bag, Y/N?
    THROW SOME "Y"s IN THE COMMENTS IF YOU GETTING THIS BAG.
    Subscribe to join our community and receive value on all things finance and technology!
    If you love the content, buy me a coffee!
    www.buymeacoffee.com/adamgetbags
    Keep up with me!
    instagram.com/damgetbags
    twitter.com/damgetbags

    • @justtohost3431
      @justtohost3431 Рік тому

      ADAM, dude!
      This tutorial is INCREDIBLE! I cannot tell you how much I am thankful for the one-time chance to having found it! I subscribed, liked the vid and would be so much looking forward for more of your know-how to be shared with the community! The coffee was the least we could spend to say thank you!

    • @damgetbags
      @damgetbags  Рік тому +1

      @@justtohost3431 Great to hear from you, and thank you so much for the coffee. v delicious.
      Grateful for the support - more content coming your way!

  • @SusmitaMelodies
    @SusmitaMelodies 6 місяців тому

    Hi can you help me scrap financial sec data from website gm

    • @damgetbags
      @damgetbags  4 місяці тому

      gm, of course thats why i made the video.

  • @humidorro
    @humidorro Рік тому

    How do you calculate COGS using this API for Mastercard?

    • @damgetbags
      @damgetbags  Рік тому

      Hi Dr. Unea,
      Parse through all the CIK ticker data to find Mastercard stock ticker, then take the CIK number from that entry, and pull that data down.
      DM me on Twitter, IG, or send me an email (you can find my email on the about section of my YT channel) to book a technical consultation.
      -AG

    • @humidorro
      @humidorro Рік тому

      @@damgetbags COGS for Mastercard takes into account what you will find in the SEC under the "Personnel" key. For the year 2022, for example, the value is 5,263.
      You will not find this parameter in the key list.
      I asked the question specifically to emphasize that not all parameters are available to automatically import financial data. What we see on certain sites (such as yahoo finance or other guys you say make a lot of money by exploiting this data) are data collected both from the SEC API but also through the particular interpretation of the reports in html or pdf format. Most use AI to gather this data.
      The conclusion would be that SEC API is not enough to create a financial situation.

    • @damgetbags
      @damgetbags  Рік тому

      @@humidorro good observation!

  • @ShaneZarechian
    @ShaneZarechian 3 місяці тому

    There's no good libraries for this, I've modified your script to have functions and stuff and am considering uploading it to pypi

  • @forheuristiclifeksh7836
    @forheuristiclifeksh7836 4 місяці тому

    2:09

  • @laherikeval2524
    @laherikeval2524 11 місяців тому

    Hey Adam, i have seen your video on SEC Edgar and i want help from you on that i want to fetch security shareholders and security stockholders from form S-1 and 1-A i am a new developer and this my first client so i am on the edge to lost my first work could you please help me.

    • @damgetbags
      @damgetbags  11 місяців тому

      i’ll send you a DM on twitter later.

  • @forheuristiclifeksh7836
    @forheuristiclifeksh7836 6 місяців тому

    1:35

  • @connormurphy6947
    @connormurphy6947 Рік тому

    Im getting this error
    "line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
    JSONDecodeError: Expecting value"
    when we go through how to review the JSON data
    I added sec_response = requests.get(filingMetadata, headers=headers), and it looks like there is a 403 (forbidden access) error
    is anyone else getting this? I'm guessing its an error with the header, this is mine
    headers = {'Actual Name': "Actual Email"}
    is anyone else getting this? I am able to pull the CIK data without any problem, does that mean it's not an issue with the header?

    • @damgetbags
      @damgetbags  Рік тому

      Hi Connor, not sure if you got this resolved, but you can get the exact code from the video from my Github link near the top of the description!

    • @connormurphy6947
      @connormurphy6947 Рік тому

      @@damgetbags thanks, i was getting the error using the code from your github, still trying to figure this one out

    • @damgetbags
      @damgetbags  Рік тому

      Hey Connor,
      Projects can be frustrating, I do technical tutoring if needed.
      You can send me an email w/ details (you can find email in the about section on my channel) or a DM on twitter or instagram!

    • @connormurphy6947
      @connormurphy6947 Рік тому

      @@damgetbags figured it out, i didnt realize "User Agent" wasnt supposed to be my name...

  • @user-kd4yb1xx2u
    @user-kd4yb1xx2u Рік тому +1

    Hi Adam, thank you for sharing the information. I noticed that there is an issue with the data. It appears that there is missing data, particularly when it comes to Apple's quarterly revenue. The available data only goes up to 2018Q3. I used the code of pd.DataFrame.from_dict((companyFacts.json()['facts']['us-gaap']['Revenues']['units']['USD']))

    • @damgetbags
      @damgetbags  Рік тому

      Thanks for watching - I know what you mean.
      I believe if the issuer changes the name of the line item on their financials, then the data will have a different key name in the dictionary.
      I'm not sure if this is the case for Apple; but for example, if the name goes from revenue to sales, then I think that revenue key will not have new values, but sales key will have the new values. You feel?