Skip to content

HTTP Response Codes

The APITube News API uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error due to the information provided by the client, and codes in the 5xx range indicate an error on the server side.

HTTP Response CodeStatusDescription
200okEverything worked as expected.
400not_okAPI request is malformed or contains invalid parameters.
401not_okAPI key is invalid or missing.
402not_okYour account balance is negative.
403not_okAccess to additional pages is forbidden.
404not_okEntry not found.
422not_okUnprocessable failure.
429not_okThe emergence of this error code indicates surpassing the rate limit allocated for your plan. You must wait for the rate limit to reset before initiating additional requests.
500not_okThe appearance of this error code signifies an unforeseen server error. Typically, this is a transient problem, so it's advisable to attempt your request again at a later time.

API Error Codes

This section lists all error codes returned by the API. Each error includes a unique code identifier (ER####), HTTP status code, and description.

Authentication & Authorization Errors

Error CodeHTTP StatusDescription
ER0174401API key is invalid or missing.
ER0175401API key is invalid or missing.
ER0176402You have no points on your account.
ER0200400API key is required.
ER0201404API key not found.
ER0202401API key is invalid.

Rate Limiting Errors

Error CodeHTTP StatusDescription
ER0203429Rate limit exceeded. You can make X requests per minute. Try again in Y.

General Errors

Error CodeHTTP StatusDescription
ER0182404Requested endpoint not found. Please check the URL and try again.
ER0183500Something went wrong.

Article Filter Errors

Error CodeHTTP StatusDescription
ER0001400Invalid article.id value.
ER0002400article.id must be between 1 and 20 characters.
ER0231400Article ID is required. (story endpoint)
ER0232400Article ID is required. (article endpoint)
ER0235404Article not found.
ER0240404No keywords found in article title.

Duplicate Filter Errors

Error CodeHTTP StatusDescription
ER0003400Invalid is_duplicate value.
ER0004400is_duplicate must be 0 or 1.

Paywall Filter Errors

Error CodeHTTP StatusDescription
ER0005400Invalid is_paywall value.
ER0006400is_paywall must be 0 or 1.

Title Filter Errors

Error CodeHTTP StatusDescription
ER0007400title must be between 1 and 100 characters.
ER0008400ignore.title must be between 1 and 100 characters.
ER0009400title_starts_with must be between 1 and 100 characters.
ER0010400title_ends_with must be between 1 and 100 characters.
ER0011400title_pattern must be between 1 and 200 characters.

Media Filter Errors

Error CodeHTTP StatusDescription
ER0012400Invalid media.images.count value.
ER0013400media.images.count must be greater than or equal to 0.
ER0014400media.images.count must be between 1 and 10 characters.
ER0015400Invalid media.images.count.min value.
ER0016400media.images.count.min must be greater than or equal to 0.
ER0017400media.images.count.min must be between 1 and 10 characters.
ER0018400Invalid media.images.count.max value.
ER0019400media.images.count.max must be greater than or equal to 0.
ER0020400media.images.count.max must be between 1 and 10 characters.
ER0021400Invalid media.images.width.min value.
ER0022400media.images.width.min must be greater than or equal to 0.
ER0023400media.images.width.min must be between 1 and 10 characters.
ER0024400Invalid media.images.width.max value.
ER0025400media.images.width.max must be greater than or equal to 0.
ER0026400media.images.width.max must be between 1 and 10 characters.
ER0027400Invalid media.images.height.min value.
ER0028400media.images.height.min must be greater than or equal to 0.
ER0029400media.images.height.min must be between 1 and 10 characters.
ER0030400Invalid media.images.height.max value.
ER0031400media.images.height.max must be greater than or equal to 0.
ER0032400media.images.height.max must be between 1 and 10 characters.
ER0033400Invalid media.videos.count value.
ER0034400media.videos.count must be greater than or equal to 0.
ER0035400media.videos.count must be between 1 and 10 characters.
ER0036400Invalid media.videos.count.min value.
ER0037400media.videos.count.min must be between 1 and 10 characters.
ER0038400Invalid media.videos.count.max value.
ER0039400media.videos.count.max must be greater than or equal to 0.
ER0040400media.videos.count.max must be between 1 and 10 characters.
ER0041400has_image must be 0 or 1.
ER0042400has_video must be 0 or 1.
ER0043400has_hq_images must be 0 or 1.
ER0233400is_media_rich must be 0 or 1.
ER0245400media.videos.count.min must be greater than or equal to 0.

Source Filter Errors

Error CodeHTTP StatusDescription
ER0044400Invalid source.rank.opr.min value.
ER0045400source.rank.opr.min must be greater than or equal to 0.
ER0046400source.rank.opr.min must be between 1 and 10 characters.
ER0047400Invalid source.rank.opr.max value.
ER0048400source.rank.opr.max must be greater than or equal to 0.
ER0049400source.rank.opr.max must be between 1 and 10 characters.
ER0050400Invalid source.id value.
ER0051400source.id must be greater than or equal to 0.
ER0052400source.id must be between 1 and 20 characters.
ER0053400Invalid ignore.source.id value.
ER0054400ignore.source.id must be greater than or equal to 0.
ER0055400ignore.source.id must be between 1 and 20 characters.
ER0057400source.domain must be between 1 and 255 characters.
ER0059400ignore.source.domain must be between 1 and 255 characters.
ER0195400is_premium_source must be 0 or 1.
ER0196400is_verified_source must be 0 or 1.
ER0212400Source country code not found.
ER0213400Source country code not found. (ignore filter)
ER0214400Source domain name not found.
ER0215400Source domain name not found. (ignore filter)
ER0246400source.country.code must be 2 characters.
ER0247400ignore.source.country.code must be 2 characters.

Language Filter Errors

Error CodeHTTP StatusDescription
ER0061400language.code must be between 1 and 2 characters.
ER0063400ignore.language.code must be between 1 and 2 characters.
ER0237400Language with code not found.
ER0239400Language with code not found. (ignore filter)

Author Filter Errors

Error CodeHTTP StatusDescription
ER0064400Invalid author.id value.
ER0066400author.id must be between 1 and 20 characters.
ER0067400Invalid ignore.author.id value.
ER0069400ignore.author.id must be between 1 and 20 characters.
ER0070400has_author must be 0 or 1.
ER0071400author.name must be between 1 and 100 characters.
ER0073400ignore.author.name must be between 1 and 100 characters.
ER0204400Author with name not found.
ER0205400Author with name not found. (ignore filter)

Sentiment Filter Errors

Error CodeHTTP StatusDescription
ER0074400Invalid sentiment.title.score.min value.
ER0075400sentiment.title.score.min must be between -1 and 1.
ER0076400sentiment.title.score.min must be between 1 and 10 characters.
ER0077400Invalid sentiment.title.score.max value.
ER0078400sentiment.title.score.max must be between -1 and 1.
ER0079400sentiment.title.score.max must be between 1 and 10 characters.
ER0080400Invalid sentiment.title.score value.
ER0081400sentiment.title.score must be between -1 and 1.
ER0082400sentiment.title.score must be between 1 and 10 characters.
ER0083400sentiment.title.polarity must be between 1 and 10 characters.
ER0084400Invalid sentiment.body.score.min value.
ER0085400sentiment.body.score.min must be between -1 and 1.
ER0086400sentiment.body.score.min must be between 1 and 10 characters.
ER0087400Invalid sentiment.body.score.max value.
ER0088400sentiment.body.score.max must be between -1 and 1.
ER0089400sentiment.body.score.max must be between 1 and 10 characters.
ER0090400Invalid sentiment.body.score value.
ER0091400sentiment.body.score must be between -1 and 1.
ER0092400sentiment.body.score must be between 1 and 10 characters.
ER0093400sentiment.body.polarity must be between 1 and 10 characters.
ER0094400Invalid sentiment.overall.score.min value.
ER0095400sentiment.overall.score.min must be between -1 and 1.
ER0096400sentiment.overall.score.min must be between 1 and 10 characters.
ER0097400Invalid sentiment.overall.score.max value.
ER0098400sentiment.overall.score.max must be between -1 and 1.
ER0099400sentiment.overall.score.max must be between 1 and 10 characters.
ER0100400Invalid sentiment.overall.score value.
ER0101400sentiment.overall.score must be between -1 and 1.
ER0102400sentiment.overall.score must be between 1 and 10 characters.
ER0103400sentiment.overall.polarity must be between 1 and 10 characters.
ER0243400sentiment.mixed must be 0 or 1.
ER0244400sentiment.consistent must be 0 or 1.

Published Date Filter Errors

Error CodeHTTP StatusDescription
ER0104400Invalid published_at.start value.
ER0105400published_at.start must be between 1 and 30 characters.
ER0106400Invalid published_at.end value.
ER0107400published_at.end must be between 1 and 30 characters.
ER0108400published_at must be between 1 and 30 characters.
ER0109400Invalid published_at value.

Category Filter Errors

Error CodeHTTP StatusDescription
ER0112400category.id must be between 1 and 20 characters.
ER0115400ignore.category.id must be between 1 and 20 characters.
ER0206400Category with ID not found.
ER0207400Category with ID not found. (ignore filter)
ER0241404Category not found.
ER0242404Category not found.

Topic Filter Errors

Error CodeHTTP StatusDescription
ER0117400topic.id must be between 1 and 20 characters.
ER0120400ignore.topic.id must be between 1 and 20 characters.
ER0149404Topic not found.
ER0208400Topic with ID not found.
ER0209400Topic with ID not found. (ignore filter)

Industry Filter Errors

Error CodeHTTP StatusDescription
ER0121400Invalid industry.id value.
ER0123400industry.id must be between 1 and 20 characters.
ER0124400Invalid ignore.industry.id value.
ER0126400ignore.industry.id must be between 1 and 20 characters.
ER0150404Industry not found.
ER0210400Industry with ID not found.
ER0211400Industry with ID not found. (ignore filter)

Entity Filter Errors

Error CodeHTTP StatusDescription
ER0127400Invalid entity.id value.
ER0128400entity.id must be between 1 and 30 characters.
ER0129400Invalid ignore.entity.id value.
ER0130400ignore.entity.id must be between 1 and 120 characters.
ER0132400person.name must be between 1 and 120 characters.
ER0134400ignore.person.name must be between 1 and 120 characters.
ER0136400location.name must be between 1 and 120 characters.
ER0138400ignore.location.name must be between 1 and 120 characters.
ER0140400organization.name must be between 1 and 120 characters.
ER0142400ignore.organization.name must be between 1 and 120 characters.
ER0144400brand.name must be between 1 and 120 characters.
ER0146400ignore.brand.name must be between 1 and 120 characters.
ER0148400disaster.name must be between 1 and 120 characters.
ER0151404Entity not found.
ER0152400disease.name must be between 1 and 120 characters.
ER0154400ignore.disease.name must be between 1 and 120 characters.
ER0156400event.name must be between 1 and 120 characters.
ER0158400ignore.event.name must be between 1 and 120 characters.
ER0197400has_person must be 0 or 1.
ER0198400has_organization must be 0 or 1.
ER0199400has_location must be 0 or 1.
ER0216400Entity person name not found.
ER0217400Entity person name not found. (ignore filter)
ER0218400Entity location name not found.
ER0219400Entity location name not found. (ignore filter)
ER0220400Entity organization name not found.
ER0221400Entity organization name not found. (ignore filter)
ER0222400Entity brand name not found.
ER0223400Entity brand name not found. (ignore filter)
ER0224400Entity disaster name not found.
ER0225400Entity disaster name not found. (ignore filter)
ER0226400Entity disease name not found.
ER0227400Entity disease name not found. (ignore filter)
ER0228400Entity event name not found.
ER0229400Entity event name not found. (ignore filter)
ER0230400has_entities must be 0 or 1.
ER0234400has_disaster must be 0 or 1.
ER0236400has_disease must be 0 or 1.
ER0238400has_event must be 0 or 1.
ER0248400ignore.disaster.name must be between 1 and 120 characters.

Breaking News Filter Errors

Error CodeHTTP StatusDescription
ER0185400Invalid is_breaking value.
ER0186400is_breaking must be 0 or 1.

Read Time Filter Errors

Error CodeHTTP StatusDescription
ER0187400Invalid read_time value.
ER0188400read_time must be between 1 and 1000 characters.
ER0189400Invalid read_time.min value.
ER0190400read_time.min must be between 1 and 1000 characters.
ER0191400Invalid read_time.max value.
ER0192400read_time.max must be between 1 and 1000 characters.
ER0193400is_long_read must be 0 or 1.
ER0194400is_short_read must be 0 or 1.

Pagination Errors

Error CodeHTTP StatusDescription
ER0170400'Per page' is not a number.
ER0171400Limit is out of range.
ER0172400Page is not a number.