Skip to content

Instantly share code, notes, and snippets.

@nickkraakman
Created November 12, 2014 11:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickkraakman/e0bc5be2502007bc7f56 to your computer and use it in GitHub Desktop.
Save nickkraakman/e0bc5be2502007bc7f56 to your computer and use it in GitHub Desktop.
Get XML response of SEC EDGAR filing URLs using the iEDGAR API
<?php
function getURLs($ticker){
$content = file_get_content("https://www.valuespreadsheet.com/iedgar/results.php?stock=".$ticker."&output=xml");
$xml = simplexml_load_string($content);
echo "<pre>"; print_r($xml); echo "</pre>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment