Getting Started
Welcome to RoxyAPI! Whether you're just starting or a seasoned developer, this guide will walk you through everything you need to know to interact with our APIs, from setting up to making API calls.
How to Use RoxyAPI
RoxyAPI offers two ways to authenticate your API calls:
Option 1: Using API Token as Query Parameter
You can pass your API token as a query parameter in the URL of your request.
https://roxyapi.com/api/v1/data/news?page=1&token={your_api_token}
Option 2: Using API Token in the x-api-key Header
You can also pass your token in the request header for better security.
x-api-key: {your_api_token}
Code Samples
Below are examples of how you can make requests to our API's in different programming languages.
const axios = require('axios');
const API_TOKEN = 'your_api_token';
axios.get('https://roxyapi.com/api/v1/data/news?token=' + API_TOKEN)
.then(response => console.log(response.data))
.catch(error => console.error(error));
Advanced Usage
If you require more complex configurations, custom setups, or higher API limits, don't hesitate to contact us.
Available Endpoints
- News API: Provides real-time news data.
- Astrology API: Fetches up-to-date financial information.
Ensure Your Subscription is Active
Make sure your subscription is active to avoid request failures. If you run out of tokens, you can easily upgrade your plan at RoxyAPI.
For more detailed information on each API and its usage, refer to the specific API documentation on the dashboard.