Skip to main content
GET
https://api.pricingsaas.com
/
functions
/
v1
/
api
/
pages
/
{slug}
Pricing Pages API
curl --request GET \
  --url https://api.pricingsaas.com/functions/v1/api/pages/{slug} \
  --header 'Authorization: Bearer <token>'
{
  "company_slug": "anthropic.com",
  "page_slug": "api",
  "company_name": "Anthropic",
  "pricing_page_url": "https://anthropic.com/api/pricing"
}

Get Pricing Page by Slug

Retrieve pricing page information using a composite slug in the format company.page.
slug
string
required
Composite slug in the format company.page (e.g., “anthropic.api”, “stripe.pricing”)The slug combines:
  • Company slug (e.g., “anthropic.com” becomes “anthropic”)
  • Page subslug (e.g., “api”, “pricing”)
For pages with an empty subslug, use just the company slug (e.g., “stripe”)

Request

cURL
curl -X GET "https://api.pricingsaas.com/functions/v1/api/pages/anthropic.api" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

company_slug
string
The company’s slug identifier
page_slug
string
The page’s subslug identifier (can be empty string)
company_name
string
The company’s display name
pricing_page_url
string
Full URL to the pricing page
{
  "company_slug": "anthropic.com",
  "page_slug": "api",
  "company_name": "Anthropic",
  "pricing_page_url": "https://anthropic.com/api/pricing"
}

Slug Format Examples

The composite slug format allows you to reference specific pricing pages:
Composite SlugCompanyPageDescription
anthropic.apianthropic.comapiAnthropic’s API pricing page
stripe.pricingstripe.compricingStripe’s main pricing page
openai.apiopenai.comapiOpenAI’s API pricing page
slackslack.com(empty)Slack’s default pricing page
When a page has an empty subslug, the composite slug is just the company slug without the domain extension.

Use Cases

Direct Page Lookup

Access a specific pricing page directly without listing all company pages:
curl "https://api.pricingsaas.com/functions/v1/api/pages/anthropic.api" \
  -H "Authorization: Bearer YOUR_API_KEY"

Compare Multiple Pages

Fetch multiple pricing pages for comparison:
# Get Anthropic's API pricing
curl "https://api.pricingsaas.com/functions/v1/api/pages/anthropic.api" \
  -H "Authorization: Bearer YOUR_API_KEY"

# Get OpenAI's API pricing
curl "https://api.pricingsaas.com/functions/v1/api/pages/openai.api" \
  -H "Authorization: Bearer YOUR_API_KEY"

Integration with Company Data

First get a company’s pages, then fetch specific page details:
# Step 1: Get company with all pages
curl "https://api.pricingsaas.com/functions/v1/api/companies/anthropic.com" \
  -H "Authorization: Bearer YOUR_API_KEY"

# Step 2: Get specific page details
curl "https://api.pricingsaas.com/functions/v1/api/pages/anthropic.api" \
  -H "Authorization: Bearer YOUR_API_KEY"

Code Examples

const API_KEY = process.env.PRICINGSAAS_API_KEY;

async function getPricingPage(slug) {
  const url = `https://api.pricingsaas.com/functions/v1/api/pages/${slug}`;

  const response = await fetch(url, {
    headers: {
      'Authorization': `Bearer ${API_KEY}`
    }
  });

  if (!response.ok) {
    throw new Error(`HTTP ${response.status}: ${response.statusText}`);
  }

  return response.json();
}

// Usage
const page = await getPricingPage('anthropic.api');
console.log(page.pricing_page_url);

Rate Limiting

This endpoint costs 1 credit per request. See Rate Limits for more information.