Comments (4)
Companies are not searchable sadly.
See https://api-docs.igdb.com/#search-1 for reference.
Only the following endpoints are searchable:
- Characters
- Collections
- Games
- People
- Platforms
- Themes
from igdb-laravel.
Okay, I've got another question that's similar. I'm trying to find the manufacturer of a platform:
$plats = Platform::search('Xbox')->with(['versions', 'versions.companies', 'versions.companies.company'])->get();
But none of that shows the main_manufacturer
that is listed in the docs for Platform Version
([docs](endpoint: platform_versions)). Nor does the company
show a name
as the docs show ([endpoint: companies]https://api-docs.igdb.com/?java#company). Am I missing something with this?
Thanks for your help.
EDIT:
UGH! Sorry about putting the question here. I meant to reply to my other post, not necro this one.
from igdb-laravel.
@PiousVenom This seems to be a problem with the API itself. The data is not returned by the API either if you call it directly.
Try calling the following (via Postman for example) with your Client-ID and access token:
POST https://api.igdb.com/v4/platforms
fields *,versions.*,versions.companies.*,versions.companies.company.*,versions.main_manufacturer.*;
search "Xbox";
It seems you found some data inconsistencies between igdb.com and the API. Because https://www.igdb.com/platforms/xbox shows a manufacturer (even if without a "real" name because the name seems to be just the ID) but the API does not return a company which has manufacturer
set to true
or a main_manufacturer
.
What is more the API only returns data if it is filled. So if there is no name for a company it is not returned at all.
Try reaching out to the guys at IGDB (via their Discord for example). They may sort you out and can check why the data is missing in the API. If I remember correctly they have some sort of sync job between the data on the website and the API. Maybe there is a problem and therefore the data is missing in the API.
from igdb-laravel.
Thanks. I've reached out on Discord. Wonder how long it's been an issue...
from igdb-laravel.
Related Issues (20)
- cover issue and genres
- Generate cover Array HOT 2
- Where do i place "Game::createWebhook"? HOT 3
- Add more info in the Readme on how to search with "Like" HOT 8
- Laravel HTTP request returned status code 401 "Authorization Failure" HOT 5
- Webhooks CLI not working HOT 6
- Platform Logos HOT 1
- How to access $event name in webhooks HOT 2
- IGDB webhooks not working suddenly HOT 9
- HTTP request returned status code 400: [ { "title": "Syntax Error", "status": 400 } ] HOT 1
- 401 Error with Token HOT 6
- title": "Syntax Error" HOT 5
- Only get official releases HOT 1
- Error when setting up relationships between IGDBLaravel\Models and regular Models HOT 6
- Multiple Models missing HOT 1
- Game cover give me an array instead an object HOT 4
- Call to a member function getUrl() on array HOT 2
- Feature Request: Add Event Endpoint HOT 7
- Weird issue after the update to 4.1.0 HOT 4
- Extracting a list of available platforms HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from igdb-laravel.