Integration reference
Docs
Everything needed to make a first call and to parse every response correctly: two headers, one keyword, and a data/meta envelope that says where each field came from.
Base URL and request shape
The public base URL is https://apishore.com/api, so a real call is POST https://apishore.com/api/v1/discover. Requests and responses are JSON, UTF-8. Every documented path below is relative to the base URL.
- Content type
Send
Content-Type: application/jsonon every POST. - Envelope
Success is always
{"data": …, "meta": …}.GET /healthzis the one documented exception. - Identifiers
Channel IDs are YouTube IDs in the
UC…family. Handles and channel URLs are rejected with422, not silently coerced.
Authentication
One header identifies your subscription and applies its plan limits.
| Header | Value | Purpose |
|---|---|---|
| Authorization | Bearer <your APIShore key> | Identifies the subscription and applies its plan limits. X-Api-Key is accepted as an alternative spelling of the same thing. |
The consequence, stated plainly: the credential APIShore issues is what identifies you, and your plan's limits are applied to it server-side on every request. Everything a data call needs beyond that - the additional request headers, the provider limits they are subject to, and how the spend is attributed - is set out in the integration guide delivered with your credentials, which also stays available inside your panel. Those details describe how the service is wired upstream, so they are given to paying customers rather than published on an open page.
If the credential arrangement is a problem for your deployment, open a support ticket before you buy rather than after. There is an alternative configuration for exactly that case, and it does not change the upstream provider's limits — those are not ours to sell.
Authorization: Bearer $APISHORE_KEY
# additional headers for data calls: see your integration guideDiscover
POST /v1/discover is the core of the product. You send a keyword; the service searches YouTube videos, groups the hits into unique channels, and returns normalised channel, upload and engagement data.
curl -X POST https://apishore.com/api/v1/discover \
-H "Authorization: Bearer $APISHORE_KEY" \
-H "Content-Type: application/json" \
-d @discover.json
# Each page is one YouTube search call and costs 100 quota
# units on your own credential, so pages is the parameter
# that decides what a single request costs you.{
"keyword": "home coffee roasting",
"pages": 2,
"min_matches": 2,
"limit_channels": 60,
"published_days": 365,
"order": "viewCount",
"region": "US",
"with_contacts": true,
"with_fit": true
}Body parameters
| Field | Type | Default | Meaning |
|---|---|---|---|
| keyword | string | required | The search term, 2–120 characters. |
| pages | integer 1–3 | 1 | Pages of 50 search results to walk. Each page is one search.list call, which the provider prices at 100 quota units from your credential's 10,000-per-day pool and separately caps at 100 searches a day; this service reports the two counts as search_units_spent and other_units_spent. Capped by plan. |
| min_matches | integer 1–20 | 1 | Keep only channels matched by at least this many results, which removes one-off appearances from the set. |
| limit_channels | integer 0–500 | 0 | Cap on channels returned. 0 asks for no cap and returns every channel that passed min_matches. Any other value caps the list, and one above your term's ceiling is reduced to it rather than rejected. The ceiling engages only when the value is non-zero. |
| published_days | integer 0–3650 | 0 | Only count uploads published within the last N days. 0 applies no date filter. |
| order | string | relevance | Search ordering: relevance, date, viewCount or title. |
| region | string | empty | Two-letter region code to bias results, e.g. US. |
| language | string ≤8 | en | Accepted and validated, but this build always searches with English relevance, so the value does not change the results. |
| with_contacts | boolean | true | Include each channel's published description fields in the response. See What the responses contain. |
| with_fit | boolean | false | Add a relevance score computed by this service for each channel; costs 2 units per channel. |
One call replaces the four round trips you would otherwise make by hand: search, then channel lookups for every ID that search surfaced, then the uploads playlist, then the per-video statistics. meta reports how many upstream calls this request actually made and how many were cache hits.
Response envelope
Every response is an object with data and meta. data holds the payload; meta holds the request identity, the answering service, the quota state of the credential you sent, and the provenance labels described below.
{
"data": {
"keyword": "home coffee roasting",
"channels": [
{
"channel_id": "UC…",
"title": "…",
"handle": "…",
"country": "US",
"subscriber_count": 84200,
"view_count": 6412900,
"video_count": 126,
"uploads_playlist": "UU…",
"channel_url": "https://www.youtube.com/channel/UC…",
"matched_videos": 7,
"recent_uploads": [
{ "video_id": "…", "title": "…", "published_at": "2026-10-04T17:00:00Z",
"view_count": 41200, "like_count": 2610, "comment_count": 612,
"duration_seconds": 742 }
]
}
],
"counts": {
"videos_searched": 100, "channels_unique": 38,
"channels_returned": 38, "dedupe_ratio": 2.63
}
},
"meta": {
"request_id": "b83f…",
"api_version": "1.0.0",
"service": { "provider": "APIShore", "base_url": "https://apishore.com/api",
"docs": "https://apishore.com/api/docs" },
"upstream": {
"provider": "YouTube Data API v3",
"calls_made_by_this_request": 4,
"cache_hits_this_request": 0,
"search_units_spent": 2,
"budget_today": { "remaining": 98, "resets": "midnight Pacific Time" }
},
"provenance": {
"youtube_api": "unmodified value returned by YouTube",
"derived_by_vendor": "our calculation from public API fields",
"by_path": {
"data.channels[0].subscriber_count": "youtube_api",
"data.channels[0].matched_videos": "derived_by_vendor",
"data.counts.dedupe_ratio": "derived_by_vendor"
}
},
"retention": { "statistics_max_age_days": 30,
"text_personal_max_age_days": 30 }
}
}dedupe_ratio is the videos collected divided by the unique channels in the result set — how many results each channel contributed on average, which is why it is never below 1. A value near 1 means the keyword is spread across many channels; 3 or more means the same few channels dominate the pages walked. channels_matched counts the unique channels found, channels_returned the ones that survived your filters and reached the response.
A null means YouTube does not expose that value for the channel in question. It is never filled with zero, and never with our estimate.
Provenance labels
meta.provenance.by_path maps dotted field paths to a label, so you can decide field by field whether a number came from YouTube or was computed here, and whether it is safe to publish under a YouTube-derived-metrics policy.
| Label | Meaning |
|---|---|
| youtube_api | Unmodified value returned by YouTube for that field. |
| derived_by_vendor | A calculation made by this service from public API fields, such as match counts and engagement ratios. |
| caller_supplied | Your own request parameter, echoed back so a stored response is self-describing. |
| platform_operational | Counters about this call: our ledger, cache and quota state. |
Statistics labelled derived_by_vendor are calculated by APIShore from public API fields; they are not YouTube Studio metrics. Metrics labelled youtube_api are unmodified values returned by YouTube.
Endpoint reference
Every method, path, parameter, response field, plan ceiling and error code lives on the API endpoint reference, which is generated against the same OpenAPI schema this page describes and is checked against it by the test suite. Kept separate, so the getting-started text below stays a page you can read once instead of a page you have to scroll past a table to reach.
What the responses contain
Channel-level data: title, handle, country, subscriber, view and video counts, the uploads playlist ID, the channel URL, and how many search results matched the channel. Upload-level data: title, publication time, views, likes, comment count and duration. Values are normalised to the shapes above and labelled with their provenance.
Regarding contact information, one sentence: responses include any email address or link that the channel itself publishes in its public channel description or in its video descriptions; there is no scraping behind logins, and recipients can request deletion through the API, which is honoured platform-wide.
Public descriptions are also the least reliable field in the response: they are written for humans, so format varies and absence is normal. Treat a missing value as absence, not as a failed lookup, and do not infer anything about a channel from an empty field.
Retention and caching
Responses are cached so two customers researching the same channel in the same week do
not spend the same upstream budget twice. Cached public text - titles, descriptions,
published links, names - is held for 30 days and cannot be held longer. Cached
statistics are held for 30 days by default; if the operator has accepted the
derived-metrics amendment, statistical fields may be kept up to about
36 months, because that is what makes a year-over-year comparison
possible at all. Which of those two states this deployment is in is reported by the
service itself at GET /v1/policy and in
meta.retention on every response. The policy that governs them, including
what happens to data you ask to be removed, is the
privacy and data policy.
Personal data and deletion
A channel owner can have their published details removed without an account and without
a key: POST /v1/personal-data/preview counts the stored copies of an
address, POST /v1/personal-data/delete removes them. Both are unmetered,
deletion is executed synchronously across every tenant's cached responses, and the
suppression survives a later re-fetch of the same public page. The full route, the
request shape and what is retained afterwards are in the
endpoint reference and the
privacy and data policy.
Plan limits and YouTube quota
Plan limits are enforced server-side on every request and are visible from the panel; GET /v1/usage reports what you have spent. The provider-side ceilings that apply to data calls are listed in your integration guide instead of here: they are the upstream's own numbers, they are not the same thing as a plan limit, and publishing them reads as a promise about someone else's allocation.
| Plan | Price | Requests/min | Search pages | Channels/call | History |
|---|---|---|---|---|---|
| Monthly | $100 | 30 | 1 | 100 | 30 days |
| Quarterly | $280 | 60 | 2 | 200 | 90 days |
| Half-yearly | $500 | 120 | 3 | 300 | 90 days |
| Annual | $850 | 240 | 3 | 500 | 90 days |
Every plan includes the same endpoints and the same fields; what a longer term buys is speed and depth per request. The upstream provider's own allocations are a separate matter and no plan changes them - the figures that apply to your account, and how to work within them, are set out in your integration guide.
Errors
A failure returns the same envelope as a success: error carries a stable
code and a human message, and meta carries
request_id, which you quote in support mail. A request rejected before it
reached any route is shaped differently, and both shapes are below.
| Status | Code | What it means |
|---|---|---|
| 401 | UNAUTHORISED | The APIShore key is missing, unknown, revoked or past its term. Check the Authorization header. |
| 401 | YOUTUBE_CREDENTIAL_REQUIRED | Your plan expects the YouTube Data API key to come with the request, and this call did not send it. |
| 403 | PLAN_REQUIRED | The feature is not in your term. Comment-text extraction, for example, is half-yearly and annual only. |
| 404 | CHANNEL_NOT_FOUND | No public channel record for that ID. A handle or a channel URL in this position is a 422, not a 404. |
| 403 | SUBSCRIPTION_EXPIRED | The term you paid for ended; the message names the date, and the key works again once the renewal is recorded. |
| 409 | UPLOADS_PLAYLIST_UNAVAILABLE | That channel has no public uploads series, so its video list and fit score cannot be read. The channel row itself still answers. |
| 422 | INVALID_UPLOADS_PLAYLIST | The playlist ID supplied is not the uploads playlist of that channel. |
| 422 | INVALID_EMAIL | The address in a deletion request is not a syntactically valid email address. |
| 429 | RATE_LIMITED | Your term's requests-per-minute exceeded. The Retry-After header says when to come back. |
| 429 | QUOTA_BUDGET_EXHAUSTED | The day's budget for this credential is spent: 100 search pages or 10,000 other calls, counted per Pacific quota day. Nothing was sent to YouTube. |
| 429 | UPSTREAM_QUOTA_EXCEEDED | YouTube refused the credential for quota. The credential is marked spent for the rest of the day so further calls fail fast instead of burning time. |
| 502 | UPSTREAM_ERROR | YouTube did not answer, or answered with an error this service could not act on. Nothing was cached from the attempt. |
{ "error": { "code": "QUOTA_BUDGET_EXHAUSTED",
"message": "this credential's quota day is spent (search 100/100, units 10000/10000)" },
"meta": { "request_id": "9c4e1f0a7b2d4e6f", "api_version": "1.0.0",
"service": { "provider": "APIShore.com" } } }HTTP 422, body as FastAPI reports it — no error key, no meta:
{ "detail": [ { "type": "less_than_equal", "loc": ["body", "pages"],
"msg": "Input should be less than or equal to 3",
"input": 9 } ] }The difference matters when you write the retry handler: the first shape is a decision
the service made about your account, and its meta.request_id is what support
can look up. The second means the request body was not readable as this endpoint's model,
and no quota was spent on it.
Terms and data handling covers what is stored, what is not, and acceptable use. Prices and the four plans are on the home page.