Papa John's API endpoint
Use Crawlora's Papa John's Deals API to extract supported public Papa John's data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/papajohns/dealsReturns the promotions a Papa John's US or Canada restaurant is currently running. Each offer carries its redemption code, title, description, offer price and — where the deal advertises a saving — the struck-through regular price, plus its artwork and deal-builder link. Pass a store_id from GET /papajohns/store or GET /papajohns/nearby: promotions are store-specific, and the national response is largely placeholders prompting the customer to choose a store, which are omitted here rather than returned as real offers. Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and agent-native workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| store_id | string | No | Restaurant id from GET /papajohns/store or GET /papajohns/nearby. Omit for national promotions. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/papajohns/deals" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
This endpoint is executed through Crawlora's managed scraping infrastructure.
- **Pass a `store_id`.** Promotions are store-specific. The national response is largely locked placeholders prompting the customer to choose a store; those carry no id or offer code and are omitted here rather than returned as real offers. `national_default` reports which mode you got. - `offer_code` is the code the deal is redeemed with, and `url` is its deal-builder link. - `regular_price` is the struck-through pre-offer price and is present only when the deal actually advertises a saving — a deal that does not is not given a fake one. - A deal whose price depends on what the customer builds reports `price` `0`. - An invalid `store_id` returns a `400`. Example response: ```json {"code":200,"msg":"OK","data":{"store_id":5054,"national_default":false,"deals":[{"id":"66262","offer_code":"EDNJX","title":"Ultimate Pepperoni Pizza","description":"A large original crust pizza loaded with pepperoni, a parmesan-romano blend, and pizza sauce.","price":12.99,"regular_price":23.49,"tag":"Featured Deal","image_url":"https://www.papajohns.com/static-assets/a/images/web/hero/2026/p9-2026-ultpepp-deal.jpg","url":"https://www.papajohns.com/order/dealbuilder?dealId=66262&offerCode=EDNJX"}],"count":16,"source_url":"https://www.papajohns.com/api/trpc/deals.getByStore?input={\"json\":{\"storeId\":5054}}","fetched_at":"2026-09-06T09:00:00Z"}} ```
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved |
When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
{
"code": 200,
"msg": "OK",
"data": {
"store_id": 5054,
"national_default": false,
"deals": [
{
"id": "66262",
"offer_code": "EDNJX",
"title": "Ultimate Pepperoni Pizza",
"description": "A large original crust pizza loaded with pepperoni, a parmesan-romano blend, and pizza sauce.",
"price": 12.99,
"regular_price": 23.49,
"tag": "Featured Deal",
"image_url": "https://www.papajohns.com/static-assets/a/images/web/hero/2026/p9-2026-ultpepp-deal.jpg",
"url": "https://www.papajohns.com/order/dealbuilder?dealId=66262&offerCode=EDNJX"
}
],
"count": 16,
"source_url": "https://www.papajohns.com/api/trpc/deals.getByStore?input={\"json\":{\"storeId\":5054}}",
"fetched_at": "2026-09-06T09:00:00Z"
}
}Request schema
No body schema
Response schema
#/definitions/papajohns.dealsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | papajohns.DealsResponse | No | ||||
| data.count | integer | No | 16 | |||
| data.deals | array | No | ||||
| data.deals[].description | string | No | ||||
| data.deals[].id | string | No | 66262 | |||
| data.deals[].image_url | string | No | ||||
| data.deals[].offer_code | string | No | EDNJX | OfferCode is the code the offer is redeemed with. | ||
| data.deals[].price | number | No | 12.99 | Price is the offer price where the deal advertises one. A deal whose price depends on what the customer builds reports 0. | ||
| data.deals[].regular_price | number | No | 23.49 | RegularPrice is the struck-through pre-offer price, present only when the deal actually advertises a saving. | ||
| data.deals[].tag | string | No | Featured Deal | Tag is the merchandising label, e.g. "Featured Deal". | ||
| data.deals[].title | string | No | Ultimate Pepperoni Pizza | |||
| data.deals[].url | string | No | URL is the deal-builder link for this offer. | |||
| data.fetched_at | string | No | ||||
| data.national_default | boolean | No | false | NationalDefault is true when no store was selected. National promotions are frequently placeholders prompting the customer to pick a store, so a caller should prefer passing a store_id. | ||
| data.source_url | string | No | ||||
| data.store_id | integer | No | 5054 | |||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/papajohns/deals" \
-H "x-api-key: $CRAWLORA_API_KEY"Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.
Read Crawlora terms