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.

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
  • Specialized Customer Support
  • Real-Time API Monitoring

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 like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). 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 paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

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.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
1,364ms

Category:


Related APIs