NativePort Scrapfly API
The scrapfly API from NativePort — 1 operation(s) for scrapfly.
The scrapfly API from NativePort — 1 operation(s) for scrapfly.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nativeport-ai:nativeport-ai-scrapfly-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Reference Scrapfly API
version: 1.0.0
servers:
- url: https://api.nativeport.ai
description: NativePort production
- url: http://localhost:8787
description: Local development (wrangler dev)
tags:
- name: scrapfly
paths:
/scrapfly:
get:
operationId: scrapfly_scrape
summary: Scrape a page with Scrapfly
description: 'Relays to `https://api.scrapfly.io/scrape`, putting the secret `key` first in the query
string, then removing `Authorization`. Controls sit in the query string. Because Scrapfly
replays your method on the target, the gateway also accepts and forwards `PUT`, `PATCH`,
and `HEAD`.'
tags:
- scrapfly
parameters:
- name: url
in: query
description: URL of the page to scrape.
required: true
schema:
type: string
format: uri
- name: render_js
in: query
description: Have JavaScript rendered before the page comes back (Scrapfly control).
required: false
schema:
type: boolean
responses:
'200':
description: 'The upstream''s answer, relayed as-is. Typically the scraped page as HTML, raw bytes, or
JSON under a structured/parsed mode. The upstream defines the exact shape.
'
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
'401':
description: 'The bearer token was missing, unknown, or revoked. The reply body is the JSON `{ "error": "Unauthorized." }`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No route matched the path, or the matched route disallows that method (an unlisted
`/serper/<endpoint>`, for instance). The body lists every mounted route, verbatim as the
gateway sends it. A path on one of the four model-inference routes also `404`s this way when
the specific endpoint or model isn''t on that provider''s allowlist; an unsupported model
addressed through `/inference` gets that endpoint''s own `400` instead (see the Inference tag).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearerAuth: []
post:
operationId: scrapfly_post
summary: Scrape a POST target with Scrapfly
description: 'Same as the `GET` scrape, with a `POST` delivered to the target. Controls stay in the query
string.'
tags:
- scrapfly
parameters:
- name: url
in: query
description: The URL being targeted.
required: true
schema:
type: string
format: uri
responses:
'200':
description: 'The upstream''s answer, relayed as-is. Typically the scraped page as HTML, raw bytes, or
JSON under a structured/parsed mode. The upstream defines the exact shape.
'
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
'401':
description: 'The bearer token was missing, unknown, or revoked. The reply body is the JSON `{ "error": "Unauthorized." }`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No route matched the path, or the matched route disallows that method (an unlisted
`/serper/<endpoint>`, for instance). The body lists every mounted route, verbatim as the
gateway sends it. A path on one of the four model-inference routes also `404`s this way when
the specific endpoint or model isn''t on that provider''s allowlist; an unsupported model
addressed through `/inference` gets that endpoint''s own `400` instead (see the Inference tag).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
security:
- bearerAuth: []
put:
operationId: scrapfly_put
summary: PUT through to the target
description: 'Same as the `GET` scrape, with a `PUT` delivered to the target — Scrapfly replays your
request method against the site it''s scraping. Controls stay in the query string.'
tags:
- scrapfly
parameters:
- name: url
in: query
description: The URL being targeted.
required: true
schema:
type: string
format: uri
responses:
'200':
description: 'The upstream''s answer, relayed as-is. Typically the scraped page as HTML, raw bytes, or
JSON under a structured/parsed mode. The upstream defines the exact shape.
'
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
'401':
description: 'The bearer token was missing, unknown, or revoked. The reply body is the JSON `{ "error": "Unauthorized." }`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No route matched the path, or the matched route disallows that method (an unlisted
`/serper/<endpoint>`, for instance). The body lists every mounted route, verbatim as the
gateway sends it. A path on one of the four model-inference routes also `404`s this way when
the specific endpoint or model isn''t on that provider''s allowlist; an unsupported model
addressed through `/inference` gets that endpoint''s own `400` instead (see the Inference tag).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
security:
- bearerAuth: []
patch:
operationId: scrapfly_patch
summary: PATCH through to the target
description: 'Same as the `GET` scrape, with a `PATCH` delivered to the target — Scrapfly replays your
request method against the site it''s scraping. Controls stay in the query string.'
tags:
- scrapfly
parameters:
- name: url
in: query
description: The URL being targeted.
required: true
schema:
type: string
format: uri
responses:
'200':
description: 'The upstream''s answer, relayed as-is. Typically the scraped page as HTML, raw bytes, or
JSON under a structured/parsed mode. The upstream defines the exact shape.
'
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
'401':
description: 'The bearer token was missing, unknown, or revoked. The reply body is the JSON `{ "error": "Unauthorized." }`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No route matched the path, or the matched route disallows that method (an unlisted
`/serper/<endpoint>`, for instance). The body lists every mounted route, verbatim as the
gateway sends it. A path on one of the four model-inference routes also `404`s this way when
the specific endpoint or model isn''t on that provider''s allowlist; an unsupported model
addressed through `/inference` gets that endpoint''s own `400` instead (see the Inference tag).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
security:
- bearerAuth: []
head:
operationId: scrapfly_head
summary: HEAD through to the target
description: 'Same as the `GET` scrape, with a `HEAD` delivered to the target — Scrapfly replays your
request method against the site it''s scraping. Controls stay in the query string; as with
any `HEAD` response, the body is empty and only the status and headers carry information.'
tags:
- scrapfly
parameters:
- name: url
in: query
description: URL of the page to scrape.
required: true
schema:
type: string
format: uri
- name: render_js
in: query
description: Have JavaScript rendered before the page comes back (Scrapfly control).
required: false
schema:
type: boolean
responses:
'200':
description: 'Scrapfly''s own response headers and status for the target, relayed byte-for-byte with an
empty body, as `HEAD` requires.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Scrapfly_head_Response_200'
'401':
description: 'The bearer token was missing, unknown, or revoked. The reply body is the JSON `{ "error": "Unauthorized." }`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No route matched the path, or the matched route disallows that method (an unlisted
`/serper/<endpoint>`, for instance). The body lists every mounted route, verbatim as the
gateway sends it. A path on one of the four model-inference routes also `404`s this way when
the specific endpoint or model isn''t on that provider''s allowlist; an unsupported model
addressed through `/inference` gets that endpoint''s own `400` instead (see the Inference tag).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearerAuth: []
components:
schemas:
Scrapfly_head_Response_200:
type: object
properties: {}
description: Empty response body
title: Scrapfly_head_Response_200
Error:
type: object
properties:
error:
type: string
description: Explanatory message meant for humans.
required:
- error
title: Error
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Your per-client bearer token — the API key the gateway issued to you. Present it in
`Authorization: Bearer <token>` form. A token that is missing, unknown, or revoked draws a
`401`. Before the call is sent upstream the token is removed (stripped, or swapped for the
upstream''s own credential); it never makes it past the gateway.
'