Making Requests
Learn how to construct and send HTTP requests to the Pullbay API. This guide covers request formatting, headers, parameters, response structure, and practical examples in multiple languages.
Base URL
All Pullbay API requests use this base URL:
https://api.pullbay.comAppend the service path and endpoint to this base URL.
Request Format
GET /{service}/{endpoint}?{parameters}Example:
GET /appstore/reviews?appId=389801252&country=us&page=1All current Pullbay endpoints are GET requests. Parameters are passed in the query string.
Required Headers
Authorization
Yes
Bearer token with your API key
Authorization: Bearer YOUR_API_KEY
User-Agent
Optional
Your application identifier
User-Agent: MyApp/1.0
Authorization header format
Replace YOUR_API_KEY with your actual API key from the Pullbay dashboard. Your API key is secret — never share it or commit it to version control.
Common Parameters
Parameters vary by endpoint; each endpoint's reference page lists its own. The App Store reviews endpoint, for example, accepts:
appId
string
One of appId/bundleId
App Store app ID (numeric). Pattern ^\d{8,12}$.
bundleId
string
One of appId/bundleId
App bundle ID (e.g. com.burbn.instagram).
country
string
No
Two-letter storefront code (e.g. us, gb, jp).
sort
string
No
Sort order: recent or helpful.
page
integer
No
Page number (1–10). Mutually exclusive with maxItems.
maxItems
integer
No
One-shot bulk pull (1–500). Mutually exclusive with page.
Use page to fetch one page at a time, or maxItems for a single bulk call — not both.
Example:
Request Examples
Basic GET request
Paginated request (page)
Bulk pull (maxItems)
Response Structure
All successful responses follow this consistent JSON structure:
Response fields explained
Top level
requestId(string): Unique identifier for this request. Save it for debugging and support.status(integer): HTTP status code.message(string): Human-readable status message.success(boolean): Whether the request succeeded.
data (array)
Contains the actual results. Each object's structure depends on the endpoint.
An empty array
[]means no matching results (not an error).
pagination (object) — present on list/search endpoints
page(integer): Current page number.hasNextPage(boolean): Whether more pages are available.cursor/offset(string): Used only by cursor- or offset-paginated services (e.g. Google Maps);nullfor App Store.
pricing (object)
creditsCharged(number): Credits consumed by this request.
Error Response Format
When a request fails, the response keeps the same top-level envelope and adds an error object:
successisfalseon failure.status/messagedescribe the failure (e.g.402 Insufficient credits,404 Not found).error.codeis a machine-readable code for programmatic handling.Include
requestIdwhen contacting Pullbay support for faster debugging.
Complete Request/Response Example
Request
Response (200 OK)
Language-Specific Examples
Python
Node.js
PHP
Ruby
Frequently Asked Questions
Last updated