<jupyter_start><jupyter_text>HHA 507 API Assignment<NAME><jupyter_code>import requests
import pandas as pd<jupyter_output><empty_output><jupyter_text>The API, I chose presents different dog breeds<jupyter_code>jsonresponse = requests.get('https://dog.ceo/api/breeds/list/all')<jupyter_output><empty_output><jupyter_text><jupyter_code>jsonresponse.status_code
jsonresponse.json()<jupyter_output><empty_output><jupyter_text>Next API displays single random pictures of dogs<jupyter_code>jsonresponsedogimage = requests.get('https://dog.ceo/api/breeds/image/random')
jsonresponsedogimage.status_code
jsonresponsedogimage.json()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11179173047473201, 'fraction_numerical': 0.004594180704441042, 'mean_word_length': 12.08, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '347698', 'license': 'Apache-2.0', 'n_tokens_mistral': 233, 'n_tokens_neox': 227, 'n_words': 28, 'path': 'HHA507_API_ET.ipynb', 'repo_name': 'EmadoddinTaherinia/HHA507_APIAssignment_ET', 'size': '666'}