Presidents of United States API

Presidents of United States API

Presidents of United States API is a web service that provides a wealth of information on past and present U.S. Presidents.

API description

About the API:  

This API is designed to provide developers and data analysts with a reliable and up-to-date source of information on each of the 46 U.S. Presidents, from George Washington to Joe Biden. The API provides a series of data fields for each President, such as their name, term of office, political party, and a brief biography. The API also includes additional information such as the Vice President during his term, members of his cabinet, major accomplishments, and notable events that occurred during his term.

Presidents of United States API is an essential tool for researchers, historians, and educators who need access to accurate and detailed information about U.S. Presidents. It allows users to programmatically access information about U.S. Presidents, making it easy to integrate presidential data into their applications, websites, or research projects.

One of the main advantages of this API is its flexibility. The API is designed to integrate easily into a wide range of programming languages, such as Python, Java, Ruby, and many others. This makes it easy for developers to use the API in a variety of contexts, from web applications to data analytics projects.

Another advantage of the API is its reliability. The information provided by the API is regularly updated to ensure its accuracy and timeliness. This means that users can rely on the API to provide them with the latest information on the Presidents of the United States.

In addition to the basic information about each President, the API also includes a number of additional data fields. For example, the API includes data on birth and death dates.

Overall, Presidents of United States API is an essential tool for anyone who needs access to accurate and detailed information about U.S. Presidents. Its flexibility, reliability, and variety of data fields make it an excellent resource for developers, researchers, and educators alike.

 

What this API receives and what your API provides (input/output)?

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Historical Research: Researchers can use the API to gather information about past U.S. Presidents and their administrations for academic and historical research purposes.

  2. Educational resources: Educators can use the API to create educational resources and materials related to U.S. presidents and their administrations.

  3. Political analysis - political analysts can use the API to collect data on U.S. presidents and their administrations to analyze and predict future political trends.

  4. Data journalism: Journalists can use the API to collect data on U.S. presidents to create news and feature stories based on recent administrations.

  5. Presidential trivia games: developers can use the API to create fun trivia games related to U.S. Presidents.

Are there any limitations to your plans?

Besides the number of API calls, there is no other limitation.

API Documentation

Endpoints


To use this endpoint all you have to do is run it and you will get information about all the presidents that ruled the United States.



                                                                            
GET https://zylalabs.com/api/1830/presidents+of+united+states+api/1489/get+historical+presidents
                                                                            
                                                                        

