This RESTful API allows data to be retrieved remotely in either a jSON or XML format. The API includes methods for retrieving info about tracks, sound effects, etc.
Music Tacks API
This API is accessed via the edd-api end point, like so:
https://www.hooksounds.com/edd-api/
Paging Parameters
By default, the API will return 10 results per page for tracks queries.
If a query has 20 results, the first ten will be displayed by default, but then the second 10 can be accessed by adding &page=2 to the query string, like so:
Example: https://www.hooksounds.com/edd-api/products/?key=c281cf0a95be875d9eeb284fb004c938&token=5f9432f3ffa5945755ebc66179810d70&page=2
You can change the number of results returned by using the number parameter. This example will return 25 results per page:
Example: https://www.hooksounds.com/edd-api/products/?key=KEY&token=TOKEN&number=25
Search
If you want to make a text search, you can use the ‘s’ parameter:
https://www.hooksounds.com/edd-api/products/?key=KEY&token=TOKEN&s=your text search
Music Track details
If you want to retrieve info for only a specific product, you can pass a product ID via the product parameter:
Example: http://www.hooksounds.com/edd-api/products/?key=KEY&token=TOKEN&product=7500
NOTE: The ID of a particular track could be taken from the track’s unique URL. Thus, the track https://www.hooksounds.com/royalty-free-music/positive-rock/7500/ has the ID 7500.
Here is an example of a typical response which includes the music track metadata:
Sound Effects API
For accessing our sound effects API, you will need an API key and Token. Once you have it, you’ll be able to access like so:
https://www.hooksounds.com/edd-api/sfx/?key=KEY&token=TOKEN
Example: https://www.hooksounds.com/edd-api/sfx/?key=1cf0a95be875d9eeb20&token=a95be875d9eeb284fb
Paging Parameters
By default, the API will return 10 sound effects per page.
If the query has more than 10 results, the first 10 will be displayed by default, but then the second 10 can be accessed by adding the parameter &page=2 to the query string, like so:
https://www.hooksounds.com/edd-api/sfx/?key=KEY&token=TOKEN&page=2
The page size can also be modified by using the number parameter.
https://www.hooksounds.com/edd-api/sfx/?key=KEY&token=TOKEN&page=2&number=20
Search
If you want to make a text search, you can use the ‘s’ parameter:
https://www.hooksounds.com/edd-api/sfx/?key=KEY&token=TOKEN&s=your text search
Category Filters
If you want to filter by category, you’ll be able to do it by adding the category parameter to the query string. You’ll need the category ID for that.
Example: The category ‘logging’ has the ID 41989
https://www.hooksounds.com/edd-api/sfx/?key=KEY&token=TOKEN&category=41989
The parameter pages works the same way when filtering categories.
Example: https://www.hooksounds.com/edd-api/sfx/?key=KEY&token=TOKEN&page=2&category=41989
Instead of the category ID, the slug can be used:
Example: https://www.hooksounds.com/edd-api/sfx/?key=KEY&token=TOKEN&category=logging
You can also provide a comma separated list of categories:
Example: https://www.hooksounds.com/edd-api/sfx/?key=KEY&token=TOKEN&category=41989,42061,42054
Here is an example of a typical response which includes the sound effect metadata:
List categories
If you want to retrieve a list of sound effect categories, you can use the following endpoint:
https://www.hooksounds.com/edd-api/sfx-categories/?key=KEY&token=TOKEN