- Inspire Me API Documentation
Welcome to the documentation of the REST API for the Inspire Me quotes API.
This is a free open source API for retrieving quotes from our database.
The base url is inspire-me-api.redmountaindev.co.za/
- GET v1/quotes
- GET v1/professions
- GET v1/quotees
- GET v1/nationalities
- GET v1/categories
By default this endpoint returns pages of 25 quotes and their quotees.
The number of returned quotes and page can be set like this:
v1/quotes?limit=30&page=3
The maximum number of quotes that can be return in a single request is 200.
What should be included in the returned data. Seperated by commas.
Eg. v1/quotes?include=nationality,profession
nationality
: Includes quotee nationalityprofession
: Includes quotee professioncategory
: Includes quote category
Parameters to search records.
Eg. v1/quotes?quotee=bruce+lee
id
: Search by the ID of a quote;
must be an exact match to existing recordquote_content
: Search by the content of a quotekeywords
: Search by the keywords of a quotecategory_id
: Search by the ID of a category;
must be an exact match to existing recordcategory
: Search by the name of a category; \quotee_id
: Search by the ID of a quotee;
must be an exact match to existing recordquotee
: Search by the name of a quotee; \gender
: Search by the gender of a quotee; accepted values arem
orf
nationality_id
: Search by the ID of a nationality;
must be an exact match to existing recordnationality
: Search by the name of a nationality; \profession_id
: Search by the ID of a profession;
must be an exact match to existing recordprofession
: Search by the name of a profession; \
What fields you can sort by.
Eg. v1/quotes?sortby=nationality
It's possible to sort by multiple fields.
Eg. v1/quotes?sortby=quotee,nationality
The above route would sort records by quotee name then by nationality name.
quotee
: Sorts by quotee name in ascending orderquotee_asc
: Sorts by quotee name in ascending orderquotee_desc
: Sorts by quotee name in descending ordernationality
: Sorts by nationality name in ascending ordernationality_asc
: Sorts by nationality name in ascending ordernationality_desc
: Sorts by nationality name in descending orderprofession
: Sorts by profession name in ascending orderprofession_asc
: Sorts by profession name in ascending orderprofession_desc
: Sorts by profession name in descending ordercategory
: Sorts by category name in ascending ordercategory_asc
: Sorts by category name in ascending ordercategory_desc
: Sorts by category name in descending order
This endpoint returns a list of all quotee records.
What should be included in the returned data. Seperated by commas.
Eg. v1/quotees?include=quote_count
quote_count
: Includes the number of quotes a quotee has authored
Parameters to search records.
Eg. v1/quotee?name=bruce+lee
id
: Search by the ID of a quotee;
must be an exact match to existing recordname
: Search by quotee namegender
: Search by the gender of a quotee; accepted values arem
orf
nationality_id
: Search by the ID of a nationality;
must be an exact match to existing recordnationality
: Search by the name of a nationality; \profession_id
: Search by the ID of a profession;
must be an exact match to existing recordprofession
: Search by the name of a profession; \
What fields you can sort by.
Eg. v1/quotee?sortby=nationality
It's possible to sort by multiple fields.
Eg. v1/quotes?sortby=quotee,nationality
The above route would sort records by quotee name then by nationality name.
name
: Sorts by quotee name in ascending ordername_asc
: Sorts by quotee name in ascending ordername_desc
: Sorts by quotee name in descending ordernationality
: Sorts by nationality name in ascending ordernationality_asc
: Sorts by nationality name in ascending ordernationality_desc
: Sorts by nationality name in descending orderprofession
: Sorts by profession name in ascending orderprofession_asc
: Sorts by profession name in ascending orderprofession_desc
: Sorts by profession name in descending orderquote_count
: Sorts by quote count in ascending orderquote_count_asc
: Sorts by quote count in ascending orderquote_count_desc
: Sorts by quote count in descending order
This endpoint returns a list of all nationality records.
What should be included in the returned data. Seperated by commas.
Eg. v1/nationalities?include=quotee_count
quotee_count
: Includes the number of quotees part of a nationality
Parameters to search records.
Eg. v1/nationalities?name=bruce+lee
id
: Search by the ID of a nationality;
must be an exact match to existing recordname
: Search by nationality name
What fields you can sort by.
Eg. v1/nationalities?sortby=name
It's possible to sort by multiple fields.
Eg. v1/nationalities?sortby=name,quotee_count
The above route would sort records by nationality name then by quotee count.
name
: Sorts by nationality name in ascending ordername_asc
: Sorts by nationality name in ascending ordername_desc
: Sorts by nationality name in descending orderquotee_count
: Sorts by quotee count in ascending orderquotee_count_asc
: Sorts by quotee count in ascending orderquotee_count_desc
: Sorts by quotee count in descending order
This endpoint returns a list of all profession records.
What should be included in the returned data. Seperated by commas.
Eg. v1/professions?include=quotee_count
quotee_count
: Includes the number of quotees part of a profession
Parameters to search records.
Eg. v1/professions?name=bruce+lee
id
: Search by the ID of a profession;
must be an exact match to existing recordname
: Search by profession name
What fields you can sort by.
Eg. v1/professions?sortby=name
It's possible to sort by multiple fields.
Eg. v1/professions?sortby=name,quotee_count
The above route would sort records by profession name then by quotee count.
name
: Sorts by profession name in ascending ordername_asc
: Sorts by profession name in ascending ordername_desc
: Sorts by profession name in descending orderquotee_count
: Sorts by quotee count in ascending orderquotee_count_asc
: Sorts by quotee count in ascending orderquotee_count_desc
: Sorts by quotee count in descending order
This endpoint returns a list of all category records.
What should be included in the returned data. Seperated by commas.
Eg. v1/categories?include=quote_count
quote_count
: Includes the number of quotes part of a category
Parameters to search records.
Eg. v1/categories?name=bruce+lee
id
: Search by the ID of a category;
must be an exact match to existing recordname
: Search by category name
What fields you can sort by.
Eg. v1/categories?sortby=name
It's possible to sort by multiple fields.
Eg. v1/categories?sortby=name,quote_count
The above route would sort records by category name then by quote count.
name
: Sorts by category name in ascending ordername_asc
: Sorts by category name in ascending ordername_desc
: Sorts by category name in descending orderquote_count
: Sorts by quote count in ascending orderquote_count_asc
: Sorts by quote count in ascending orderquote_count_desc
: Sorts by quote count in descending order