Get Historical presidents - Endpoint Features
Object Description
president_name [Optional]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"id":1,"president_name":"George Washington","vice_president_name":"John Adams","political_party":"Unaffiliated","president_birth_year":1732,"president_death_year":1799,"presidential_count":1,"pres_len_start":"April 30, 1789","pres_len_end":"March 4, 1797"},{"id":2,"president_name":"John Adams","vice_president_name":"Thomas Jefferson","political_party":"Federalist","president_birth_year":1735,"president_death_year":1826,"presidential_count":2,"pres_len_start":"March 4, 1797","pres_len_end":"March 4, 1801"},{"id":3,"president_name":"Thomas Jefferson","vice_president_name":"Aaron Burr, George Clinton","political_party":"Democratic-Republican","president_birth_year":1743,"president_death_year":1826,"presidential_count":3,"pres_len_start":"March 4, 1801","pres_len_end":"March 4, 1809"},{"id":4,"president_name":"James Madison","vice_president_name":"George Clinton, Position vacant after 1812, Elbridge Gerry, Position vacant after 1814","political_party":"Democratic-Republican","president_birth_year":1751,"president_death_year":1836,"presidential_count":4,"pres_len_start":"March 4, 1809","pres_len_end":"March 4, 1817"},{"id":5,"president_name":"James Monroe","vice_president_name":"Daniel D. Tompkins","political_party":"Democratic-Republican","president_birth_year":1758,"president_death_year":1831,"presidential_count":5,"pres_len_start":"March 4, 1817","pres_len_end":"March 4, 1825"},{"id":6,"president_name":"John Quincy Adams","vice_president_name":"John C. Calhoun","political_party":"Democratic-Republican, National Republican","president_birth_year":1767,"president_death_year":1848,"presidential_count":6,"pres_len_start":"March 4, 1825","pres_len_end":"March 4, 1829"},{"id":7,"president_name":"Andrew Jackson","vice_president_name":"John C. Calhoun, Position vacant after 1832, Martin Van Buren","political_party":"Democrat","president_birth_year":1767,"president_death_year":1845,"presidential_count":7,"pres_len_start":"March 4, 1829","pres_len_end":"March 4, 1837"},{"id":8,"president_name":"Martin Van Buren","vice_president_name":"Richard Mentor Johnson","political_party":"Democratic","president_birth_year":1782,"president_death_year":1862,"presidential_count":8,"pres_len_start":"March 4, 1837","pres_len_end":"March 4, 1841"},{"id":9,"president_name":"William Henry Harrison","vice_president_name":"John Tyler","political_party":"Whig","president_birth_year":1773,"president_death_year":1841,"presidential_count":9,"pres_len_start":"March 4, 1841","pres_len_end":"April 4, 1841"},{"id":10,"president_name":"John Tyler","vice_president_name":"Office vacant throughout entire presidency","political_party":"Whig, Unaffiliated","president_birth_year":1790,"president_death_year":1862,"presidential_count":10,"pres_len_start":"April 4, 1841","pres_len_end":"March 4, 1845"},{"id":11,"president_name":"James K. Polk","vice_president_name":"George M. Dallas","political_party":"Democratic","president_birth_year":1795,"president_death_year":1849,"presidential_count":11,"pres_len_start":"March 4, 1845","pres_len_end":"March 4, 1849"},{"id":12,"president_name":"Zachary Taylor","vice_president_name":"Millard Fillmore","political_party":"Whig","president_birth_year":1784,"president_death_year":1850,"presidential_count":12,"pres_len_start":"March 4, 1849","pres_len_end":"July 9, 1850 "},{"id":13,"president_name":"Millard Fillmore","vice_president_name":"Office vacant throughout entire presidency","political_party":"Whig","president_birth_year":1800,"president_death_year":1874,"presidential_count":13,"pres_len_start":"July 9, 1850","pres_len_end":"March 4, 1853"},{"id":14,"president_name":"Franklin Pierce","vice_president_name":"William R. King, Office vacant after 1853","political_party":"Democratic","president_birth_year":1804,"president_death_year":1869,"presidential_count":14,"pres_len_start":"March 4, 1853","pres_len_end":"March 4, 1857 "},{"id":15,"president_name":"James Buchanan","vice_president_name":"John C. Breckinridge","political_party":"Democratic","president_birth_year":1791,"president_death_year":1868,"presidential_count":15,"pres_len_start":"March 4, 1857","pres_len_end":"March 4, 1861"},{"id":16,"president_name":"Abraham Lincoln","vice_president_name":"Hannibal Hamlin, Andrew Johnson","political_party":"Republican, National Union","president_birth_year":1809,"president_death_year":1865,"presidential_count":17,"pres_len_start":"March 4, 1861","pres_len_end":"April 15, 1865"},{"id":17,"president_name":"Andrew Johnson","vice_president_name":"Position vacant throughout entire presidency","political_party":"National Union, Democratic","president_birth_year":1808,"president_death_year":1875,"presidential_count":19,"pres_len_start":"April 15, 1865","pres_len_end":"March 4, 1869"},{"id":18,"president_name":"Ulysses S. Grant","vice_president_name":"Schuyler Colfax, Henry Wilson, Position vacant after 1875","political_party":"Republican","president_birth_year":1822,"president_death_year":1885,"presidential_count":18,"pres_len_start":"March 4, 1869","pres_len_end":"March 4, 1877 "},{"id":19,"president_name":"Rutherford B. Hayes","vice_president_name":"William A. Wheeler","political_party":"Republican","president_birth_year":1822,"president_death_year":1893,"presidential_count":19,"pres_len_start":"March 4, 1877","pres_len_end":"March 4, 1881 "},{"id":20,"president_name":"James A. Garfield","vice_president_name":"Chester A. Arthur","political_party":"Republican","president_birth_year":1831,"president_death_year":1881,"presidential_count":20,"pres_len_start":"March 4, 1881","pres_len_end":"September 19, 1881"},{"id":21,"president_name":"Chester A. Arthur","vice_president_name":"Position vacant through out all presidency","political_party":"Republican","president_birth_year":1829,"president_death_year":1886,"presidential_count":21,"pres_len_start":"September 19, 1881","pres_len_end":"March 4, 1885 "},{"id":22,"president_name":"Grover Cleveland","vice_president_name":"Thomas A. Hendricks, Vacant after 1885","political_party":"Democratic","president_birth_year":1837,"president_death_year":1908,"presidential_count":22,"pres_len_start":"March 4, 1885","pres_len_end":"March 4, 1889"},{"id":23,"president_name":"Benjamin Harrison","vice_president_name":"Levi P. Morton","political_party":"Republican","president_birth_year":1833,"president_death_year":1901,"presidential_count":23,"pres_len_start":"March 4, 1889","pres_len_end":"March 4, 1893"},{"id":24,"president_name":"Grover Cleveland","vice_president_name":"Adlai Stevenson I","political_party":"Democratic","president_birth_year":1837,"president_death_year":1908,"presidential_count":24,"pres_len_start":"March 4, 1893","pres_len_end":"March 4, 1897"},{"id":25,"president_name":"William McKinley","vice_president_name":"Garret Hobart, Vacant after 1899, Theodore Roosevelt","political_party":"Republican","president_birth_year":1843,"president_death_year":1901,"presidential_count":25,"pres_len_start":"March 4, 1897","pres_len_end":"September 14, 1901"},{"id":26,"president_name":"Theodore Roosevelt","vice_president_name":"Position vacant through 1905, Charles W. Fairbanks","political_party":"Republican","president_birth_year":1858,"president_death_year":1919,"presidential_count":26,"pres_len_start":"September 14, 1901","pres_len_end":"March 4, 1909 "},{"id":27,"president_name":"William Howard Taft","vice_president_name":"James S. Sherman, Vacated after 1912","political_party":"Republican","president_birth_year":1857,"president_death_year":1930,"presidential_count":27,"pres_len_start":"March 4, 1909","pres_len_end":"March 4, 1913"},{"id":28,"president_name":"Woodrow Wilson","vice_president_name":"Thomas R. Marshall","political_party":"Democratic","president_birth_year":1856,"president_death_year":1924,"presidential_count":28,"pres_len_start":"March 4, 1913","pres_len_end":"March 4, 1921 "},{"id":29,"president_name":"Warren G. Harding","vice_president_name":"Calvin Coolidge","political_party":"Republican","president_birth_year":1865,"president_death_year":1923,"presidential_count":29,"pres_len_start":"March 4, 1921","pres_len_end":"August 2, 1923"},{"id":30,"president_name":"Calvin Coolidge","vice_president_name":"Position vacant until 1925, Charles G. Dawes","political_party":"Republican","president_birth_year":1872,"president_death_year":1933,"presidential_count":30,"pres_len_start":"August 2, 1923","pres_len_end":"March 4, 1929"},{"id":31,"president_name":"Herbert Hoover","vice_president_name":"Charles Curtis","political_party":"Republican","president_birth_year":1874,"president_death_year":1964,"presidential_count":31,"pres_len_start":"March 4, 1929","pres_len_end":"March 4, 1933"},{"id":32,"president_name":"Franklin D. Roosevelt","vice_president_name":"John Nance Garner, Henry A. Wallace, Harry S. Truman","political_party":"Democratic","president_birth_year":1882,"president_death_year":1945,"presidential_count":32,"pres_len_start":"March 4, 1933","pres_len_end":"April 12, 1945"},{"id":33,"president_name":"Harry S. Truman","vice_president_name":"Position vacant until 1949, Alben W. Barkley","political_party":"Democratic","president_birth_year":1884,"president_death_year":1972,"presidential_count":33,"pres_len_start":"April 12, 1945","pres_len_end":"January 20, 1953"},{"id":34,"president_name":"Dwight D. Eisenhower","vice_president_name":"Richard Nixon","political_party":"Republican","president_birth_year":1890,"president_death_year":1969,"presidential_count":34,"pres_len_start":"January 20, 1953","pres_len_end":"January 20, 1961"},{"id":35,"president_name":"John F. Kennedy","vice_president_name":"Lyndon B. Johnson","political_party":"Democratic","president_birth_year":1917,"president_death_year":1963,"presidential_count":35,"pres_len_start":"January 20, 1961","pres_len_end":"November 22, 1963"},{"id":36,"president_name":"Lyndon B. Johnson","vice_president_name":"Position vacant until 1965, Hubert Humphrey","political_party":"Democratic","president_birth_year":1908,"president_death_year":1973,"presid...
                                                                                                                                                                                                                    
                                                                                                    

Get Historical presidents - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1830/presidents+of+united+states+api/1489/get+historical+presidents' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Presidents of United States API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

๐Ÿš€ Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • โœ”๏ธŽ Only Pay for Successful Requests
  • โœ”๏ธŽ Free 7-Day Trial
  • โœ”๏ธŽ Multi-Language Support
  • โœ”๏ธŽ One API Key, All APIs.
  • โœ”๏ธŽ Intuitive Dashboard
  • โœ”๏ธŽ Comprehensive Error Handling
  • โœ”๏ธŽ Developer-Friendly Docs
  • โœ”๏ธŽ Postman Integration
  • โœ”๏ธŽ Secure HTTPS Connections
  • โœ”๏ธŽ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the worldโ€™s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected โ€” plus overage fees applied when a developer exceeds a planโ€™s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
1,364ms

Category:


Tags:


Related APIs