Token-Based Web Scraping Protection for Restaurant APIs

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for preventing content extraction from websites, such as restaurant services, are inadequate, as they either require significant effort and expense for implementing APIs or fail to prevent malicious web scraping, allowing competitors to duplicate valuable content with ease.

Innovation Solution

A system that uses a token system, where a third-party server receives a token from the API server corresponding to its API key and restaurant ID, allowing controlled access to protected data, while randomizing the token to prevent unauthorized access and enabling integration with third-party websites with minimal programming.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If a traditional API system is implemented to allow third-party access, then integration with third-party websites is enabled, but the effort and expense for implementation becomes significant

Engineering Contradiction:
Improveintegration capabilityVSAvoidimplementation complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent implements single-use tokens that are generated for each ordering operation and then discarded. These tokens contain all necessary authentication information (API key, restaurant ID, order details) in a self-contained format that can be processed without maintaining complex session states or authentication handshakes, dramatically simplifying the integration process for third-party websites

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

Solution Approach 2:

The patent extracts the complex authentication and authorization logic from the third-party website integration process and consolidates it into the token generation and validation system controlled by the content-based website. This allows third-party sites to integrate simply by implementing token reception and validation, while the complex API key management and permission checking remain centralized

Inventive Principle:
Principle #2Taking out (Extraction)

2Adaptability or versatility

If API keys and database identifiers are shared with third parties for integration, then access to content is enabled, but malicious web crawlers can use these credentials to copy the entire database

Engineering Contradiction:
Improvethird-party accessVSAvoiddata extraction risk
Core Design Contradiction:
Adaptability or versatilityVSObject-affected harmful factors

Solution Approach 1:

The patent segments the authentication and authorization process into distinct components: API key verification, restaurant ID validation, and order-specific permission checking. Each component is handled separately in the token generation process, allowing fine-grained control over what each third-party application can access without exposing the entire database structure or credentials

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces tokens as an intermediary mechanism between the third-party applications and the protected database. Instead of allowing direct access using API keys and database identifiers, the system mediates all access requests through token-based authentication, where tokens are generated on-demand with specific permissions and validated by the API server, preventing unauthorized bulk data extraction

Inventive Principle:
Principle #24Intermediary (Mediator)

3Object-affected harmful factors

If visual identification or audio files are required to access protected content, then web scraping is prevented, but user experience is degraded

Engineering Contradiction:
Improvescraping resistanceVSAvoiduser experience
Core Design Contradiction:
Object-affected harmful factorsVSEase of operation

Solution Approach 1:

The patent replaces mechanical/visual barriers (such as captcha images or audio challenges) with an automated token-based authentication system. The token contains encrypted authentication data that can be verified programmatically without requiring human intervention or visual verification, maintaining security while preserving a smooth user experience for legitimate customers

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS10360543B2Scraping resistant system and method for placing orders through an internet shopping service
Publication Date: 2019.07.23 GRUBHUB HLDG
  • US10360543B2 patent drawing
  • US10360543B2 patent drawing
  • US10360543B2 patent drawing

AI summary

A third-party server exposes a first set of data from a content based website. Access to a second set of data requires that a token be assigned to a specific web browser and corresponding to a specific subset of protected data, the token containing no information that can be used to gain access to other protected data.