Quickstart
This guide will help you get up and running with Roozna's Business Data API and our pre-built Searchbar component. We'll cover how to obtain your API key, make your first API request, and integrate the Searchbar into your React application.
Obtain your API key
Before you can start using Roozna's services, you'll need to obtain an API key.
You can find your API key in your Roozna dashboard under Settings » API Keys. If you haven't created an account yet, sign up here.
Making your first API request
Once you have your API key, you can start making requests to our API. Here's an example of how to search for businesses using cURL:
curl -G https://api.roozna.com/v1/search \
-H "x-api-key: YOUR_API_KEY" \
-d q="tech startups" \
-d limit=10
This request will search for businesses related to "tech startups" and return up to 10 results. You can adjust the q
parameter to search for different types of businesses, and modify the limit
to change the number of results returned.
Understanding the response
The API will return a JSON response containing an array of business objects and pagination information. Here's an example of what the response might look like:
{
"results": [
{
"id": "1234",
"name": "TechCorp Innovations",
"website": "https://techcorp.com",
"description": "Leading provider of innovative