Global 🌍
https://anyparserapi.com
- Default endpoint
- USA optimized
- Global load balancing
Let’s get you set up with Anyparser! 🔑 This guide walks you through getting your API credentials and setting up authentication securely in your application.
First things first - you’ll need an API key to start using Anyparser. Head over to Anyparser Studio to create your account and generate your key.
You have two ways to configure authentication. Let’s look at both:
The easiest way to use your API key is through environment variables. This method is:
export ANYPARSER_API_URL=https://anyparserapi.comexport ANYPARSER_API_KEY=your-api-key
set ANYPARSER_API_URL=https://anyparserapi.comset ANYPARSER_API_KEY=your-api-key
You can also provide your API key in code. However:
from anyparser_core import Anyparser, AnyparserOption
options = AnyparserOption( api_url="https://anyparserapi.com", api_key="your-api-key")parser = Anyparser(options)
import { Anyparser, AnyparserOption } from '@anyparser/core';
const options = { apiUrl: 'https://anyparserapi.com', apiKey: 'your-api-key'};const parser = new Anyparser(options);
Choose the API endpoint closest to your application for optimal performance:
Global 🌍
https://anyparserapi.com
Europe 🇪🇺
https://eu.anyparserapi.com
Now that you’re authenticated: