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.
It will receive parameters and provide you with a JSON.
Historical Research: Researchers can use the API to gather information about past U.S. Presidents and their administrations for academic and historical research purposes.
Educational resources: Educators can use the API to create educational resources and materials related to U.S. presidents and their administrations.
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.
Data journalism: Journalists can use the API to collect data on U.S. presidents to create news and feature stories based on recent administrations.
Presidential trivia games: developers can use the API to create fun trivia games related to U.S. Presidents.
Besides the number of API calls, there is no other limitation.
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 Historical presidents - Endpoint Features
Object | Description |
---|---|
president_name |
[Optional] |
[{"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...
curl --location --request GET 'https://zylalabs.com/api/1830/presidents+of+united+states+api/1489/get+historical+presidents' --header 'Authorization: Bearer YOUR_API_KEY'
Header | Description |
---|---|
Authorization
|
[Required] Should be Bearer access_key . See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
This endpoint returns a JSON array containing detailed information about all U.S. Presidents, including their names, terms of office, political parties, vice presidents, birth and death years, and significant dates related to their presidencies.
Key fields in the response include "president_name," "vice_president_name," "political_party," "presidential_count," "pres_len_start," and "pres_len_end," providing comprehensive details about each President's tenure.
The response data is structured as a JSON array of objects, where each object represents a President and contains key-value pairs for various attributes, making it easy to parse and utilize in applications.
The endpoint provides information on each President's name, political party, vice president, birth and death years, and the start and end dates of their terms, offering a comprehensive overview of U.S. presidential history.
Users can customize their requests by specifying parameters such as filtering by political party or term dates, allowing for tailored data retrieval based on specific interests or research needs.
The data is compiled from reputable historical records and government sources, ensuring that the information about U.S. Presidents is accurate and reliable for research and educational purposes.
Data accuracy is maintained through regular updates and validation against authoritative historical records, ensuring that users receive the most current and correct information about U.S. Presidents.
Typical use cases include academic research, educational content creation, political analysis, data journalism, and developing trivia games, making the API versatile for various applications.
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, refer to the βX-Zyla-API-Calls-Monthly-Remainingβ field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.
To see the maximum number of API requests your plan allows, check the βX-Zyla-RateLimit-Limitβ response header. For instance, if your plan includes 1,000 requests per month, this header will display 1,000.
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 3,600, it means 3,600 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 give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.
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 free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.
Service Level:
100%
Response Time:
2,490ms
Service Level:
100%
Response Time:
3,536ms
Service Level:
100%
Response Time:
317ms
Service Level:
100%
Response Time:
218ms
Service Level:
100%
Response Time:
143ms
Service Level:
100%
Response Time:
243ms
Service Level:
75%
Response Time:
1,745ms
Service Level:
100%
Response Time:
1,987ms
Service Level:
100%
Response Time:
950ms
Service Level:
100%
Response Time:
3,047ms
Service Level:
100%
Response Time:
515ms
Service Level:
100%
Response Time:
1,173ms
Service Level:
100%
Response Time:
520ms
Service Level:
100%
Response Time:
299ms
Service Level:
100%
Response Time:
704ms
Service Level:
100%
Response Time:
482ms
Service Level:
100%
Response Time:
166ms
Service Level:
100%
Response Time:
851ms
Service Level:
100%
Response Time:
728ms
Service Level:
100%
Response Time:
377ms