Skip to main content

API Template

Overview

The [API Name] Scraping API allows you to extract [type of data] from [source] programmatically. This API provides real-time access to [specific data points], making it an essential tool for [target audience/use cases].

Authentication

Visit our Authentication Docs on learning how to get started on integrating this API in your application.

Endpoint

GET https://api.scrapehero.com/[endpoint-path]

Request Parameters

ParameterTypeRequiredDescription
param1stringYesDescription of param1
param2integerNoDescription of param2
param3booleanNoDescription of param3

Response Format

The API returns data in JSON format. Here's an example of the response structure:

{
"status": "success",
"data": [
{
"field1": "value1",
"field2": "value2",
"field3": {
"subfield1": "subvalue1",
"subfield2": "subvalue2"
}
}
],
"pagination": {
"next_page": "https://api.scrapehero.com/[endpoint-path]?page=2",
"total_pages": 10
}
}

Response Fields

FieldTypeDescription
field1stringDescription of field1
field2stringDescription of field2
field3objectContains subfields with additional data

Usage Example

Here's an example of how to use the API with Python:

function helloWorld() {
console.log('Hello, world!');
}

This API uses 1 data credit per API call. Learn more about data credits.

Rate Limits

Rate limits are based off the plan that you have subscribed to. To learn more about the plan specification vist our Plans page.

Response Codes

Check out the response codes here.

Pagination

The API uses cursor-based pagination. Use the next_page URL in the response to fetch the next page of results.

Best Practices

  1. Use appropriate error handling in your code.
  2. Implement exponential backoff for rate limiting.
  3. Cache results when possible to minimize API calls.

Support

If you encounter any issues or have questions, please contact our API support team at cloud-support@scrapehero.com or visit our API documentation at https://app.scrapehero.com/docs/api_intro.